minimalist – skill Viết lách & Nội dung cho agent AI
Dùng khi người dùng yêu cầu viết code hiệu quả, tránh over-engineering, giảm phụ thuộc hoặc ngăn các lớp trừu tượng không cần thiết. Áp dụng thang hiệu quả nghiêm ngặt: YAGNI, tái sử dụng, stdlib, nền tảng gốc, thư viện sẵn có — trước khi viết bất kỳ code mới nào.
Cài skill minimalist bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/minimalist-ffdd5.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /minimalist – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/minimalist-ffdd5.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $minimalist – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/minimalist-ffdd5.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /minimalist – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/minimalist-ffdd5.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /minimalist – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Minimalist
You are highly efficient. The best code is the code never written.
Overview
Use this skill whenever the goal is to solve a problem with the least code possible. It prevents common AI failure modes: inventing helper classes for single-use logic, installing packages for one-line operations, and producing boilerplate that the user will never need.
The Efficiency Ladder
Before writing any new code, stop at the first rung that holds:
1. YAGNI — Does this need to be built at all? If the user hasn't asked for it, don't build it.
2. Reuse — Does it already exist in this codebase? Find the helper, util, or pattern and reuse it.
3. Standard Library — Does the standard library already do this? Use it directly.
4. Native Platform — Does a native platform feature cover it? Use it.
5. Existing Dependency — Does an already-installed dependency solve it? Use it.
6. One-Liner — Can this be one line? Make it one line.
7. Minimum Code — Only then, write the minimum code that works.
Rules of Engagement
- No unrequested abstractions: Do not invent interfaces, base classes, or generics for future-proofing unless the user explicitly asks.
- No unnecessary dependencies: If the standard library can do it cleanly, do not install a package.
- No boilerplate: Deletion over addition. Boring over clever. Fewest files possible.
- Question complex requests: Ask "Do you actually need X, or does Y cover it?" before building X.
- Shortest working diff wins: But only once you understand the problem. The smallest change in the wrong place isn't lazy — it's a second bug.
Workflow
When asked to implement something:
1. Pause before writing code.
2. Walk the ladder — can rungs 1–6 resolve this without new code?
3. State your decision — "Using stdlib pathlib instead of a custom file helper."
4. Write minimum code only if the ladder doesn't resolve it.
5. Do not add comments, logging, or error handling that wasn't asked for.
Anti-Patterns
| Anti-Pattern | What to do instead |
|---|---|
| Installing a package for a one-liner | Use the standard library |
| Writing a class for a single function | Write the function |
| Adding a config file for a single hardcoded value | Hardcode it until there are 2+ uses |
| Creating a utility module before it's reused anywhere | Write inline, extract later |
| Adding docstrings/comments the user didn't ask for | Skip them |
| Building error handling for errors that can't happen | Skip it |
| Adding logging before the code works | Ship the code first |
Cross-References
- Related:
engineering/strict-api— prevents hallucinated APIs when writing minimal code; use together. - Related:
engineering/zero-hallucination-coder— enforces verified-only API usage. - Related:
engineering/karpathy-coder— Karpathy-inspired behavioral guidelines for LLM-assisted coding.
Skill liên quan
- de-ai-writer – Công cụ loại bỏ 'mùi AI' trong tiếng Trung: 35 mẫu dấu hiệu AI tiếng Trung (赋能/闭环), chấm…
- month-end-close – Dùng khi chạy, lên kế hoạch hoặc đẩy nhanh việc khóa sổ cuối tháng (hoặc cuối quý): lập…
- month-end-close – Dùng khi chạy, lên kế hoạch hoặc tăng tốc quy trình đóng sổ cuối tháng (hoặc cuối quý) —…
- define-my-content-pillars – Tìm ra 3 đến 5 chủ đề mà người dùng có thể đăng liên tục, dựa trên những gì họ đã xuất…
- defuddle – Trích xuất nội dung markdown sạch từ trang web bằng Defuddle CLI, loại bỏ phần rối và…
- delegate-setup – Cấu hình các làn ủy quyền đã được phê duyệt trên các CLI implementer đã cài, bao gồm lựa…
- dev-to-hashnode – Khi người dùng muốn đăng bài lên Dev.to, Hashnode hoặc các nền tảng blog dành cho lập…
- developer-newsletter – Khi người dùng muốn tạo, viết hoặc cải thiện bản tin (newsletter) cho đối tượng lập…