majiayu000/claude-skill-registry-data/testing-tdd-workflow-codermariusz-monopilot

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Tainted

Author "majiayu000" has blocked skill(s)

Apply when implementing new features, fixing bugs, or refactoring code. TDD ensures tests drive design and all code is covered.

Install

npx vskill@latest install majiayu000/claude-skill-registry-data/testing-tdd-workflow-codermariusz-monopilot

SKILL.md

When to Use

Apply when implementing new features, fixing bugs, or refactoring code. TDD ensures tests drive design and all code is covered.

Patterns

Pattern 1: Red-Green-Refactor Cycle
RED: Write failing test (test what, not how)
GREEN: Write minimal code to pass
REFACTOR: Improve code, keep tests green
REPEAT: Next behavior

Source: https://martinfowler.com/bliki/TestDrivenDevelopment.html

Pattern 2: Test Structure (AAA)
typescript
// Source: https://martinfowler.com/bliki/GivenWhenThen.html
it('should calculate total with discount', () => {
// Arrange (Given)
const cart = new Cart();
cart.add({ price: 100, quantity: 2 });
// Act (When)
const total = cart.calculateTotal(0.1); // 10% discount
// Assert (Then)
expect(total).toBe(180);
});
Pattern 3: One Assertion Per Test
typescript
// Source: https://blog.cleancoder.com/uncle-bob/2014/12/17/TheCyclesOfTDD.html
// GOOD: Single behavior per test
it('should add item to cart', () => {
cart.add(item);
expect(cart.items).toContain(item);
});
it('should update cart count', () => {
cart.add(item);
expect(cart.count).toBe(1);
});
// BAD: Multiple behaviors
it('should add item and update count', () => { /* multiple asserts */ });
Pattern 4: Test Naming Convention
typescript
// Format: should [expected behavior] when [condition]
describe('Cart', () => {
it('should return 0 when cart is empty', () => {});
it('should apply discount when code is valid', () => {});
it('should throw error when quantity is negative', () => {});
});
Pattern 5: Outside-In TDD
1. Start with acceptance test (user story)
2. Discover collaborators through failing test
3. Write unit tests for collaborators
4. Implement from inside out
5. Acceptance test passes

Source: https://martinfowler.com/bliki/TestDrivenDevelopment.html

Anti-Patterns

  • Test after code - Loses design benefits; tests become afterthought
  • Testing implementation - Test behavior, not internal methods
  • Large test steps - Keep RED-GREEN cycles small (minutes, not hours)
  • Skipping refactor - Technical debt accumulates; refactor is mandatory

Verification Checklist

  • [ ] Test written BEFORE implementation
  • [ ] Test fails for the right reason (RED)
  • [ ] Minimal code written to pass (GREEN)
  • [ ] Code refactored, tests still pass
  • [ ] Each test covers one behavior
  • [ ] Test names describe expected behavior

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
23
Repository forks
9
7-day trend score
21

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/majiayu000/claude-skill-registry-data/testing-tdd-workflow-codermariusz-monopilot/badge)](https://verified-skill.com/skills/majiayu000/claude-skill-registry-data/testing-tdd-workflow-codermariusz-monopilot)

Something wrong with this skill or its page? Tell us.