Professional TDD, debugging, and quality enforcement for Claude Code
Part of the FrankX Claude Code Ecosystem
This repository adds systematic, professional development workflows to Claude Code through:
- Test-Driven Development (TDD) patterns
- Systematic Debugging processes
- Quality Enforcement hooks
- Professional Commands for development workflow
From obra/superpowers:
test-driven-development- Automatic TDD workflow activationsystematic-debugging- Evidence-based debugging processverification-before-completion- Quality gates before claiming donedefense-in-depth- Multiple validation layersusing-git-worktrees- Parallel development patternssubagent-driven-development- Multi-agent coordination
From orielsanchez/claude-code-template:
/dev "feature"- Start TDD feature development/check- Validate quality (tests, lint, types)/ship- Create professional commit/debug- Systematic debugging workflow/refactor- Safe refactoring with test coverage/plan- Strategic planning/claude-md- Update CLAUDE.md instructions
Git hooks for enforcement:
- Pre-commit: Prevent emoji commits, run linters
- Pre-push: Verify tests pass
- Commit-msg: Enforce conventional commits
# Clone this repo
git clone https://github.com/frankxai/claude-systematic-workflows.git
cd claude-systematic-workflows
# Run installer
./install.shOr manual installation:
# Copy skills
cp -r skills/* ~/.claude/skills/
# Copy commands
cp -r commands/* ~/.claude/commands/
# Copy hooks (optional, for quality enforcement)
cp hooks/* ~/.git/hooks/
chmod +x ~/.git/hooks/*Test the installation:
# In Claude Code, try:
/dev "add user authentication"
# Skills should auto-activate when relevant:
# - test-driven-development (when implementing features)
# - systematic-debugging (when debugging)
# - verification-before-completion (before claiming done)# Start with /dev command
/dev "add OAuth login"
# Claude will:
# 1. Ask about your test framework
# 2. Write tests FIRST
# 3. Guide implementation
# 4. Verify tests pass
# 5. Suggest refactoring# After making changes
/check
# Runs:
# - All tests
# - Linter (ESLint, Ruff, etc.)
# - Type checker (TypeScript, mypy)
# - Reports status# When ready to commit
/ship
# Creates:
# - Conventional commit message
# - Proper formatting
# - Co-authored attribution# When you hit a bug
/debug
# Or just describe the issue:
"The API returns 500 when user logs in"
# systematic-debugging skill activates:
# - Gathers evidence
# - Forms hypotheses
# - Tests systematically
# - Finds root causeActivates when: Implementing features, adding functionality
Process:
- Write failing test
- Implement minimal code to pass
- Refactor with confidence
- Repeat
Benefits:
- Clear success criteria
- Prevents regressions
- Enables confident refactoring
- Documents intent
Activates when: Debugging issues, investigating bugs
Process:
- Gather evidence (logs, errors, state)
- Form hypotheses (what could cause this?)
- Test hypotheses systematically
- Eliminate possibilities
- Find root cause
Benefits:
- Faster bug resolution
- Prevents wild goose chases
- Builds understanding
- Avoids "random fixes"
Activates when: Claiming work is done
Checklist:
- All tests pass
- No linter errors
- No type errors
- Edge cases handled
- Documentation updated
- Reviewed own changes
Benefits:
- Prevents "done but broken"
- Ensures quality
- Builds professional habits
Purpose: Start TDD feature development
Flow:
- Understand requirements
- Write test suite
- Implement feature
- Verify tests pass
- Refactor if needed
Example:
/dev "add password reset flow"Purpose: Validate code quality
Checks:
- Tests (unit, integration, e2e)
- Linting (ESLint, Ruff, etc.)
- Types (TypeScript, mypy, etc.)
- Build (if applicable)
Example:
/checkPurpose: Create professional commit
Output:
feat(auth): add password reset flow
- Implement email-based reset
- Add rate limiting
- Include security checks
Co-Authored-By: Claude <[email protected]>
Purpose: Systematic debugging
Process:
- Describe the problem
- Gather evidence
- Form hypotheses
- Test systematically
- Fix root cause
Example:
/debug "API returns 500 on login"Purpose: Safe refactoring
Safety:
- Verify tests exist
- Run tests before
- Make changes
- Run tests after
- Verify behavior unchanged
Example:
/refactor "extract user service"Prevents:
- Emoji commits
- Linter errors
- Type errors
Configuration:
# Enable/disable in .git/hooks/pre-commit
STRICT_MODE=true # Fail on any issue
STRICT_MODE=false # Warn but allowEnforces:
- Conventional commit format
- Clear descriptions
- Proper grammar
Format:
type(scope): description
type: feat, fix, docs, style, refactor, test, chore
scope: optional component name
description: imperative, lowercase, no period
This repo complements the main FrankX setup:
FrankX Core (claude-code-config):
- 17 specialized agents
- Oracle Cloud depth
- AI Music production
- Consciousness integration
+ Systematic Workflows (this repo):
- TDD processes
- Debugging workflows
- Quality enforcement
= Professional FrankX Setup ๐
Works with:
- JavaScript/TypeScript
- Python
- Rust
- Go
- Any language with tests
Test Frameworks:
- Jest, Vitest, Mocha (JavaScript)
- pytest (Python)
- Cargo test (Rust)
- Go test (Go)
- And more...
Built on:
- obra/superpowers - Core systematic skills
- orielsanchez/claude-code-template - Quality commands
Created by: FrankX
Part of: FrankX Claude Code Ecosystem
MIT License - See LICENSE
Improvements welcome! Please:
- Fork the repo
- Create feature branch
- Add your enhancement
- Submit PR with tests
- Issues: https://github.com/frankxai/claude-systematic-workflows/issues
- Discussions: https://github.com/frankxai/claude-systematic-workflows/discussions
- Main Setup: https://github.com/frankxai/claude-code-config
Professional. Systematic. Effective. ๐