3.0 KiB
Skill Engineering Method
This doctrine defines the default method for turning messy workflow material into a reusable skill without bloating the entrypoint.
Core Loop
- Decide whether the request should become a skill at all.
- Choose the smallest viable archetype.
- Set one clear capability boundary.
- Write and test the trigger description before expanding the body.
- Add only the gates that match the risk.
- Package and govern the skill only as far as real reuse demands.
Phase 1: Qualification
Promote a request into a skill only when at least one of these is true:
- the workflow will be reused
- the workflow is easy to route incorrectly
- deterministic scripts reduce repeated effort
- governance or portability matters
Reject skill creation when the request is only:
- explanation
- summary
- translation
- brainstorming
- documentation without agent execution
- a one-off answer with no reuse value
Phase 2: Archetype Selection
Choose the lightest archetype that fits the job.
Scaffold: exploratory, personal, or short-livedProduction: team-reused, quality-sensitive, but still compactLibrary: broad reuse, visible evidence, portability, and maintenance expectationsGoverned: organizationally sensitive or operationally critical; lifecycle and review are explicit
See Skill Archetypes.
Phase 3: Boundary Design
Every skill should answer four questions clearly:
- what recurring job does it own
- what outputs does it produce
- what near-neighbor requests should not route here
- what detail belongs outside
SKILL.md
Boundary work comes before polishing prose.
Phase 4: Trigger-First Authoring
Author the frontmatter description before expanding the body.
- start with the recurring job
- include the trigger actions that should route here
- include exclusions when confusion is plausible
- test the route before growing the file tree
Trigger quality is improved through:
trigger_eval.pyoptimize_description.py- blind holdout
- judge-backed blind holdout
- adversarial holdout
- route confusion
Phase 5: Gate Selection
Add gates by risk, not by habit.
- low-risk scaffolds: validate structure and context size
- production skills: trigger eval plus resource-boundary checks
- library skills: description optimization, route confusion, packaging checks
- governed skills: governance scoring, lifecycle metadata, regression history
See Gate Selection.
Phase 6: Promotion
A candidate route or package is promotable only when:
- visible holdout does not regress
- blind holdout does not regress
- judge-backed blind holdout does not regress
- adversarial holdout does not regress
- route confusion stays clean
- context and governance gates still pass
See Promotion Policy.
Design Principle
The method is only correct if rigor grows faster than context cost. If a new check or document makes the skill heavier without making it more reliable, remove or relocate it.