trendpilotai/openclaw-n8n-railway/test-driven-development

Claude Code and agent skill by trendpilotai/openclaw-n8n-railway

Trust tier 3
  • community
Source check pending

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

Use when implementing any feature or bugfix, before writing implementation code

Install

npx vskill@latest install trendpilotai/openclaw-n8n-railway/test-driven-development

SKILL.md

The same SKILL.md was published earlier as trendpilotai/openclaw-n8n-railway/test-driven-development.

Test-Driven Development (TDD)

Write the test first. Watch it fail. Write minimal code to pass.

Core principle: If you didn't watch the test fail, you don't know if it tests the right thing.

When to Use

Always: New features, bug fixes, refactoring, behavior changes

Exceptions (ask your human partner): Throwaway prototypes, generated code, config files

The Iron Law

NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST

Write code before the test? Delete it. Start over. No exceptions.

Red-Green-Refactor

RED - Write Failing Test
  • One behavior, clear name, real code (no mocks unless unavoidable)
  • Run test, confirm it fails for the expected reason
GREEN - Minimal Code
  • Write simplest code to pass the test
  • Don't add features beyond the test
REFACTOR - Clean Up
  • Remove duplication, improve names, extract helpers
  • Keep tests green. Don't add behavior.

Good Tests

QualityGoodBad
MinimalOne thing. "and" in name? Split it.test('validates email and domain and whitespace')
ClearName describes behaviortest('test1')
Shows intentDemonstrates desired APIObscures what code should do

Common Rationalizations

ExcuseReality
"Too simple to test"Simple code breaks. Test takes 30 seconds.
"I'll test after"Tests passing immediately prove nothing.
"TDD will slow me down"TDD faster than debugging.
"Need to explore first"Fine. Throw away exploration, start with TDD.

Example: Bug Fix

Bug: Empty email accepted

RED: test('rejects empty email', ...) -> FAIL: expected 'Email required', got undefined

GREEN: Add if (!data.email?.trim()) return { error: 'Email required' } -> PASS

REFACTOR: Extract validation for multiple fields if needed.

Verification Checklist

  • [ ] Every new function has a test
  • [ ] Watched each test fail before implementing
  • [ ] Wrote minimal code to pass each test
  • [ ] All tests pass with pristine output
  • [ ] Edge cases and errors covered

Security

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

Quality evaluation

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

Source

Popularity

7-day trend score
5

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/trendpilotai/openclaw-n8n-railway/test-driven-development/badge)](https://verified-skill.com/skills/trendpilotai/openclaw-n8n-railway/test-driven-development)

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