Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 5 min read

Building Your Own AI Skill Library

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 t

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:

  1. Fixed output formats: weekly reports, commit messages, PR descriptions, API docs β€” anything you re-explain every time.
  2. Judgment criteria: what a code review must check, which questions a design review must answer, when you must confirm before acting.
  3. 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:

  1. Field validation: walk every SKILL.md and fail if name or description is missing.
  2. Symlink integrity: after a tool directory is renamed, old links point at nothing and fail silently β€” this check catches it.
  3. 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:

  1. Create an empty library: core/ plus a few category directories.
  2. Write three: pick what you use daily β€” commit messages, code review, document structure.
  3. Connect your most-used tool: confirm it loads before anything else.
  4. Add one check: field validation plus pre-commit, before the library grows.
  5. 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

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.