planning-with-files
Optional persistent file-based planning for multi-phase or long-running work that benefits from recovery across sessions or…
Red-green-refactor Implement method inside a caller-owned lifecycle for explicit TDD or test-first requests. Requires red evidence, minimal green implementation, and rerun validation.
$ npx -y skills add khaneliman/khanelinix --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.
Red-green-refactor Implement method inside a caller-owned lifecycle for explicit TDD or test-first requests. Requires red evidence, minimal green implementation, and rerun validation.
name: tdd description: "Red-green-refactor Implement method inside a caller-owned lifecycle for explicit TDD or test-first requests. Requires red evidence, minimal green implementation, and rerun validation." license: Complete terms in LICENSES/
Use this method when implementing features or bug fixes test-first. Test-driven development executes a red-green-refactor loop across observable behavior boundaries.
This skill is a narrow implementation method. It does not own lifecycle planning, repository design review, or external handoff.
Execute vertical slices. Complete one seam, one failing test, and one minimal implementation per cycle. Do not write tests in bulk before implementation.
1. **Identify the behavior seam.** Select the public interface that exposes the behavior. Avoid testing private functions or internal state. See [references/test-quality.md](references/test-quality.md) for test quality rules. 2. **Write the failing test.** Write one focused test for the intended behavior. Avoid tautological assertions and implementation coupling. Use mocks only for external system boundaries per [references/mocking.md](references/mocking.md). 3. **Execute the test to verify failure.** Run the test suite on the new test. Confirm the test fails for the expected reason. Capture the failure evidence. 4. **Implement the minimal fix.** Write only enough production code to pass the test. Do not add speculative capabilities or unneeded abstractions. 5. **Rerun the test.** Execute the test to verify green status. Run adjacent tests to verify no regressions. 6. **Apply bounded refactoring.** Clean up duplication and structure while keeping tests green. Re-run tests after each small cleanup.
Skip test creation when tests require broad harness setup, brittle mocks, slow end-to-end infrastructure, or production-only state.
When skipping a test:
log verification.
Report the following evidence to the caller:
Run packages directly with: Or install from the packages output. For example:
Optional persistent file-based planning for multi-phase or long-running work that benefits from recovery across sessions or…
Audit coding-agent sessions and mine cross-harness history for recurring corrections, skill-routing gaps, and harness faults. Use…
Design and audit agent instructions, skills, plugins, subagents, prompts, hooks, and provider configuration. Use for AI-tool…
Sketch interfaces, state, and module structure before code. Use for explicit design-led implementation or as a caller-owned…
Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena,…
Bevy workflows for ECS, migrations, first-party UI/input/rendering/assets/shaders, plugin selection, scenes, scheduling, hot…