workflow-patternsSystematic task implementation using TDD, phase checkpoints, and structured commits. Ensures quality through red-green-refactor cycles, 80% coverage gates, and verification protocols before proceeding.
Install via ClawdBot CLI:
clawdbot install wpank/workflow-patternsImplement tasks systematically using TDD (Test-Driven Development) with phase checkpoints and verification protocols. Ensures quality at every step.
npx clawhub@latest install workflow-patterns
Provides a structured approach to implementing tasks:
Use for:
Skip for:
Keywords: TDD, implementation, testing, coverage, checkpoints, verification, red-green-refactor
11 steps for each task:
Read the plan and identify the next pending [ ] task. Select tasks in order within the current phase. Do not skip ahead.
Update the plan to mark the task as [~]:
- [~] **Task 2.1**: Implement user validation
Write tests that define expected behavior before implementation:
def test_validate_email_valid():
user = User(email="test@example.com")
assert user.validate_email() is True
def test_validate_email_invalid():
user = User(email="invalid")
assert user.validate_email() is False
Write the minimum code to make tests pass:
With green tests, improve the code:
Check test coverage meets the 80% target:
pytest --cov=module --cov-report=term-missing
If coverage is below 80%:
If implementation deviated from plan or added dependencies:
Create focused commit:
git commit -m "feat(user): implement email validation
- Add validate_email method to User class
- Handle empty and malformed emails
- Add comprehensive test coverage
Task: 2.1"
Mark task complete with commit SHA:
- [x] **Task 2.1**: Implement user validation `abc1234`
git commit -m "docs: update plan - task 2.1 complete"
Continue to next task until phase is complete.
When all tasks in a phase are complete:
git diff --name-only <last-checkpoint-sha>..HEAD
For each modified file:
pytest -v --tb=short
All tests must pass.
## Phase 1 Verification
- [ ] User can register with valid email
- [ ] Invalid email shows appropriate error
- [ ] Database stores user correctly
Present checklist:
Phase 1 complete. Please verify:
1. [x] Test suite passes (automated)
2. [x] Coverage meets target (automated)
3. [ ] Manual verification items (requires human)
Respond with 'approved' to continue.
Do NOT proceed without explicit approval.
git commit -m "checkpoint: phase 1 complete
Verified:
- All tests passing
- Coverage: 87%
- Manual verification approved"
Update plan checkpoints table:
## Checkpoints
| Phase | SHA | Date | Status |
|---------|---------|------------|----------|
| Phase 1 | def5678 | 2025-01-15 | verified |
| Phase 2 | | | pending |
Before marking any task complete:
| Gate | Requirement |
|------|-------------|
| Tests | All existing tests pass, new tests pass |
| Coverage | New code has 80%+ coverage |
| Linting | No linter errors |
| Types | Type checker passes (if applicable) |
| Security | No secrets in code, input validation present |
<type>(<scope>): <subject>
<body>
Task: <task-id>
Types:
feat — New featurefix — Bug fixrefactor — Code change without feature/fixtest — Adding testsdocs — Documentationchore — MaintenanceDiscovered requirement not in spec:
Feature deemed unnecessary:
[-] (skipped) with reasonDifferent approach than planned:
- [x] **Task 2.1**: Implement validation `abc1234`
- DEVIATION: Used library instead of custom code
- Reason: Better edge case handling
- Impact: Added email-validator to dependencies
[!] with blocker description| Symbol | Meaning |
|--------|---------|
| [ ] | Pending |
| [~] | In progress |
| [x] | Complete |
| [-] | Skipped |
| [!] | Blocked |
Generated Mar 1, 2026
A team building a customer relationship management (CRM) system uses this skill to implement new features like contact management and reporting. They follow TDD cycles for each task, ensuring 80% test coverage and phase checkpoints for stakeholder approval before deployment, reducing bugs and improving traceability.
A financial technology company develops payment processing features, such as fraud detection algorithms. The skill enforces red-green-refactor cycles and verification protocols to meet regulatory compliance, with structured commits for audit trails and quality gates to prevent security vulnerabilities.
A healthcare provider integrates electronic health record (EHR) systems with new analytics modules. Using phase checkpoints and TDD, they ensure data validation and coverage targets are met, with user approval required before proceeding to maintain patient safety and data integrity.
An online retailer adds features like inventory management and checkout optimization. The skill guides systematic implementation with quality gates for testing and linting, and structured commits for tracking changes across distributed teams, enhancing reliability during high-traffic events.
An edtech company builds interactive learning modules with quiz functionalities. They apply TDD to ensure each feature works correctly, use coverage checks to maintain code quality, and rely on phase verification for educator feedback before releasing updates to students.
This skill supports SaaS companies by enabling iterative feature development with TDD and checkpoints, ensuring high-quality releases that reduce downtime and customer churn. Revenue is generated through subscription fees based on reliable, well-tested software updates.
Consulting firms use the skill to deliver custom software projects for clients, applying structured workflows to meet deadlines and quality standards. Revenue comes from project fees tied to successful, verifiable implementations with clear traceability and client approvals.
Open source communities adopt this skill to maintain code quality and encourage contributions through TDD and verification protocols. Revenue is generated via donations, sponsorships, or premium support services, driven by a reputation for reliable, well-documented software.
💬 Integration Tip
Integrate this skill into existing CI/CD pipelines by automating test runs and coverage checks at each commit, and use phase checkpoints to align with sprint reviews for seamless team collaboration.
A fast Rust-based headless browser automation CLI with Node.js fallback that enables AI agents to navigate, click, type, and snapshot pages via structured commands.
Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications.
Advanced desktop automation with mouse, keyboard, and screen control
Manage n8n workflows and automations via API. Use when working with n8n workflows, executions, or automation tasks - listing workflows, activating/deactivating, checking execution status, manually triggering workflows, or debugging automation issues.
Design and implement automation workflows to save time and scale operations as a solopreneur. Use when identifying repetitive tasks to automate, building workflows across tools, setting up triggers and actions, or optimizing existing automations. Covers automation opportunity identification, workflow design, tool selection (Zapier, Make, n8n), testing, and maintenance. Trigger on "automate", "automation", "workflow automation", "save time", "reduce manual work", "automate my business", "no-code automation".
Browser automation via Playwright MCP server. Navigate websites, click elements, fill forms, extract data, take screenshots, and perform full browser automation workflows.