Anyone who works with AI every day already has a personal playbook: list the risks before touching the code, fix the document skeleton before filling it in, restate the symptom before debugging. These habits work — and they live entirely inside chat windows, gone the moment you close the tab.
A Skill is that playbook moved out of chat history and into a file a tool can load on demand. Collect a dozen and you have a toolbox. This is how to build one; the directory layout follows my Quama library, which you can copy instead of starting from scratch.
🧩 1. What a Skill Is
The same sentence typed into a chat box is disposable. Written as a Skill, it becomes a loadable capability. Three differences:
- A trigger condition: it states when it applies, so the tool can decide whether to load it.
- Fixed rules: not "write it nicely" but concrete checklist items and output requirements.
- Project independence: where it lives and who loads it does not depend on which repository you have open.
So a Skill is not a longer prompt. It is "how this job should be done" written down as a document.
🔍 2. Finding Topics in Your Own Habits
Do not invent skills from imagination. Look at the three kinds of things you had to repeat over the last month:
- Fixed output formats: weekly reports, commit messages, PR descriptions, API docs — anything you re-explain every time.
- Judgment criteria: what a code review must check, which questions a design review must answer, when you must confirm before acting.
- Debugging order: where to look first on an error, how to read logs, how to verify a performance suspicion.
The rule is plain: if you have said the same thing three times, write it as a Skill. One a day gets you ten in two weeks.
✍️ 3. Writing One Skill
A skill is a directory with a single SKILL.md. Two header fields:
--- name: engineering-delivery-rules description: "Hard rules for engineering delivery, covering artifact hygiene, conservatism, and conceptual precision. Use when writing delivery docs, designs, or planning tasks." --- The body has three sections:
- Trigger scenarios: when to use it, ideally a table of the exact phrases a user might say.
- Execution rules: itemized "must" and "must not", phrased as checkable items wherever possible.
- Boundaries: situations where it must stop and ask a human instead of deciding alone.
The description is what breaks most often. "This skill is powerful and covers many scenarios" will never match; "what it does + when to use it + keywords" gets auto-loaded. That line matters far more than the prose below it.
Also keep SKILL.md to roughly one screen. Twenty rules is plenty; long documents get truncated and are painful to maintain.
🗂️ 4. Project Structure
The library itself does not need to be complex. Two levels: category directories containing skill directories, each holding one SKILL.md.
skills/ ├── 00_project-management/ │ └── 01_task-breakdown/SKILL.md ├── 01_product-management/ │ ├── 01_requirements/SKILL.md │ └── 02_prototyping/SKILL.md ├── 02_architecture-design/ ├── 03_frontend-engineering/ … 06_operations-engineering/ ├── 07_documentation/ │ ├── 02_readme-standard/SKILL.md │ └── 03_ops-guide-standard/SKILL.md ├── 08_toolchain-ops/ └── 99_shared-specs/ # templates and authoring conventions Two sibling directories sit next to skills/, with different jobs:
-
commands/: one file per command, for high-frequency actions such as review, commit, and troubleshooting. -
rules/: always-on rules that apply to every conversation without a trigger phrase.
Naming: category directories use number_english-name, skill directories use number_name, and numbers increment only within a level, so inserting a skill never renumbers others.
Slice categories along your own workflow. A common split:
| No. | Category | What goes in |
|---|---|---|
| 00 | Project management | Task breakdown, progress sync, commit conventions |
| 01 | Requirements and product | Clarification, user stories, competitor teardown |
| 02 | Architecture design | Tech selection, API and schema design, risk lists |
| 03–06 | Development and quality | Frontend/backend standards, testing, CI/CD |
| 07 | Documentation | Writing standards, README, delivery standards |
| 08 | Toolchain | Environment consistency, dependency governance |
| 90+ | Personal zone | Experiments, drafts, temporary approaches |
Two-digit numbering keeps sorting stable and new categories cheap to add. The 90+ personal zone sits behind the main line, so it survives a team change.
🔌 5. Wiring It Into Tools
Once the content is written, the remaining question is how to plug it in. One technique covers it: separate content from entry points.
The flow is short: skills/commands/rules → build links or export → tool directories → loaded at startup on demand.
Concretely, core/ holds every skill, and each tool's directory holds only private configuration (keys, local paths), with shared content symlinked back to core/. Symlinks require Git and a filesystem that supports them; on Windows, swap in an export script that generates plain directories, at the cost of re-exporting on every update.
"Change once, effective everywhere" is a side effect of the structure, not the goal — whether the content itself is accurate is what decides if any of this is useful.
🛡️ 6. Validation and Sync
Once you have many skills, discipline alone will fail. At minimum, three automated checks:
- Field validation: walk every
SKILL.mdand fail ifnameordescriptionis missing. - Symlink integrity: after a tool directory is renamed, old links point at nothing and fail silently — this check catches it.
- Pre-commit gate: run the first two on commit so broken files never enter the library.
Add a sync script that copies skills into your personal global directory (most tools support ~/.xxx/skills), so the same set travels across projects.
I took this straight from Quama: one make validate runs the symlink check, script syntax, and Git whitespace checks, which beats ten paragraphs of "please follow the standards".
🚀 7. Your First Week
Do not try to fill it out. Close the smallest loop:
- Create an empty library:
core/plus a few category directories. - Write three: pick what you use daily — commit messages, code review, document structure.
- Connect your most-used tool: confirm it loads before anything else.
- Add one check: field validation plus pre-commit, before the library grows.
- Connect a second tool: only now do you discover which pieces are actually tool-private config, and the structure settles.
Then add monthly. Count is not the metric; still being used three months later is.
🔚 Closing
Collecting skills is easy. Treating them like code is the hard part: write them precisely, make them checkable, delete the stale ones on schedule. Tools will change; the judgment you wrote down will not.
The repository mentioned above already has the directory split, SKILL.md conventions, and validation scripts in place — adapting it is much faster than starting from zero.
📎 References
- Quama skill library: gitee.com/hollson/quama
- Claude Code: docs.anthropic.com/en/docs/claude-code/overview
- OpenAI Codex: developers.openai.com/codex
- Cursor: docs.cursor.com
- Trae: docs.trae.ai
- CodeBuddy: codebuddy.ai