with one click
skill-crafting
Create and refine agent skills.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Create and refine agent skills.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Post-implementation integrity and quality audit.
Session-start skill discovery protocol.
Structured root-cause investigation for bugs and failures.
Execute implementation plan task-by-task inline.
Complete work with merge, PR, or cleanup options.
Integrity guardrails during code implementation.
| name | skill-crafting |
| description | Create and refine agent skills. |
Build skills through evaluation-driven development: create evals first, measure baseline behavior, write the skill, verify improvement, iterate.
Core principle: If you did not watch an agent fail without the skill, you do not know what the skill needs to teach.
Personal skills: ~/.claude/skills (Claude Code), ~/.agents/skills/ (Codex).
A skill is a reference guide for proven techniques, patterns, or tools. Skills help future agent instances find and apply effective approaches.
Skills are: Reusable techniques, patterns, tools, reference guides, runbooks. Skills are NOT: Narratives, one-off solutions, standard practices already in training data, project-specific conventions (those belong in CLAUDE.md).
See references/thariq-skill-categories.md for the nine skill categories.
Skills are folders, not files. Use the filesystem for progressive disclosure:
skill-name/
SKILL.md # Main reference (required, <300 lines target, 500 hard max)
references/ # Detailed docs, API schemas, examples
scripts/ # Bash scripts for deterministic operations
config.json # User-specific setup (if needed)
SKILL.md stays focused. Heavy reference material goes in references/. Tell Claude what files exist — it reads them when needed.
---
name: gerund-style-name
description: "Use when [specific triggering conditions and symptoms]"
---
name: letters, numbers, hyphens only. Gerund preferred (orchestrating, debugging).description: max 1024 chars. Third person. Trigger conditions only — never summarize workflow.
See references/search-optimization.md for why descriptions must avoid workflow summaries.# Skill Name
[1-2 sentence overview with core principle]
## When to Use
[Symptoms, triggers. When NOT to use. Flowchart only if decision is non-obvious.]
## Process / Core Pattern
[Steps, before/after, or decision tree. Inline code if <50 lines.]
## Quick Reference
[Table or bullets for scanning]
## Integration
[Cross-references to related skills]
## Gotchas
[Mandatory. Built from real failure patterns. Highest-signal section.]
Follow RED-GREEN-REFACTOR adapted from arsyn:tdd:
Run pressure scenarios with a subagent WITHOUT the skill. Document:
This is the eval. You must see failure before writing the fix.
Address the specific failures from baseline. Do not add content for hypothetical cases. Run same scenarios WITH the skill. Agent should now comply.
Agent found new rationalizations? Add explicit counters. Re-test. Iterate with Claude A/B pattern: Agent A writes skill, Agent B tests it blind.
See testing-skills-with-subagents.md for pressure scenario methodology.
Every token in a frequently-loaded skill burns context in every conversation.
--help instead of documenting all flagsMatch constraint level to task fragility:
Focus on what breaks default assumptions: project-specific patterns, unconventional choices, edge cases that cause failures. Standard programming knowledge is already in training data.
Provide necessary information but allow adaptation. Skills are reused across different contexts — rigidity prevents that.
Most information-dense part of any skill. Built from real agent failure points.
Format:
## Gotchas
- **[Short name]** -- What goes wrong and how to avoid it.
SKILL.md references files in references/. Those files do not reference further files. Keeps the dependency graph flat.
Effective skills encode run-validate-fix-repeat cycles. Tell the agent how to verify its own work at each step, not just what to do.
If a skill needs user-specific context, store in config.json. If config is missing or incomplete, use AskUserQuestion for structured input.
When a skill includes steps that must execute exactly (no judgment), put them in scripts/ as bash. Claude orchestrates; scripts execute deterministically.
Use only for non-obvious decision points, process loops where stopping too early is likely, or A-vs-B decisions. Never for reference material, code examples, or linear instructions.
See references/graphviz-conventions.dot for style rules.
| Skill type | Test with | Success = |
|---|---|---|
| Discipline (rules) | Pressure scenarios, combined pressures, rationalization probes | Follows rule under max pressure |
| Technique (how-to) | Application scenarios, edge cases, missing-info tests | Applies technique to new scenario |
| Pattern (mental model) | Recognition, application, counter-examples | Correctly identifies when/how to apply |
| Reference (docs/APIs) | Retrieval, application, gap testing | Finds and correctly uses information |
When skills enforce rules (like TDD), agents rationalize under pressure. Counter this:
See references/persuasion-principles.md for research foundation on authority, commitment, and social proof.
RED:
GREEN:
REFACTOR:
Quality:
references/, not inline@ syntax loads files immediately, burning context. Use skill name references instead.