Imported from scc-tw/dude (
.codex/skills/dude-spec/SKILL.md). Install upstream withnpx skills add scc-tw/dude --skill dude-spec. Copyright stays with the author.
Create / Edit Spec Files
Target
Work on: $ARGUMENTS
If no argument, use spec/SPEC.md.
Spec Format
## [PREFIX-NNN] Feature Title
Description of the feature.
```contract
role: adapter
effects: network + state
concurrency: safe
complexity: O(1)
pre: connection_established()
post: result_valid(result)
invariant: count <= max
```
Anchor ID Convention
- Format:
PREFIX-NNN(uppercase, hyphen, zero-padded) - Prefix = module domain: EVAL, GATE, CLI, WATCH, LSP, CONFIG...
Steps
- Read the spec file (or confirm it doesn't exist)
- Call
scan_spec_file(path)to see current anchors - Write spec with
## [ID] Title+```contractblock - Call
get_drift_report()to see what needs code anchors - Write code with
# @anchor ID [behavior_props]on the definition - Call
verify_behavior(id)to confirm behavior matches