charted-red

📁 marmicode/skills 📅 12 days ago
9
总安装量
9
周安装量
#31969
全站排名
安装命令
npx skills add https://github.com/marmicode/skills --skill charted-red

Agent 安装分布

cursor 9
gemini-cli 8
github-copilot 8
opencode 7
codex 7
amp 7

Skill 文档

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