Git workflow, code quality, context management and testing commands: - commit, push, pr, issue - git operations - simplify, refactor, verify, check - code quality - catchup, onboard, save, cleanup - context management - test, format, sync - development utilities Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
3.9 KiB
3.9 KiB
Workflow Plugin for Claude Code
A comprehensive plugin providing Git workflow, code quality, testing, and context management commands for Claude Code.
Installation
# Add to your project
claude plugins add workflow --source https://gitea.romfast.ro/romfast/claude-plugins
# Or test locally
claude --plugin-dir ./plugins/workflow
Commands Overview
Git Workflow (5 commands)
| Command | Description |
|---|---|
/workflow:commit |
Smart commit with conventional message |
/workflow:push |
Push with safety checks |
/workflow:pr |
Create PR with auto-generated summary |
/workflow:sync |
Pull + rebase + push in one command |
/workflow:issue <n> |
Analyze and fix GitHub issue #n |
Code Quality (4 commands)
| Command | Description |
|---|---|
/workflow:simplify |
Reduce code complexity without changing behavior |
/workflow:format |
Run code formatters (prettier, eslint, black) |
/workflow:cleanup |
Remove unused imports and dead code |
/workflow:refactor |
Detect patterns and suggest improvements |
Testing & Verification (3 commands)
| Command | Description |
|---|---|
/workflow:test |
Smart test runner (changed files only) |
/workflow:check |
Run typecheck + lint + test combined |
/workflow:verify |
End-to-end verification of implementation |
Context Management (3 commands)
| Command | Description |
|---|---|
/workflow:catchup |
Rebuild context after /clear |
/workflow:save |
Save progress to HANDOFF.md |
/workflow:onboard |
Quick onboarding to a new project |
Usage Examples
Daily Workflow
# Start of day - sync your branch
/workflow:sync
# After implementing a feature
/workflow:check # Verify everything works
/workflow:commit # Create commit
# Create PR when ready
/workflow:pr
# End of day - save context
/workflow:save
/clear
# Next session - restore context
/workflow:catchup
Fix a GitHub Issue
/workflow:issue 42
This will:
- Fetch issue details from GitHub
- Search codebase for relevant files
- Implement the fix
- Run tests
- Create a commit referencing the issue
Code Review Workflow
# After making changes
/workflow:verify # Full verification
/workflow:simplify # Simplify if needed
/workflow:commit # Commit changes
/workflow:pr # Create PR
New Project Onboarding
cd /path/to/new/project
claude
# In Claude:
/workflow:onboard
Subagents
The plugin includes specialized subagents for complex tasks:
code-simplifier
Used by /workflow:simplify for multi-file simplification.
app-verifier
Used by /workflow:verify for comprehensive verification.
Templates
Located in templates/:
commit-message.md- Conventional commit formatpr-template.md- Pull request body templatehandoff-template.md- Context handoff format
Configuration
The plugin auto-detects your project's tech stack and tools. No configuration needed.
Supported Stacks
- JavaScript/TypeScript: Jest, Vitest, ESLint, Prettier
- Python: pytest, mypy, ruff, black
- Go: go test, go fmt
- Rust: cargo test, cargo fmt
Best Practices
- Use
/workflow:checkbefore committing - Catch issues early - Use
/workflow:savebefore/clear- Preserve context - Use
/workflow:catchupto restore context - Continue seamlessly - Use
/workflow:issuefor GitHub issues - Automate the fix process
Inspiration
This plugin is inspired by:
License
MIT
Contributing
Contributions welcome! Please follow the conventional commit format.