/ma:test-driven-developmentfrom ma
Use when implementing testable feature or bug behavior. Write a failing test for the intended observable change before changing production behavior; characterize existing code instead of discarding it.
Ships in ma. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use a short red–green–refactor loop for observable behavior. The test should prove the requested change, not satisfy a ritual.
Before writing a test, name:
Do not invent tests for human prose, behavior-free configuration, trivial forwarding, or generated artifacts without an executable contract. Record legitimate coverage exclusions explicitly. Allowed exclusion categories are generated, declarative, unreachable, and behavior-free.
Read writing-good-tests.md when writing or changing tests, mocks, fixtures, or test helpers.
Write the smallest test that expresses one intended outcome. Exercise real code and boundaries; mock the narrowest slow, external, nondeterministic, or otherwise impractical dependency after understanding its side effects.
Run the narrow test and confirm it fails because the intended behavior is missing or wrong. A syntax error, broken fixture, or unrelated failure is not a valid red. If the test already passes, refine it to cover the actual delta or confirm that no production change is needed.
Preserve valid existing code. When it predates tests:
Do not delete and recreate implementation merely because it was written before its tests. Exploration may inform the test, but keep only code supported by the accepted behavior.
Make the smallest coherent production change that passes the new test. Avoid unrequested options and abstractions. Run the narrow test, then the relevant suite. Fix the implementation when a valid test fails; change a test only when its expectation or setup is demonstrably wrong.
After green, improve names, cohesion, and duplication without changing behavior. Keep the tests passing. Add another red case for any new behavior discovered during refactoring.
Aim for 100% line and branch coverage of testable production behavior. Tests are required for new or changed observable behavior, not for every method. Coverage proves execution, not correctness; assertions must cover useful outcomes, boundaries, and meaningful failure paths. Record the project's actual coverage command and measured scope. Do not claim a numeric result when no executable coverage tool ran.
Before completion confirm:
For a regression, first reproduce the bug with a failing test, then fix it and retain the test.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub marcus-friction/agents --plugin ma43 skills in this plugin
/adversarial-reviewIndependently challenge elevated or significant architecture, security, data, migration, permission, deployment, or production changes. Use after a primary or deep review, or when explicitly requested; routine changes do not require it./architecture-reviewReview code or plans when a change affects component boundaries, dependencies, contracts, data ownership, layering, or adopted project architecture decisions./build-start-scriptsStandards and patterns for building reliable local dev startup scripts (serve.sh, start.sh). Use this skill when creating, modifying, or reviewing any shell script that boots Docker containers, Laravel Sail, Nuxt dev servers, or background services. Also use when the user mentions "serve script", "startup script", "docker compose up", "sail up", or asks to fix orphaned containers, port conflicts, or flaky local environments. Proactively suggest when you see startup-related issues in scripts being edited.Other plugins' skills for the same job