tdd-workflow
Test-driven development workflow enforcing 80%+ coverage across unit, integration, and E2E tests.
- Write tests first, then implement code to make them pass; covers unit tests (functions, components), integration tests (APIs, databases), and E2E tests (Playwright for critical user flows)
- Includes comprehensive testing patterns with Jest/Vitest for components, API route testing, and Playwright for browser automation workflows
- Provides mocking strategies for external services (Supabase, Redis, OpenAI) and test file organization best practices
- Enforces coverage thresholds (80% minimum) with pre-commit hooks and CI/CD integration; includes common pitfalls to avoid like testing implementation details or brittle selectors
Test-Driven Development Workflow
This skill ensures all code development follows TDD principles with comprehensive test coverage.
When to Activate
- Writing new features or functionality
- Fixing bugs or issues
- Refactoring existing code
- Adding API endpoints
- Creating new components
Core Principles
1. Tests BEFORE Code
ALWAYS write tests first, then implement code to make tests pass.
2. Coverage Requirements
- Minimum 80% coverage (unit + integration + E2E)
More from affaan-m/everything-claude-code
security-review
Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provides comprehensive security checklist and patterns.
8.1Kgolang-patterns
Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable Go applications.
7.6Kcoding-standards
Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.
6.8Kfrontend-patterns
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
6.8Kbackend-patterns
Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.
6.7Kgolang-testing
Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing, and test coverage. Follows TDD methodology with idiomatic Go practices.
6.3K