hm-l2-test-driven-execution
Use when executing test-first implementation, RED/GREEN/REFACTOR cycles, failing-test validation, coverage claim verification, or test-suite quality work with…
Skill by shynlee04
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/shynlee04-hm-l2-test-driven-execution
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/hm-l2-test-driven-execution
What's inside
- Skill name
hm-l2-test-driven-execution- Description
- Use when executing test-first implementation, RED/GREEN/REFACTOR cycles, failing-test validation, coverage claim verification, or test-suite quality work with fresh evidence. Trigger for TDD and runtime-truthful test execution. NOT for spec authoring, generic planning, manual-only QA, or post-hoc test suggestions after implementation is already written.
- License
- MIT
- Metadata
- role: domain-execution · layer: 2 · pattern: P2 · version: 1.2.0
- Instructions
- 260 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- allowed-tools: must be a space-separated string
Files (15)
- SKILL.md
- evals.json · evals/
- .gitkeep · metrics/
- rich-eval-rubric.json · metrics/
- rich-gate-scorecard.md · metrics/
- coverage-verification.md · references/
- red-green-refactor.md · references/
- source-synthesis.md · references/
- validate-rich-package.sh · scripts/
- validate-skill.sh · scripts/
- task_plan.md
- .gitkeep · templates/
- test-case-template.md · templates/
- .gitkeep · workflows/
- tdd-session-workflow.md · workflows/
SKILL.md (first lines)
# Test-Driven Execution ## Overview Execute runtime-truthful RED/GREEN/REFACTOR work from locked requirements. This skill owns test-first execution, invalid RED detection, coverage evidence, regression handling, and honest blocked handoffs. It does **not** author ambiguous requirements; use `hm-spec-driven-authoring` first when acceptance criteria are missing or unclear. This package synthesizes three inspected third-party patterns: | Source pattern | Adopt / adapt decision | Local transformation | |---|---|---| | `addyosmani/agent-skills@test-driven-development` | Adopt comprehensive TDD, Prove-It bug-fix pattern, test sizes, state-over-interactions, DAMP tests, real/fake/stub/mock preference; adapt browser tooling to available tools. | Adds bug reproduction first, test-size labels, boundary-mock policy, and runtime verification warnings. | | `helderberto/skills@tdd` | Adopt one-test-at-a-time vertical TDD, public-interface discipline, and refactor-after-green rule. | Adds no-batch RED enforcement, public contract focus, and deep-module/testability checkpoints. | | `jellydn/my-ai-tools@tdd` | Adapt action/status vocabulary and test-template package idea; reject hard-coded slash-command wrappers. | Adds portable session state, workflow template, and runner-agnostic test template. | ## Entry Gate Proceed only when there is at least one locked requirement, bug reproduction, acceptance criterion, or explicit behavior contract. Before writing tests: 1. Confirm the desired behavior and failure mode are observable. 2. Confirm implementation has not already been written for the slice. If it has, either delete/revert the implementation for a true RED cycle or label the work as test-after and do not claim TDD. 3. Identify the project test runner and coverage options. 4. If requirements are ambiguous, stop and hand off to `hm-spec-driven-authoring`. 5. If work spans sessions, persist RED/GREEN/REFACTOR status through `hm-planning-persistence` (.hivemind/state/planning/<session-id>/progress.md) or a local progress table. ## Boundary Rules | Nearby workflow | Boundary | |---|---| | `hm-spec-driven-authoring` | Owns requirement and acceptance-test derivation. This skill consumes locked requirements. | | `hm-planning-persistence` | Owns durable task/progress files in `.hivemind/state/planning/<session-id>/`. This skill records test phase state into that mechanism when needed. | | Manual-only QA | Manual exploration may inform a bug, but it is not RED/GREEN/REFACTOR execution. | | Test-after work | Useful, but not TDD. Do not claim RED evidence if tests were written after implementation. | | Generic code review | Review can assess quality after tests pass; it does not replace fresh test output. | ## RED/GREEN/REFACTOR Gates Default rule: one test, minimal code, then next test. Do **not** batch multiple RED tests and then implement them together unless the requirement is inseparable and you document why. ### Red Phase Write the smallest test that fails for the right reason before implementation changes. ```bash npm test pytest go test ./... ``` **Gate:** The test must fail before implementation. If it passes, STOP. The RED test is invalid or the feature already exists. Rewrite the test or re-scope the slice before continuing. Record: ```yaml phase: red requirement_id: REQ-... test_size: small | medium | large public_interface: <API/CLI/UI/function/event> command: <exact command> observed_failure: <excerpt> failure_reason_valid: true | false ``` ### Green Phase Write the minimal implementation that makes the failing test pass. Avoid unrelated cleanup. ```bash npm test pytest go test ./... ``` **Gate:** If the target test still fails, debug the behavior. Do not refactor before green. Keep GREEN implementation minimal: no unrelated cleanup, no broad rewrites, no private-interface-only proof. ### Refactor Phase Clean only after green. Re-run the target test and the relevant broader suite. **Gate:** If refactor breaks tests, revert the refactor or split it into smaller steps. Refactor only after green output exists in the current session. Re-run the focused test and the relevant broader suite or explain why the broader suite is out of scope. ## Prove-It Pattern for Bugs Use this when the task starts from a defect rather than a new feature: 1. Reproduce the bug with a failing test or the smallest automated command that captures the bad behavior. 2. Confirm the failure is meaningful and would fail without the fix. 3. Apply the minimal fix. 4. Re-run the reproduction test, then the relevant regression suite. 5. Record whether the bug is now covered by a permanent regression test. If the bug can only be reproduced manually, label the evidence `manual-reproduction` and do not claim automated TDD until an automated RED test exists. ## Runtime-Truthful Testing Prefer tests that exercise real behavior. Mock only transport boundaries, clocks, external services, or expensive infrastructure when the mock does not hide the behavior under test. Evidence labels: - `runtime-truthful`: test exercises the behavior through real public interfaces or realistic integration seams. - `transport-mocked`: external transport is mocked but domain behavior is real. - `mock-heavy`: many internals are mocked; cannot by itself prove runtime behavior. - `manual-only`: useful observation, not automated proof. Mock-heavy tests may support debugging but cannot close runtime-truthful acceptance criteria without complementary evidence. Use the preference order adapted from the inspected TDD sources: 1. Real implementation through public interface. 2. Fake implementation for expensive external systems. 3. Stub for deterministic boundary values. 4. Mock only for transport, clock, external service, or failure injection boundaries. ## Test Size and Readability Labels
From shynlee04/hivemind-plugin, MIT.
More from shynlee04/hivemind-plugin
- 0.578score
hm-l3-synthesis
shynlee04
Compress research findings into actionable artifacts with tiered reduction.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l2-coordinating-loop
shynlee04
Coordinate multi-agent dispatch with validation gates and handoff protocols.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-integration-contracts
shynlee04
Formal bidirectional contract authority between skills and agents.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hf-l2-skill-synthesis
shynlee04
Use when synthesizing skills from GitHub repos, classifying skill patterns, building template libraries, generating eval frameworks, or creating eval-driven…
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hf-l2-agent-composition
shynlee04
Teaches agents how to compose specialist agents from user intent using XML markup grammar, step protocols, and structured return formats.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-detective
shynlee04
Investigate codebases with SCAN, READ, and DEEP reading modes.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hf-l2-context-absorb
shynlee04
Multi-wave swarm protocol for absorbing dense context (links, text, files, stories, events, actors) into persistent session-context-prompt.md.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hf-l2-command-parser
shynlee04
This skill should be used only when parsing $ARGUMENT propositional commands from OpenCode command strings.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hm-l2-requirements-analysis
shynlee04
Formal requirements diagnosis methodology for detecting gaps, contradictions, missing constraints, and unvalidated assumptions in existing requirements.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hf-l2-skill-router
shynlee04
Maps meta-builder task domains to hf-* skill loading bundles with priority ordering.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hm-l2-completion-looping
shynlee04
Guardrail workflows against regression with non-completion detection and automatic loop-back.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hf-l2-delegation-gates
shynlee04
Enforce pre-delegation authorization gates before agent dispatch.
SkillCFreshness: C★ 51Claude Code +9
Signals
- Stars
- 51
- Forks
- 16
- Open issues
- 21
- Last commit (this folder)
- May 7, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.2.0
- License
- MIT
- Repository
- github.com/shynlee04/hivemind-plugin
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from shynlee04
- 0.578score
hm-l2-coordinating-loop
shynlee04
Coordinate multi-agent dispatch with validation gates and handoff protocols.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-integration-contracts
shynlee04
Formal bidirectional contract authority between skills and agents.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hf-l2-skill-synthesis
shynlee04
Use when synthesizing skills from GitHub repos, classifying skill patterns, building template libraries, generating eval frameworks, or creating eval-driven…
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hf-l2-agent-composition
shynlee04
Teaches agents how to compose specialist agents from user intent using XML markup grammar, step protocols, and structured return formats.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-detective
shynlee04
Investigate codebases with SCAN, READ, and DEEP reading modes.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-synthesis
shynlee04
Compress research findings into actionable artifacts with tiered reduction.
SkillCFreshness: C★ 51Claude Code +9
Cite this page
hm-l2-test-driven-execution skill. Agent Mart. https://agentmart.dev/skills/shynlee04-hm-l2-test-driven-execution (last updated 2026-10-24)