From skill-authoring
Captures hard-won debugging insights as reusable skill files. Use after solving tricky bugs or discovering undocumented behaviors specific to a codebase.
How this skill is triggered — by the user, by Claude, or both
Slash command
/skill-authoring:hard-won-skill-extractorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill serves to document how to manually extract a useful learned skill into a reusable markdown file.
This skill serves to document how to manually extract a useful learned skill into a reusable markdown file.
Reusable skills are not code snippets to copy-paste, but principles and decision-making heuristics that teach an agent HOW TO THINK about a class of problems.
The difference:
Before extracting a skill manually, ALL three must be true:
Extract ONLY after:
Reject skills that are:
.skills/<skill-name>.md - Default. Intended to be committed with the repo.If the extracted idea should become a maintained, shareable skill instead of a project-local note, switch to skill-authoring-guide and turn it into a proper skill folder with frontmatter, support files, and validation.
Every learned skill file MUST start with YAML frontmatter. Do not write plain markdown without frontmatter.
After the frontmatter, use a pure Markdown body with headings. Do not use XML-like tags such as <Purpose> or <Workflow> as default top-level structure; reserve XML-like delimiters for nested examples, quoted input, external documents, or machine-readable prompt payloads.
Minimum required frontmatter:
---
name: <skill-name>
description: <one-line description>
triggers:
- <trigger-1>
- <trigger-2>
---
---
name: <skill-name>
description: <one-line description>
triggers:
- <trigger-1>
- <trigger-2>
---
# [Skill Name]
## The Insight
What is the underlying PRINCIPLE you discovered? Not the code, but the mental model.
## Why This Matters
What goes wrong if you don't know this? What symptom led you here?
## Recognition Pattern
How do you know when this skill applies? What are the signs?
## The Approach
The decision-making heuristic, not just code. How should an agent THINK about this?
## Example (Optional)
If code helps, show it - but as illustration of the principle, not copy-paste material.
npx claudepluginhub yeaight7/agent-powerups --plugin skill-authoringCreates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.