Claude Skill

test-first

Use during Build for testable logic. Failing test before implementation (light RGR). Declared exemptions over faked tests. (Lineage: superpowers/test-driven-development, godmode/test-first)

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Download bmtrnavsky-disciplined-vibe-coding-skills_test-first-0571870.zip · 0 KB

Install

skills CLI npx skills add https://github.com/bmtrnavsky/disciplined-vibe-coding/tree/main/skills/test-first
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install bmtrnavsky-disciplined-vibe-coding@llmmart
Git git clone https://github.com/bmtrnavsky/disciplined-vibe-coding.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole bmtrnavsky/disciplined-vibe-coding collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

Test-first — RED before GREEN

Prime directive

The test exists and fails before the passing code exists.

Steps

  1. RED: one test, one behavior; watch it fail.
  2. GREEN: smallest passing change.
  3. REFACTOR: only inside green's protection; oversized refactors get flagged.
  4. Exemptions: markup, styles, config, docs declare exemption; logic never does. Model tasks: the "test" is the pre-registered metric band from the plan.

Cognitive traps

  • "Tests after" — they test what you wrote, not what you promised.
  • "One big test" — one behavior per test.

Guardrails

  • Never implement first to "check the plan."
  • Never weaken a failing test to reach green.

Rung scaling (economy ladder)

Full-spec and above: RED then GREEN, no exceptions. Micro-spec: one failing check before the fix. One-liner: a smoke check after the change suffices, declared in chat. Declared exemptions beat faked tests at every rung.

Files (disciplined-vibe-coding)
  • SKILL.md 1.2 KB
    ---
    name: test-first
    description: Use during Build for testable logic. Failing test before implementation (light RGR). Declared exemptions over faked tests. (Lineage: superpowers/test-driven-development, godmode/test-first)
    phase: Build
    ---
    
    # Test-first — RED before GREEN
    
    ## Prime directive
    The test exists and fails before the passing code exists.
    
    ## Steps
    1. **RED:** one test, one behavior; watch it fail.
    2. **GREEN:** smallest passing change.
    3. **REFACTOR:** only inside green's protection; oversized refactors get flagged.
    4. **Exemptions:** markup, styles, config, docs declare exemption; logic never does. Model tasks: the "test" is the pre-registered metric band from the plan.
    
    ## Cognitive traps
    - "Tests after" — they test what you wrote, not what you promised.
    - "One big test" — one behavior per test.
    
    ## Guardrails
    - Never implement first to "check the plan."
    - Never weaken a failing test to reach green.
    
    ## Rung scaling (economy ladder)
    
    Full-spec and above: RED then GREEN, no exceptions. Micro-spec: one
    failing check before the fix. One-liner: a smoke check after the change
    suffices, declared in chat. Declared exemptions beat faked tests at every
    rung.
    

Comments

Sign in to join the conversation.

No comments yet. Start the conversation.

Reviews (0)

No reviews yet.