Autonomously implement and test unsatisfied requirements until complete
Autonomously work through unsatisfied requirements until they are complete.
/work-requirements [prefix]
When this skill is invoked:
Get current status by running:
cargo run --bin _trace -- [prefix] --limit=100 2>&1
Parse the output to identify all incomplete requirements. Build a list of:
Select the next requirement to work on using this priority order:
impl before test (need implementation before you can test it)Work on the selected requirement:
a. Read the definition: Find [def <id>] and understand what needs to be
implemented/tested.
b. If missing impl:
[impl <id>] annotation to the implementationc. If missing test:
[test <id>] annotation to the testcargo test to verify it passesd. If missing example:
[example <id>] annotationVerify completion by running the CLI again:
cargo run --bin _trace -- <id> 2>&1
The requirement should now show as satisfied.
Loop: Go back to step 1 and continue with the next requirement until all are satisfied (or until hitting a requirement that can't be easily completed).
Report progress at each iteration:
## Working on: _trace.syntax.brackets
**Status**: missing impl
**Action**: Adding [impl _trace.syntax.brackets] to parser.rs regex definition
...implementation details...
**Result**: SATISFIED
---
## Progress: 5/53 requirements satisfied this session
## Remaining: 48 incomplete requirements
Stop working when:
/work-requirements _trace.syntax
## Working on: _trace.syntax.brackets (leaf, missing impl)
Reading definition from SPEC.md:29...
Definition: "An annotation is text wrapped in square brackets: `[...]`"
This is already implemented by ANNOTATION_PATTERN in parser.rs.
Adding annotation to mark it as implemented.
[Edit parser.rs to add [impl _trace.syntax.brackets] comment]
Verifying... SATISFIED
---
## Working on: _trace.syntax.not-preceded (leaf, missing test)
Reading definition from SPEC.md:32...
Definition: "Not recognized if immediately preceded by `]`, `)`, or backtick"
Implementation exists at parser.rs:48-54.
Adding test to verify this behavior.
[Edit parser.rs tests to add test_not_preceded]
Running cargo test... PASSED
Verifying... SATISFIED
---
## Session Complete
- Requirements satisfied: 12
- Remaining incomplete: 41
- Flagged for review: 2
- _trace.types.custom: Needs design decision on validation
- _trace.cli.watch: Marked as future work in spec