About charted-red
A testing skill that fills in the next TODO test using a design document when available. It writes test code while keeping the test marked as `it.todo`, without implementing the feature.
Key features
- 01Uses a design document as context
- 02Implements the next TODO test body
- 03Replaces instructional comments with code
- 04Keeps the test marked `it.todo`
- 05Does not implement the feature
Use cases
- 01Turn a commented test outline into code
- 02Write a test before implementing a feature
- 03Prepare the next test from a design document
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ marmicode/ skills --skill charted-redAfter installing, type/charted-redin Claude Code to confirm it loaded.
Details
From the project READMEContext
- 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);
});
Comments
Markdown supported