Claude Code Integration Guide
This guide provides comprehensive documentation for Claude Code integration in the Remind Tools project, including Git Flow workflows, custom commands, and development automation.Overview
Claude Code enhances the development experience through:- Git Flow workflow automation
- Intelligent code analysis and generation
- Multi-platform development assistance
- Automated testing and quality assurance
- Team collaboration and documentation
Git Flow Commands
Feature Development
/gitflow-start-feature
Purpose: Initialize new feature development with complete environment setupUsage:
/gitflow-start-feature [feature-name|issue-number]
What it does:
- Creates feature branch from develop
- Runs
melos bootstrap
for package linking - Validates Flutter SDK and dependencies
- Sets up VS Code workspace
- Configures environment variables and API keys
- Runs initial test baseline
/gitflow-finish-feature
Purpose: Complete feature development with comprehensive validationUsage:
/gitflow-finish-feature [PR-title|completion-type]
What it does:
- Runs full test suite with coverage validation
- Executes code quality checks and linting
- Analyzes monorepo impact across packages
- Creates comprehensive PR with templates
- Integrates with CI/CD for automated testing
- Notifies team and updates documentation
Release Management
/gitflow-start-release
Purpose: Begin release preparation with version coordinationUsage:
/gitflow-start-release [version|release-type]
What it does:
- Creates release branch from develop
- Coordinates version bumping with Melos
- Updates platform-specific build configurations
- Prepares release notes and changelogs
- Sets up QA testing environment
- Configures CI/CD for release builds
/gitflow-finish-release
Purpose: Complete release with production deploymentUsage:
/gitflow-finish-release [deployment-type|release-notes]
What it does:
- Merges release branch to main and develop
- Creates version tags with semantic versioning
- Coordinates multi-platform deployment
- Updates documentation and release notes
- Manages production rollout monitoring
- Configures rollback procedures
Emergency Response
/gitflow-hotfix
Purpose: Handle critical production issues with emergency workflowUsage:
/gitflow-hotfix [issue-description|severity-level]
What it does:
- Creates hotfix branch from main
- Implements rapid fix with targeted testing
- Coordinates emergency deployment across platforms
- Manages incident communication
- Provides rollback capabilities
- Documents post-incident analysis
Monitoring and Status
/gitflow-status
Purpose: Monitor Git Flow state and repository healthUsage:
/gitflow-status [analysis-type|branch-name]
What it does:
- Analyzes current branch status and health
- Reports version consistency across packages
- Shows CI/CD pipeline status
- Identifies merge conflicts and bottlenecks
- Provides team activity insights
- Suggests workflow optimizations
Development Workflow Commands
Environment Setup
/dev-workflow
Purpose: Setup complete development environment for feature workUsage:
/dev-workflow [feature-name|issue-number|setup-type]
Enhanced for Git Flow:
- Creates Git Flow feature branch from develop
- Validates Git Flow configuration
- Syncs with latest develop changes
- Sets up branch-specific debugging
- Configures Git Flow-aware VS Code settings
Code Quality and Commits
/smart-commit
Purpose: Advanced automatic commits with Git Flow awarenessUsage:
/smart-commit
Git Flow Enhancements:
- Detects current Git Flow branch type
- Applies branch-specific commit rules
- Uses appropriate emoji and scope patterns
- Validates commit message conventions
- Handles cross-package dependencies
- feature/: Normal development commits (✨ feat, 🐛 fix, ♻️ refactor)
- release/: Bug fixes and preparation only (🐛 fix, 📚 docs, 🔖 release)
- hotfix/: Emergency fixes only (🚑 hotfix, 🐛 fix critical)
- develop: Integration commits (🔀 merge, 🔧 chore)
- main: Production releases (🔖 release, 🔀 merge)
Role-Based Commands
Product Owner Commands
/create-prd
Purpose: Generate comprehensive Product Requirements Documents
Git Flow Integration:
- Links PRD to feature branches
- Coordinates with release planning
- Tracks feature completion status
Tech Lead Commands
/create-tasks
Purpose: Break down PRDs into development tasks
Git Flow Integration:
- Creates feature branch structure
- Assigns tasks to team members
- Coordinates release timeline
Senior Developer Commands
/implement-task
Purpose: Implement specific development tasks
Git Flow Integration:
- Works within current Git Flow context
- Follows branch-specific development patterns
- Integrates with quality gates
/debug-issue
Purpose: Systematic debugging and issue resolution
Git Flow Integration:
- Creates hotfix branches for critical issues
- Documents resolution for knowledge base
- Coordinates team communication
MCP Server Integration
Supabase MCP
Git Flow Enhancements:- Branch-specific database migrations
- Environment coordination (develop/staging/production)
- Schema versioning with release branches
- Rollback procedures for hotfixes
GitHub MCP
Git Flow Enhancements:- Automated PR creation for feature branches
- Release branch protection rules
- Issue tracking with branch correlation
- Team notification management
Dart/Flutter MCP
Git Flow Enhancements:- Branch-specific code analysis
- Platform-specific testing coordination
- Hot reload optimization for feature development
- Performance monitoring across branches
Memory MCP
Intelligent Context Management:- Project architecture and pattern knowledge persistence
- Team member preferences and expertise tracking
- Development decision history and rationale capture
- Workflow optimization through learned patterns
- Automatic context loading for Git Flow operations
- Cross-session knowledge continuity
- Core Memory: Project architecture, patterns, and technical decisions
- Team Memory: Member preferences, expertise, and collaboration patterns
- Architecture Memory: Decision evolution and pattern effectiveness tracking
Configuration Files
.claude/settings.json
Enhanced with Git Flow hooks:
CLAUDE.md
Updated project context:
- Git Flow branch strategy documentation
- Development patterns and conventions
- Branching model explanation
- Version management coordination
Best Practices
Git Flow Command Usage
-
Always start features with
/gitflow-start-feature
- Ensures proper environment setup
- Validates dependencies and configuration
- Creates consistent branch structure
-
Use
/gitflow-status
regularly- Monitor repository health
- Identify potential issues early
- Coordinate with team activity
-
Complete features with
/gitflow-finish-feature
- Ensures quality gates are met
- Creates proper documentation
- Integrates with CI/CD pipeline
Branch-Specific Development
Feature Branches:Quality Gates
All Git Flow commands integrate with quality assurance:-
Automated Testing
- Unit tests (80%+ coverage requirement)
- Widget tests for UI components
- Integration tests for workflows
- Platform-specific testing
-
Code Quality
- Dart analyzer validation
- Formatting consistency checks
- Security audit integration
- Performance monitoring
-
Documentation
- API documentation updates
- Changelog generation
- Release notes preparation
- Team communication
Monitoring and Analytics
Development Metrics
Claude Code tracks key development indicators:- Velocity: Features completed per sprint
- Quality: Bug escape rate and test coverage
- Process: Time from branch creation to merge
- Team: Individual and collective productivity
Git Flow Health
Regular monitoring includes:- Branch Status: Active branches and merge readiness
- Version Consistency: Package version alignment
- CI/CD Health: Pipeline success rates
- Conflict Resolution: Merge conflict frequency
Troubleshooting
Common Git Flow Issues
Branch Synchronization:Emergency Procedures
Production Issues:- Use
/gitflow-hotfix
immediately - Follow emergency response protocols
- Coordinate with team communication
- Monitor deployment and rollback readiness
- Use
/gitflow-status health
for assessment - Coordinate with team lead for resolution
- Follow backup and recovery procedures
- Document incident for prevention
Training and Adoption
Team Onboarding
-
Git Flow Fundamentals
- Review
/docs/development/git-flow.md
- Practice with feature branch workflow
- Understand release coordination
- Review
-
Claude Code Integration
- Learn custom command usage
- Practice quality gate validation
- Understand automation benefits
-
Role-Specific Training
- Product Owner: PRD and planning commands
- Tech Lead: Task creation and coordination
- Developer: Implementation and debugging
Continuous Improvement
- Weekly Retrospectives: Review workflow effectiveness
- Monthly Process Updates: Evolve commands based on team feedback
- Quarterly Training: Update skills and introduce new features