Test-driven development workflow with strict testing, formatting, and PR standards. Ensures code quality through TDD, Prettier formatting, and comprehensive CI checks before PR submission.
This skill enforces a rigorous test-driven development workflow with comprehensive testing coverage, code formatting standards, and pull request conventions.
Guides you through a disciplined development process that prioritizes:
**Always follow TDD where possible:**
**Test Coverage Requirements:**
Every feature or change must include:
**Before every commit:**
**Branch Strategy:**
**Pull Request Requirements:**
When creating a PR, include:
1. **Rationale** — why this change is needed
2. **Functional changes** — what behavior changes
3. **Affected files/modules** — what parts of the codebase are touched
4. **Testing notes** — how to verify the changes work
**Before marking PR as ready for review:**
Run all CI checks locally and ensure they pass:
```bash
npm ci
npm run lint
npm test
npm run build
```
All checks must pass before requesting review.
**IMPORTANT:** When making commits as an AI agent, always attribute authorship:
```bash
git commit --author="AI <[email protected]>" -m "Your commit message"
```
This ensures AI-generated commits are properly identified and tracked.
1. Create feature branch: `git checkout -b add-validation-logic`
2. Write failing test in `tests/validation.test.ts`
3. Run tests to confirm failure: `npm test`
4. Implement minimal code to pass test
5. Run tests again to confirm pass
6. Format code: `npx prettier --write .`
7. Commit with AI attribution:
```bash
git commit --author="AI <[email protected]>" -m "Add email validation logic"
```
8. Before opening PR, verify all CI checks pass locally
9. Open PR with detailed description
10. Address review feedback and repeat process
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/ruler-tdd-workflow/raw