accountable-engineerin…
Use explicit human checkpoints for architecture, security, rollout, or operational decisions.
Guide through the Red-Green-Refactor cycle for test-driven development
$ npx -y skills add jellydn/my-ai-tools --skill tdd --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/tddContext preview
The summary Claude sees to decide when to auto-load this skill.
Guide through the Red-Green-Refactor cycle for test-driven development
name: tdd description: "Guide through the Red-Green-Refactor cycle for test-driven development" license: MIT compatibility: cline, claude, opencode, amp, codex, gemini, cursor, pi hint: Use when doing test-driven development with Red-Green-Refactor cycle user-invocable: true metadata: audience: all workflow: testing
Guides you through the complete TDD workflow with Red-Green-Refactor cycle.
`/tdd <ACTION> [ARGUMENTS]`
1. **Red**: Write a failing test that defines desired behavior 2. **Green**: Write minimal code to make the test pass 3. **Refactor**: Improve code quality while keeping tests green
Before the first Red phase, discover the repository's test runner and command from its manifest, task runner, docs, or CI. Do not assume TypeScript, Vitest, npm, or pnpm. Record the exact command used for the red failure and why it failed; a syntax/import error is not a valid Red state.
1. Initialize TDD session for the feature 2. Create or identify target source file 3. Create corresponding test file if it doesn't exist 4. Explain the feature requirements and acceptance criteria
1. Create a failing test that describes the desired behavior 2. Ensure test fails for the right reason (not syntax errors) 3. Run tests to confirm red state 4. Explain what the test is validating
1. Implement minimal code to make failing tests pass 2. Focus on making tests pass, not perfect code 3. Run tests to confirm green state 4. Write just enough code to pass the test
1. Improve code quality while maintaining green tests 2. Remove duplication and improve design 3. Run tests continuously during refactoring 4. Make one refactoring change at a time
A test template is available at `$SKILL_PATH/templates/test-template.md`:
import { describe, it, expect } from "vitest";
import { functionName } from "./module";
describe("functionName", () => {
it("should return formatted output when given valid input", () => {
// Arrange - Setup test scenario
const input = "test input";
const expectedOutput = "expected output";
// Act - Execute the unit under test
const result = functionName(input);
// Assert - Verify expected outcome
expect(result).toBe(expectedOutput);
});
});Portable, source-controlled configuration for AI coding assistants. my-ai-tools installs one consistent set of agent guidelines, skills, commands, hooks, MCP servers, and tool settings across supported AI coding assistants.
Use explicit human checkpoints for architecture, security, rollout, or operational decisions.
Record architecture decisions with ADRs — captures why, alternatives considered, and consequences
Use when monitoring an open GitHub PR for CI failures, review feedback, mergeability, and safe retries or fixes.
Inspect history and architecture for hidden constraints before risky cross-cutting changes.
Build an interactive report or experiment when the user asks to explore model capabilities.
Audit a diff for structural maintainability and unnecessary complexity.