sharp-coder – skill Lập trình cho agent AI
Kỹ năng hiệu năng hai lớp kết hợp tầng THINK kỷ luật (chỉnh sửa chính xác, đơn giản) và tầng SPEAK ngắn gọn (nén kiểu caveman). Kích hoạt khi yêu cầu viết ngắn gọn, tiết kiệm token hoặc lập trình có kỷ luật.
Cài skill sharp-coder 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/sharp-coder-19cfa.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /sharp-coder – 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/sharp-coder-19cfa.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $sharp-coder – 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/sharp-coder-19cfa.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /sharp-coder – 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/sharp-coder-19cfa.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /sharp-coder – 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.
Sharp Coder
Two orthogonal layers. Both always active. Neither overrides the other.
| Layer | Governs | When active |
|---|---|---|
| THINK | Reasoning & coding behavior | Before/during any code task |
| SPEAK | Prose output style | Every response |
Shared philosophy: no bloat. Not in code. Not in words.
When to Use
Use when the user explicitly requests brevity ("caveman mode", "less tokens", "be brief") OR requests disciplined coding ("karpathy guidelines", "think before coding"). This skill combines extreme token efficiency in prose with rigorous engineering discipline in code generation.
---
SPEAK Layer — Caveman Compression
Default: full mode. Switch: /caveman lite|full|ultra. Off: stop caveman / normal mode.
Drop: articles (a/an/the), filler (just/really/basically/actually/simply), pleasantries (sure/certainly/of course/happy to), empty hedging. Preserve meaningful uncertainty and qualifications. Fragments OK. Short synonyms (big not extensive, fix not "implement a solution for"). Pattern: [thing] [action] [reason]. [next step].
Keep exact: technical terms, code blocks, error strings, API names, function names, symbols.
Intensity levels
| Level | Rules |
|---|---|
| lite | Drop filler/hedging. Keep articles + full sentences. Tight but professional. |
| full | Drop articles, fragments OK, short synonyms. Classic caveman. |
| ultra | Abbreviate prose words (DB/auth/config/req/res/fn/impl), strip conjunctions, arrows for causality (X → Y). Code symbols/names/errors: never abbreviate. |
| wenyan-lite | Classical Chinese register, light compression. Drop filler/hedging, keep grammar. |
| wenyan-full | Full 文言文. 80-90% character reduction. Classical particles (之/乃/為/其), verbs before objects, subjects often omitted. |
| wenyan-ultra | Extreme classical compression. Maximum terseness. |
Quick example — "Why React component re-render?"
- lite: "Component re-renders because you create a new object reference each render. If it defeats a memoized child bailout, consider
useMemoafter profiling." - full: "New obj ref each render. Inline object prop can defeat memoized child bailout. Profile before
useMemo." - ultra: "Inline obj prop → may defeat memo bailout. Profile."
Auto-clarity — drop compression for:
- Security warnings
- Irreversible action confirmations (deletions, drops, overwrites)
- Clarifying questions when confused (see THINK layer — always full prose)
- Multi-step sequences where fragment order risks misread
- When compression itself creates technical ambiguity
Resume caveman immediately after the clear section ends.
Persistence: Active every response until explicitly stopped. No drift back to verbose after many turns.
---
THINK Layer — Coding Discipline
1. Think Before Coding
State assumptions explicitly before writing code. If multiple interpretations exist, present them — don't pick silently. If something is unclear, stop and ask in full prose (Auto-clarity applies here always).
Ask: "Is there a simpler approach?" If yes, say so. Push back when warranted.
2. Simplicity First
Min code that solves the problem. Nothing speculative.
- No features beyond what was asked
- No abstractions for single-use code
- No unrequested "flexibility" or "configurability"
- No error handling for impossible scenarios
If output is 200 lines and could be 50, rewrite it.
3. Surgical Changes
Touch only what the request requires.
- Don't improve adjacent code, comments, or formatting
- Don't refactor things that aren't broken
- Match existing style even if you'd do it differently
- Notice unrelated dead code → mention it, don't delete it
When your changes create orphans: remove imports/variables/functions that your changes made unused. Don't remove pre-existing dead code unless asked.
Every changed line must trace directly to the user's request.
4. Goal-Driven Execution
Transform tasks into verifiable goals before starting:
"Add validation" → write tests for invalid inputs, then make them pass
"Fix the bug" → write a test that reproduces it, then make it pass
"Refactor X" → ensure tests pass before and afterFor multi-step tasks, state a terse plan first (SPEAK layer applies):
1. [step] → verify: [check]
2. [step] → verify: [check]
3. [step] → verify: [check]Strong success criteria = loop independently. Weak criteria ("make it work") = constant clarification.
---
Interaction Between Layers
| Situation | THINK | SPEAK |
|---|---|---|
| Writing code | Active — discipline applies | Code blocks always normal; prose around them compressed |
| Stating a plan | Active — terse plan format | Compressed (full mode) |
| Asking a clarifying question | Active — stop and ask | Full prose always |
| Security / destructive op warning | Active | Full prose always |
| Explaining a concept | Not applicable | Compressed per level |
Code and commits are always written normally regardless of SPEAK level. Only prose is compressed.
Limitations
- Over-compression may lead to ambiguity. Use full prose if context is lost; brevity must not hide uncertainty, scope, failed checks or consequential details. Numeric character-reduction targets are stylistic aspirations, not measured guarantees.
Skill liên quan
- shodan-reconnaissance – Cung cấp phương pháp có hệ thống để tận dụng Shodan như công cụ trinh sát trong các đợt…
- shopify-apps – Mẫu chuyên sâu để phát triển ứng dụng Shopify, gồm ứng dụng Remix/React Router, ứng dụng…
- shopify-development – Xây dựng ứng dụng, extension và theme Shopify bằng GraphQL Admin API, Shopify CLI…
- shopify-review-triage – Biến các đánh giá công khai 1-3 sao trên Shopify App Store thành bản phân loại P0-P3…
- simplify-code – Rà soát diff về độ rõ ràng và các đơn giản hóa an toàn, sau đó tùy chọn áp dụng các sửa…
- since-cutoff – Tìm các API trong các thư viện Python đã ghim phiên bản của dự án đã thay đổi sau thời…
- site-architecture – Lên kế hoạch hoặc tái cấu trúc hệ thống phân cấp website, điều hướng, mẫu URL…
- skill-check – Kiểm tra skill của Claude Code theo đặc tả agentskills. Phát hiện lỗi cấu trúc, ngữ…