Chuyển đến nội dung
Skillpedia
Lập trình chung15k · #10949

principle-the-algorithm

Skill này làm gì

Cung cấp cho agent một phương pháp năm bước cho các thay đổi lớn: đặt câu hỏi về yêu cầu, loại bỏ, tối ưu, tăng tốc và tự động hóa. Dành cho kỹ sư muốn thiết kế đơn giản hơn và có lập luận rõ ràng.

Khi nào nên dùng

  • ✓Khi bạn chuẩn bị thiết kế một thay đổi lớn hơn một chỉnh sửa đơn giản.
  • ✓Khi một yêu cầu có vẻ thêm độ phức tạp mà có thể không cần thiết.
  • ✓Khi bạn muốn kiểm tra xem có thể loại bỏ một phần trước khi tối ưu hóa nó không.

Liên kết skill

https://github.com/cursor/plugins/blob/main/dyl-stack/skills/principle-the-algorithm/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/cursor/plugins/blob/main/dyl-stack/skills/principle-the-algorithm/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Trước khi chúng ta thiết kế tính năng này, hãy thách thức các yêu cầu và cho tôi biết những gì chúng ta có thể loại bỏ.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent đặt câu hỏi về yêu cầu trước, sau đó cố gắng loại bỏ các phần hoặc bước, rồi tối ưu phần còn lại, tăng tốc và cuối cùng tự động hóa. Câu trả lời của agent nêu rõ điều gì đã được đặt câu hỏi và điều gì đã bị loại bỏ.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

The Algorithm

Five steps, in order, for any change bigger than an edit you can see at a glance. The order is the principle. Each step is cheap only after the one before it, and the common failure is doing a late step on something an early step would have removed. Adapted from Elon Musk's five-step engineering process.

  1. Make the requirements less dumb. Assume the requirement is wrong and make it less wrong. It comes from a person, not a department. "The ticket", "the linter", "the reviewer", or "the old code did it" is a source, not a reason; find the person and their reasoning. If you do not agree with the reasoning, do not accept the requirement, however smart the person who gave it, the human included. No is a valid outcome.
  2. Delete the part or process step. Try hardest to delete the part, flag, layer, retry, or step entirely before touching step 3. Optimizing something that should not exist is the biggest mistake smart people make. If you never add anything back, you did not delete enough. Leaf: pstack principle-subtract-before-you-add.
  3. Optimize what survived. Third step, not first. Have one part do many things instead of a parallel copy per caller. Look hardest at boundaries between owners and layers, where a wrapper wraps a wrapper. Leaves: pstack principle-laziness-protocol, principle-minimize-reader-load.
  4. Accelerate. Be the part: walk one change through edit, build, check, and review yourself and note where you wait, crawl, or bounce. Tighten that. Leaf: pstack principle-sequence-verifiable-units.
  5. Automate last, or you automate something that should not exist. Volume alone does not justify it; precision and reviewability do. pstack principle-build-the-lever still applies. It runs on what survived.

Run it again. This is not a one-time gate. Rerun it on the result before you ship; the second pass deletes more.

The tell. A citation of this principle names the requirement you made less dumb, who owned it, and what you deleted. A citation with neither means you skipped it.

Câu hỏi thường gặp

Vì sao thứ tự lại quan trọng?

Mỗi bước chỉ rẻ khi bước trước nó đã xong, nên tối ưu một thứ không nên tồn tại là lãng phí công sức.

Agent có thể bác bỏ một yêu cầu không?

Có. Nếu lập luận đằng sau yêu cầu không đứng vững, skill nói rằng câu trả lời không là một kết quả hợp lệ.

Phương pháp này đến từ đâu?

Skill nói rằng nó được điều chỉnh từ quy trình kỹ thuật năm bước của Elon Musk.

Chi tiết

Mô tả gốc của tác giả

Apply to any non-trivial change before designing it. Make the requirement less dumb, delete, optimize, accelerate, automate, in that order, then run it again on the result. The reply names the requirement you questioned and what you deleted.

repo: cursor/plugins

Độ phổ biến

Sao GitHub
15k
Vị trí xếp hạng
#10949
Giấy phép
—
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự