mcpField
C
charted-red

charted-red

github.com/marmicodeTesting & quality1360 installsUpdated 5w ago
Repository

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

  1. 01Uses a design document as context
  2. 02Implements the next TODO test body
  3. 03Replaces instructional comments with code
  4. 04Keeps the test marked `it.todo`
  5. 05Does not implement the feature

Use cases

  1. 01Turn a commented test outline into code
  2. 02Write a test before implementing a feature
  3. 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-red

After installing, type/charted-redin Claude Code to confirm it loaded.

Details

From the project README

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);
});

Comments

Markdown supported