charted-red
Installation
SKILL.md
Context
- designDocPath: $ARGUMENTS[0]
- testFilePath: $ARGUMENTS[1]
Task
Based on the design doc at ${designDocPath} (if present), implement the body of the next todo test in ${testFilePath} without enabling it (i.e. keep "it.todo").
- Remove the step-by-step comment instructions from the test body and replace them with actual code.
- Remember that you love TDD and you want to write tests first.
- Implement the test only, do not implement the feature.
Example
Before
it.todo("compute sum", () => {
// Inject calculator
// Call calculator.sum(1, 2)
// Assert that the result is 3
});
After
it.todo("compute sum", () => {
const calculator = t.inject(Calculator);
const result = calculator.sum(1, 2);
expect(result).toBe(3);
});
Related skills
More from marmicode/skills
charted-review
Reviews a design doc with expert sub-agents
24charted-design
Interviews the user section by section to collaboratively produce design documents. Use when creating a design doc, starting feature design, or when the user invokes the design command.
21charted-green
Progressively activates todo tests one at a time, updates implementation code until each passes (verified via Wallaby), then moves to the next—following the design doc as the single source of truth.
20charted-scaffold
Writes work-in-progress code and tests based on design doc
19charted-wip
Writes wip code and tests based on design doc
1