deft-directive-write-skill
БесплатноБез исполняемых скриптовНе проверенCreate new deft skills with proper structure, RFC2119 notation, triggers, and progressive disclosure. Use when user wants to create, write, or build a new…
от deftai★ 32 звезды на GitHubОб этом скилле
Deft Write Skill
Create new deft skills that follow directive's conventions: RFC2119 notation, YAML frontmatter with triggers, clear When-to-Use sections, and proper naming.
Legend (from RFC2119): !=MUST, ~=SHOULD, ≉=SHOULD NOT, ⊗=MUST NOT, ?=MAY.
Inspired by write-a-skill from mattpocock/skills. Adapted to deft's SKILL.md conventions, RFC2119 notation, and naming patterns.
When to Use
- User wants to create a new skill for a workflow directive doesn't cover yet
- Formalizing an ad-hoc process that keeps repeating into a reusable skill
- Extending directive with project-specific or domain-specific skills
Deft Skill Naming Conventions
| Skill type | Naming pattern | Example |
|---|---|---|
| Framework / meta | deft-{verb} |
deft-build, deft-setup |
| GitHub-integrated | deft-directive-gh-{verb} |
deft-directive-gh-slice (triage verb reclaims to deft-directive-refinement) |
| Domain / project-specific | {project}-{verb} |
my-app-deploy |
Process
Step 1: Gather requirements
Ask the user (one question at a time):
- What task or domain does this skill cover?
- What specific use cases should it handle?
- Does it require external tools (e.g.,
gh,docker, database CLIs)? - Should it produce files, run commands, or guide a conversation?
- Any reference material or existing workflows to model from?
Step 2: Draft the skill
- ! Follow the deft SKILL.md template below
- ! Keep SKILL.md under 150 lines — split long templates into
references/*.md(seereferences/composer-skill-porting.md) - ! Write the
descriptionfield as if it's the only thing the agent will see when deciding whether to invoke this skill - ! Include negative triggers in
description(Do NOT trigger on …) so near-miss phrases do not load the wrong skill - ~ Use the trigger words the user would naturally say
- ! Use RFC2119 notation throughout (!=MUST, ~=SHOULD, ≉=SHOULD NOT, ⊗=MUST NOT, ?=MAY)
- ! Apply goal-gate determinism (#852): rigid goal, acceptance criteria, quality gates, exit/handoff, and scope
⊗boundaries; demote pure execution steps to~unless they are gates — seepatterns/goal-gate-determinism.md - ~ Include attribution blockquote if inspired by an external source
- ~ When porting Warp-tuned playbooks, read
references/composer-skill-porting.mdfor fast-path vs isolation, short-chat expectations, and Composer naming
Step 3: Review with user
Present the draft and ask:
- Does this cover your use cases?
- Anything missing or unclear?
- Should any section be more or less detailed?
Iterate until approved.
Step 4: Create the skill
- ! Create the directory
skills/{skill-name}/ - ! Write
skills/{skill-name}/SKILL.md - ~ Create
skills/{skill-name}/REFERENCE.mdorreferences/{topic}.mdif content exceeds 150 lines - ~ Create
skills/{skill-name}/scripts/for deterministic helper scripts - ! When the skill creates GitHub issues or PRs, instruct authors to use
--body-filewith OS-temp paths — never inline multi-line--bodystrings (seescm/github.md)
Deft SKILL.md Template
---
name: {skill-name}
description: >
{What it does in 1–2 sentences}. Use when {specific triggers —
what the user would say or what context activates this skill}.
Do NOT trigger on {near-miss phrase 1} or {near-miss phrase 2}.
triggers:
- {trigger phrase 1}
- {trigger phrase 2}
[metadata:
clawdbot:
requires:
bins: ["gh"] # only if external CLI is needed]
---
# {Skill Title}
{One-line description of what this skill does.}
Legend (from RFC2119): !=MUST, ~=SHOULD, ≉=SHOULD NOT, ⊗=MUST NOT, ?=MAY.
[> Inspired by ... — optional attribution]
## When to Use
- {Use case 1}
- {Use case 2}
[## Prerequisites
- ! Verify {tool} is available — stop and report if not]
---
## Process
### Step 1: {Name}
- ! {mandatory action}
- ~ {recommended action}
- ⊗ {forbidden action}
### Step 2: {Name}
...
---
## Anti-Patterns
- ⊗ {what NOT to do}
- ⊗ {what NOT to do}
Description Writing Rules
The description is the only thing the agent sees when deciding whether to load this skill. Write it to answer:
- What capability does this provide?
- When should it trigger? (use "Use when..." pattern)
- What near-miss phrases must NOT trigger it? (use "Do NOT trigger on..." pattern)
- ! Max 1024 characters
- ! Include "Use when [specific trigger
Установить deft-directive-write-skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл deft-directive-write-skill?
Create new deft skills with proper structure, RFC2119 notation, triggers, and progressive disclosure. Use when user wants to create, write, or build a new deft skill.
Как установить скилл deft-directive-write-skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл deft-directive-write-skill запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic