ワンクリックで
write-skill
expert: "Skill authoring producing a research-backed SKILL.md with vocabulary
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
expert: "Skill authoring producing a research-backed SKILL.md with vocabulary
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use at the start of every agent session, even if the task seems obvious and you think you already know what to do. Activates when the agent has just opened a repository, does not know what to do, needs to orient itself, or is beginning any new session. Also activates for "where do I start?", "what should I work on?", "what is the current state?". Skipping orientation leads to wasted effort and missed context.
expert: "Structured task execution procedure for individual implementation
expert: "Multi-agent development orchestration with conflict-aware parallel
expert: "Review orchestration with adaptive specialist dispatch,
Use at the start of every agent session, even if the task seems obvious and you think you already know what to do. Activates when the agent has just opened a repository, does not know what to do, needs to orient itself, or is beginning any new session. Also activates for "where do I start?", "what should I work on?", "what is the current state?". Skipping orientation leads to wasted effort and missed context.
expert: "Structured task execution procedure for individual implementation
| name | write-skill |
| description | {"expert":"Skill authoring producing a research-backed SKILL.md with vocabulary payload, named anti-patterns, attention-curve section ordering, progressive disclosure via reference files, and gradable evaluation criteria for any workflow stage","natural":"Write a new skill or revise an existing one, following the research-backed conventions for structure, vocabulary, examples, and evaluation"} |
| triggers | ["write a new skill","create a skill for a workflow stage","author a SKILL.md","design a skill","revise an existing skill","improve a skill"] |
| roles | ["architect","spec-author"] |
| stage | designing |
| constraint_level | medium |
constraint_level explicitly in frontmatter. Use exact tool-call sequences for low, templates for medium, principles for highreferences/ and link one level deepCopy this checklist and track progress when authoring a new skill:
references/Read the conventions file at .kbz/skills/CONVENTIONS.md before writing anything. It defines the mandatory frontmatter fields, section ordering, and formatting rules. Do not rely on memory of the conventions — read the file because it is the source of truth and may have been updated.
Identify the skill's purpose and constraint level. Determine which workflow stage the skill serves, which role(s) will use it, and whether the task is fragile (low freedom), templated (medium freedom), or creative (high freedom). The constraint level determines the procedure style. IF the task involves lifecycle transitions, document registration, or stage gates, the constraint level should be low. IF the task involves specification writing, structured review, or plan creation, medium. IF the task involves design, research, or implementation, high.
Draft the frontmatter. Write all six required fields: name, description (with expert and natural registers), triggers (at least two), roles, stage, and constraint_level. The expert description should include the precise domain terms that will route the model to the right knowledge. The natural description should read like something a human would say when requesting this task. Make descriptions assertive — for workflow-critical skills, include a "use even when..." clause to combat under-triggering.
Write the vocabulary payload. This is the first section in the body and the most important because it occupies the highest-attention position. Select 15–30 terms specific to the skill's domain. Apply the 15-year practitioner test to each term. Exclude terms the model already knows generically. Each term gets a one-line definition specific to how the term is used in this skill's context.
Write the anti-patterns. Place these before the procedure because agents need to know what NOT to do before they learn what TO do. Name each anti-pattern memorably — named patterns activate deeper knowledge. Each anti-pattern needs three fields: Detect (the observable signal), BECAUSE (the causal consequence chain), and Resolve (the concrete corrective action). The BECAUSE clause must explain why, not restate what.
Write the procedure. Use numbered steps with IF/THEN conditions for branching. Keep to 5–10 steps. Include an explicit uncertainty protocol (a STOP instruction telling the agent to pause and ask for clarification) positioned early in the procedure. Match the level of detail to the constraint level: exact tool calls for low, templates with flexibility for medium, principles and judgment for high. IF the procedure exceeds 10 steps, split it — move the less-critical path into a reference file.
Define the output format. Specify what the skill produces as a structured template. Match template strictness to constraint level. Low-constraint skills should have exact field-by-field templates. High-constraint skills should have suggested structures with flexibility.
Create examples. Write at least one BAD/GOOD pair. Use concrete, realistic content — not placeholders. Each example needs an explanation of WHY it is bad or good. Place the best GOOD example last in the section to exploit recency bias. IF the skill has multiple distinct output types, provide one pair per type.
Write evaluation criteria. Define 4–8 gradable questions about the skill's output. Each criterion should be evaluable by an LLM-as-judge producing 0.0–1.0 scores. At least one must be marked required. Avoid subjective criteria ("is it well-written?"); prefer specific, verifiable conditions ("does the output contain all required sections?").
Write retrieval anchors. In the final section ("Questions This Skill Answers"), write 5–10 natural-language questions that someone might ask when they need this skill. These exploit the high-attention position at the end of context to improve future skill discovery.
Review against quality constraints. Run the novelty test: re-read every paragraph and delete anything the model already knows generically. Check terminology consistency — every term used in the procedure must match the vocabulary section. Verify the SKILL.md is under 500 lines. IF it exceeds 500 lines, move reference material, extended examples, or detailed rubrics into a references/ directory and link them one level deep from SKILL.md.
The skill produces a directory with this structure:
skill-name/
├── SKILL.md # Under 500 lines
│ ├── YAML frontmatter # All six required fields
│ ├── Vocabulary # 15–30 domain terms (first section)
│ ├── Anti-Patterns # 5–10 named patterns with Detect/BECAUSE/Resolve
│ ├── Checklist # Copy-paste tracking list (medium/low constraint)
│ ├── Procedure # 5–10 numbered steps with IF/THEN
│ ├── Output Format # Structured template for the deliverable
│ ├── Examples # BAD/GOOD pairs with explanations
│ ├── Evaluation Criteria # 4–8 gradable questions with weights
│ └── Questions # 5–10 retrieval anchors (final section)
└── references/ # Optional, for overflow content
├── extended-examples.md
└── detailed-rubric.md
Vocabulary
- function — a reusable block of code that performs a specific task
- variable — a named storage location for data
- YAML — a human-readable data serialisation language
- state machine — a system that transitions between defined states
- review — the process of examining work for quality
WHY BAD: Every term here is general knowledge the model already has. None activates specialised knowledge. The token cost is pure waste — it competes for attention with the skill's actual content without adding any routing value.
Skipping Specification
- Detect: Agent proceeds directly to implementation without writing a spec
- Resolve: Write a specification before implementing
WHY BAD: Without a BECAUSE clause, the rule covers only this literal case. An agent encountering a similar but not identical situation (e.g., skipping design review, or writing a minimal spec to tick the box) has no reasoning to generalise from.
Skipping Specification
- Detect: Agent proceeds directly to implementation without writing a spec document
- BECAUSE: Undocumented design decisions made during implementation are invisible to reviewers and future maintainers — the cost of discovering and correcting them during review is 5–10× higher than addressing them during specification, and decisions not captured in the spec cannot be traced when requirements change
- Resolve: Write a specification covering at least: problem statement, requirements, constraints, and acceptance criteria before any implementation task is created
WHY GOOD: The BECAUSE clause explains the full consequence chain — from invisible decisions through to costly review corrections and lost traceability. An agent reading this can generalise: any step that captures decisions early and makes them visible to reviewers serves the same purpose, even if the specific format varies.
Vocabulary
- vocabulary payload — the 15–30 domain terms placed first in a skill body that activate specialised knowledge clusters
- attention curve — the U-shaped attention distribution across context position; start and end receive highest weight
- constraint level — the degree of procedural freedom: low (exact steps), medium (templates), high (principles)
- dual-register description — expert terminology for routing depth plus natural language for trigger breadth
- BECAUSE clause — the causal explanation that makes an anti-pattern rule generalisable beyond its literal case
WHY GOOD: Every term is specific to the skill authoring domain and passes the 15-year practitioner test. None is general knowledge. Each definition is scoped to how the term functions within skills, not its general meaning. These terms route the model toward prompt engineering and instructional design knowledge rather than generic software engineering.