Skip to content
Back to skills

How To

ASecurity

Goal: a procedure agents load only when a task matches it, so it costs almost no context otherwise.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 11, 2026
ai-agentspythongogitsecurity

Works with

  • claude code

Security analysis

A100/100

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

Scanned November 14, 2026

npx -y skills add The-Urcydo/Repo-Template --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/the-urcydo-how-to/badge)](https://www.skillsdirectory.com/skills/the-urcydo-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: Create a reusable skill in the open Agent Skills format, under the role that uses it or in agents/skills when shared, and generate its adapter copies.
---
# Add an agent skill

Goal: a procedure agents load only when a task matches it, so it costs almost no context otherwise.

## Steps

1. Pick where it lives. Only one role uses it: `agents/roles/<role>/skills/<name>/`. Several roles, or anyone: `agents/skills/<name>/`. Create that folder with a `SKILL.md` in it. The name must be unique across both places, because `.claude/skills/` is flat. If the role's `skills/` folder holds only a `.gitkeep`, delete the `.gitkeep`.
2. Front matter, per the Agent Skills specification:
   - `name`: 1 to 64 characters; lowercase letters, digits and single hyphens; no leading or trailing hyphen; **equal to the folder name**.
   - `description`: 1 to 1024 characters. Say what the skill does **and when to use it**; this is the only part loaded at startup.
   - Optional, Claude Code only: `disable-model-invocation: true` (not in the specification; other tools ignore it) keeps the model from starting the skill by itself, so only a person's request does. Use it for actions that change shared state, like `merge-work`.
3. Write the body as concrete numbered steps with the exact commands. Write the method, not the routing: a command that changes who owns the item or what its status is stays in the role's `ROLE.md`, and the skill points to it. Keep it under 500 lines (under about 5,000 tokens). Move long material into `references/` files one level deep, and scripts into `scripts/`.
4. In the role's `ROLE.md`, add or keep a pointer to the skill (a Procedure line, or the step that uses it), so an agent that adopts the role reads it. Do not copy the steps into the charter.
5. Regenerate and verify: `python3 tools/sync_indexes.py && python3 tools/sync_agents.py && python3 tools/check.py`. The check validates the name (and that it is unique), the description and the size. For Claude Code the sync also lists the role's own skills in its subagent's `skills:` (`agents/adapters/README.md`).
6. Test it: start a fresh session and give it a task the description should match. If it does not load, sharpen the description.

## Examples

| Skill | Lane | Why |
|---|---|---|
| `write-doc` | `agents/skills/` | any role that owns a docs folder uses it |
| `write-handoff` | `agents/skills/` | any role holding an item uses it |
| `merge-work` | `agents/skills/` | whoever holds the owner's merge grant uses it; owner-invoked (`disable-model-invocation: true`) because merging changes the shared branch |
| `verify-work` | `agents/roles/reviewer/skills/` | only the reviewer verifies work; where the item goes next stays in the reviewer's `ROLE.md` |
| `record-decision` | `agents/roles/architect/skills/` | only the architect records ADRs |
| `research-question` | `agents/roles/researcher/skills/` | only the researcher answers a caller's question this way; how it is called, the reply to the caller and the quality bar stay in the researcher's `ROLE.md` |
| `review-change` | `agents/roles/security/skills/` | only the security role (an optional module) reviews a change for risk; the hand-back to the reviewer and the rule never to paste a secret stay in its `ROLE.md` |

## Charter or skill?

- Routing, limits, and when the role runs: the charter (`ROLE.md`). An agent always reads it, so put there what must never be skipped.
- The method for one task, with templates and examples: a skill. It may be long.
- A fact needed by both: state the rule in the charter and have the skill point to it. A command is written in one of the two, never both.
- A role that is mostly routing (it owns a status and runs `transition.py`) usually needs no skill. A role that produces an artifact and runs no status commands usually does.

Skills are procedures, not knowledge. If the content describes how things are (not how to do something), it belongs in `docs/` instead.

Files in this skill

  • README.md506 B
  • add-a-role.md2.8 KB
  • add-a-skill.md2.5 KB
  • bootstrap-from-template.md2.3 KB
  • cut-a-module.md1.5 KB
  • update-from-template.md1.8 KB
  • use-with-other-agents.md3 KB
  • write-an-adr.md1.8 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.