Skip to content
Back to skills

How To

ASecurity

Use a skill for a repeatable procedure with a checkable result. Search [the roster](../../../agents/ROSTER.md) for an existing skill first. Keep routing, ownership and state transitions in the role charter or protocol. Put reference facts in a doc. The [`write-skill` skill](../../../agents/skills/write-skill/SKILL.md) can guide the draft. 1. Scaffold a skill under `agents/skills/<name>/SKILL.md`, even when one role uses it. ```bash python3 tools/new_skill.py check-doc-links --description "Che...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentspythonbash

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add nguyenquocduyloc/workcharter --skill how-to --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of How To?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for How To
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nguyenquocduyloc-how-to/badge)](https://www.skillsdirectory.com/skills/nguyenquocduyloc-how-to)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
title: Add an agent skill
type: how-to
status: active
summary: Scaffold a reusable procedure, declare its dependencies, list it in a role charter, and verify the generated copies.
related_code: [tools/new_skill.py, tools/check.py, tools/sync_agents.py, tools/sync_indexes.py]
---
# Add an agent skill

Use a skill for a repeatable procedure with a checkable result. Search [the roster](../../../agents/ROSTER.md) for an existing skill first. Keep routing, ownership and state transitions in the role charter or protocol. Put reference facts in a doc. The [`write-skill` skill](../../../agents/skills/write-skill/SKILL.md) can guide the draft.

1. Scaffold a skill under `agents/skills/<name>/SKILL.md`, even when one role uses it.

   ```bash
   python3 tools/new_skill.py check-doc-links --description "Check Markdown links in a change. Use when editing or reviewing docs."
   ```

   Describe the job and the trigger. A skill meant to work when its folder is installed alone stays portable. When the procedure needs the project's work tracker, add `--requires work-tracker` when scaffolding, or set that metadata in the file. For an owner-started action such as publishing a release, add `--invocation user` and follow the [grant protocol](../../../agents/protocols/escalation.md#grants-and-delegation); an action an agent role must start, whose own steps hold the gate, stays model-invoked (`write-skill` step 8). See the [skill schema](../reference/front-matter.md#skills).
2. Replace the scaffold's fill-ins with ordered steps and exact commands where useful. End with a **Verify** section that names a command or observable result and a **Stop and ask** section for cases requiring a decision. Keep the procedure to about 40 body lines. Put detail under `references/`, scripts under `scripts/` and templates or examples under `assets/`. Resolve resource links relative to the file that contains them. In a portable skill, keep all required resources within the skill folder and exercise the procedure from a standalone copy.
3. Add the skill name to `skills:` in each charter that uses it. Add a short pointer at the relevant step when the role needs to open the skill at a particular point. The roster and adapters read the charter lists.
4. Regenerate and validate.

   ```bash
   python3 tools/sync_agents.py &&
   python3 tools/sync_indexes.py &&
   python3 tools/check.py --strict
   ```

   A fresh scaffold may produce `skill-stub` warnings and a `skill-unlisted` error until you fill it and list it. Use the [command reference](../reference/commands.md#check-codes) to resolve diagnostics.
5. Give a fresh session a task the description should match. For a user-invoked skill, start it explicitly. Check that the session follows the procedure and can produce the Verify evidence. Record the result for review.

For a third-party import, check the license and review the procedure and dependencies before shipping it. Keep a `PROVENANCE.md` alongside the skill with the source URL, exact revision or tag, author, license, local changes and import date. Include required notices and attribution.

Files in this skill

  • README.md512 B
  • add-a-role.md3.2 KB
  • add-a-skill.md3 KB
  • bootstrap-from-template.md4.3 KB
  • cut-a-module.md1.5 KB
  • protect-the-repo.md11.4 KB
  • update-from-template.md3.1 KB
  • use-with-other-agents.md5.7 KB
  • write-an-adr.md1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.