# Charted Red

> Writes the next failing test based on provided design doc and existing todo tests

- Skill: `marmicode/charted-red` (Agent Skill)
- Install (CLI): `npx skillmds@latest add marmicode/charted-red`
- Raw SKILL.md: https://api.skillmd.com/api/skills/marmicode/charted-red/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: marmicode (https://skillmd.com/u/marmicode)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/marmicode/charted-red

---


# 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

```ts
it.todo("compute sum", () => {
  // Inject calculator
  // Call calculator.sum(1, 2)
  // Assert that the result is 3
});
```

### After

```ts
it.todo("compute sum", () => {
  const calculator = t.inject(Calculator);
  const result = calculator.sum(1, 2);
  expect(result).toBe(3);
});
```

