This skill implements test-driven development workflow using the red-green-refactor cycle. Use when building new features or fixing bugs that require test coverage. Framework-agnostic methodology that works with any testing framework and programming language. Triggers on requests to implement features using TDD, write tests first, or follow test-driven development practices.
Implements test-driven development using the red-green-refactor cycle. Triggers on requests to build features using TDD, write tests first, or follow test-driven development practices.
/plugin marketplace add majesticlabs-dev/majestic-marketplace/plugin install majestic-engineer@majestic-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/rails-tdd-workflow.mdThis skill guides the implementation of features using Test-Driven Development (TDD) principles. TDD is a disciplined, framework-agnostic approach where tests are written before implementation code, ensuring comprehensive test coverage and driving clean, testable design.
Never write implementation code before a failing test exists for that behavior.
Goal: Express the expected behavior through a test that fails.
Process:
Why it must fail first: A test that passes before any implementation is written might be testing the wrong thing or not actually exercising the code.
Goal: Make the test pass with the simplest possible implementation.
Process:
Key principle: Write the simplest code that could possibly work. Even hardcoding values is acceptable if it makes the current test pass - subsequent tests will force generalization.
Goal: Improve code quality while maintaining passing tests.
Process:
Safety net: Tests provide confidence that refactoring doesn't break functionality.
Starting a new feature or bug fix:
For each behavior:
When all behaviors are complete:
Order tests from simple to complex:
Happy path - The core behavior with valid inputs
Validation tests - Required fields, format constraints
Edge cases - Boundary conditions, empty values, unusual inputs
Error handling - Invalid inputs, failure scenarios
Integration points - Interactions with other components
Each test should:
Avoid:
Ideal for:
May skip for:
This skill provides the framework-agnostic TDD workflow. For framework-specific implementation details, use the appropriate testing skill for your project:
rspec-coder skill for RSpec syntax and patternsminitest-coder skill for Minitest syntax and patternsA Ruby on Rails example implementation is available in references/rails-tdd-workflow.md to illustrate how these principles apply in a specific framework, but the TDD workflow itself remains the same across all languages and frameworks.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.