Skip to main content

ad-skill

Draft a new Claude Code or Codex skill at .claude/skills/<name>/SKILL.md or .agents/skills/<name>/SKILL.md in the Anthropic Skills format. Use when the user wants to create, write, draft, or scaffold a custom skill for an agentic coding tool. Asks one question per missing field; never invents skill names or triggers.

Informations de source

Dépôt
alexandremendoncaalvaro/agentic-development
Dernière activité de la source
25 septembre 2026 à 02:30
Langue détectée de SKILL.md
anglais
Étoiles
2
Forks
0

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Explorateur de fichiers
2 fichiers

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
name
ad-skill
description
Draft a new Claude Code or Codex skill at .claude/skills/<name>/SKILL.md or .agents/skills/<name>/SKILL.md in the Anthropic Skills format. Use when the user wants to create, write, draft, or scaffold a custom skill for an agentic coding tool. Asks one question per missing field; never invents skill names or triggers.
summary
Draft a new Claude Code or Codex skill at the appropriate path.
<background_information> Drafts `.claude/skills/<name>/SKILL.md` (Claude Code) or `.agents/skills/<name>/SKILL.md` plus `agents/openai.yaml` (Codex). Spec: code.claude.com/docs/en/skills. Open standard: agentskills.io. Examples: github.com/anthropics/skills. </background_information> <instructions> Step 1 — confirm target. Ask the user: - Name — kebab-case, lowercase, ≤64 chars. Becomes the directory name and the slash command. - Target agent(s) — Claude Code, Codex, or both. Determines path and frontmatter shape. - Personal or project — `~/.claude/skills/<name>/` (personal) vs `.claude/skills/<name>/` (project, committed). Default: project. Step 2 — interview to fill. Ask one question per missing field, in this order: - What it does — one sentence, primary triggering signal. - When to invoke — common task framings the user would say. Put what the skill does and when to use it in `description`; its specification maximum is 1,024 characters. Claude Code alone also supports `when_to_use`, and cuts the combined discovery text at 1,536 characters in its Claude Code listing; this is not the cross-host specification limit. - Effect gates — every outward effect (push, pull request, publish, post, message) and every irreversible one (files outside the repository, machine stores, deletions git cannot restore) runs only after an approval step stated in the body. With those gates written the skill stays model-invocable; the host block below is only for a skill that cannot gate its effect. - Tools needed — `Read, Write, Glob, Grep, Bash, Task, ...` Restrict to what the skill actually uses. - Body shape — instructions, optional template, output contract. Keep ≤500 lines; move long material to sibling files (`reference.md`, `examples.md`, `scripts/`). Do NOT invent values. When the user does not know something, ask. Do NOT invent fields not in the spec — only declare frontmatter fields that actually apply. Step 3 — write the file(s). If the target file already exists, show it and overwrite it only after the user approves; a personal-scope file lives outside the repository, so git cannot restore it. Path: - Claude Code project: `.claude/skills/<name>/SKILL.md` - Claude Code personal: `~/.claude/skills/<name>/SKILL.md` - Codex project: `.agents/skills/<name>/SKILL.md` plus `.agents/skills/<name>/agents/openai.yaml` (cc-sdd convention). Frontmatter per agent: - Claude Code: `name`, `description`, `allowed-tools` (and any other field from the spec the user asked for). Omit `disable-model-invocation`; add `disable-model-invocation: true` only for a skill whose effect has no approval step in its body. - Codex: minimal frontmatter — `name`, `description`. Body uses XML tags (`<background_information>`, `<instructions>`, `<template>`, `<output_contract>`). The `agents/openai.yaml` carries `interface.display_name`, `interface.short_description`, and `policy.allow_implicit_invocation: true`, or `false` only for a skill whose effect has no approval step in its body. Body: imperative instructions ("do X", not "this skill does X"). Every line is recurring token cost once the skill loads — be terse. Don't restate AGENTS.md. Step 4 — stop after writing. Do not invoke the new skill, do not pre-fill it with example content, do not test it. The user will exercise it themselves. </instructions> <output_contract> A single new `SKILL.md` at the chosen path (plus `agents/openai.yaml` for Codex). Frontmatter declares only the fields actually used. Body is imperative and terse. No external file dependencies the user did not ask for. </output_contract> ## Next - Test the new skill's description triggers by invoking it from a real conversation — verify auto-triggering on the keywords you chose. - Kit skills ship to every install. Add the source for both hosts and its parity tests; propose an ADR + Task when the capability changes the kit's public surface or behavior. - If the skill carries a sibling subagent, declare it in `manifest.json` and add the source under `agents/`.
Voir sur GitHub