test_driven_agent

Test Driven Agent Protocol

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "test_driven_agent" with this command: npx skills add cityfish91159/maihouses/cityfish91159-maihouses-test-driven-agent

Test Driven Agent Protocol

  1. The Red-Green-Refactor Cycle
  • Red: Write a test that fails (demonstrating the bug or missing feature).

  • Agent Note: If fixing a bug, YOU MUST reproduce it with a test first.

  • Green: Write the minimal code to pass the test.

  • Refactor: Clean up the code while ensuring tests still pass.

  1. Test Coverage Requirements
  • Happy Path: The "standard" usage case.

  • Sad Path: Error states, network failures, invalid inputs.

  • Edge Cases: Empty lists, max values, concurrent actions.

  1. Self-Healing Mandate

If a test fails after your changes:

  • DO NOT delete the test.

  • DO NOT comment out the assertion.

  • DO NOT change the test expectation to match the buggy result (unless the spec changed).

  • DO: Fix the implementation logic until the test passes.

  1. Integration vs Unit
  • Unit: Mock external dependencies (Supabase, API). Fast, isolated.

  • Integration: Test the hook or service with realistic (mocked) data flows.

  1. Verification Checklist
  • Did I write a test case for this requirement?

  • Did I run npm test <filename> ?

  • Did I check specifically for regression in related headers/components?

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

agentic_architecture

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-review-excellence

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-simplifier

No summary provided by upstream source.

Repository SourceNeeds Review
General

frontend_mastery

No summary provided by upstream source.

Repository SourceNeeds Review