feat(workflow): Add workflow plugin v1.0.0

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>
This commit is contained in:
Claude Agent
2026-01-22 15:23:48 +00:00
parent db47652b5c
commit 45e28e7e94
23 changed files with 2622 additions and 0 deletions

View File

@@ -0,0 +1,93 @@
# Commit Message Template
## Format
```
<type>(<scope>): <description>
[optional body]
[optional footer]
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
```
## Types
| Type | Description | Emoji |
|------|-------------|-------|
| `feat` | New feature | n/a |
| `fix` | Bug fix | n/a |
| `docs` | Documentation only | n/a |
| `style` | Formatting, missing semicolons | n/a |
| `refactor` | Code change that neither fixes a bug nor adds a feature | n/a |
| `perf` | Performance improvement | n/a |
| `test` | Adding missing tests | n/a |
| `chore` | Maintenance tasks | n/a |
| `ci` | CI configuration | n/a |
| `build` | Build system or dependencies | n/a |
| `revert` | Reverts a previous commit | n/a |
## Scope
The scope is optional and should be the affected area:
- `auth` - Authentication
- `api` - API routes
- `ui` - User interface
- `db` - Database
- `config` - Configuration
- etc.
## Description Rules
1. Use imperative mood: "add" not "added" or "adds"
2. Lowercase first letter
3. No period at the end
4. Max 50 characters
## Body Rules
1. Separated from subject by a blank line
2. Explain "why" not "what"
3. Wrap at 72 characters
## Footer Rules
Used for:
- `BREAKING CHANGE: description` - Breaking changes
- `Closes #123` - Issue references
- `Refs #456` - Related issues
## Examples
### Simple fix
```
fix(auth): resolve token refresh race condition
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
```
### Feature with body
```
feat(api): add user preferences endpoint
Allows users to save and retrieve their app preferences.
Includes validation for preference keys and values.
Closes #42
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
```
### Breaking change
```
refactor(api)!: change response format for /users endpoint
BREAKING CHANGE: The /users endpoint now returns an object with
a `data` array instead of a direct array.
Before: [{ id: 1 }, { id: 2 }]
After: { data: [{ id: 1 }, { id: 2 }], meta: { total: 2 } }
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
```

View File

@@ -0,0 +1,130 @@
# Handoff Template
Use this template when saving progress with `/workflow:save`.
---
```markdown
# Handoff Document
**Branch:** [branch-name]
**Last Updated:** [YYYY-MM-DD HH:MM]
**Goal:** [What we're trying to accomplish]
---
## Progress
### Completed
- [x] Task 1: Brief description
- [x] Task 2: Brief description
### In Progress
- [ ] Task 3: Brief description
- Started: [what's done]
- Remaining: [what's left]
### Not Started
- [ ] Task 4: Brief description
- [ ] Task 5: Brief description
---
## Key Decisions
### Decision 1: [Title]
**Context:** Why this decision was needed
**Choice:** What was decided
**Rationale:** Why this option was chosen
### Decision 2: [Title]
**Context:** ...
**Choice:** ...
**Rationale:** ...
---
## Files Modified
| File | Changes |
|------|---------|
| `path/to/file1.ts` | Added feature X |
| `path/to/file2.ts` | Fixed bug Y |
| `path/to/file3.ts` | Refactored Z |
---
## Current State
### Working
- Feature A is functional
- Tests pass
### Not Working
- Feature B has a bug in edge case
- Test for C is flaky
### Uncommitted Changes
```
M src/utils.ts
M src/api/client.ts
?? src/new-file.ts
```
---
## Blockers
- [ ] Blocker 1: Description and what's needed to unblock
- [ ] Blocker 2: Description
---
## Next Steps
1. **Immediate**: First thing to do when resuming
2. **Then**: Second priority
3. **Later**: Can be done after main task
---
## Notes
### Important Context
- Note 1: Something important to remember
- Note 2: A gotcha or edge case
### Links
- Issue: #123
- PR: #456
- Docs: https://...
### Questions for User
- Question 1?
- Question 2?
```
---
## Minimal Handoff
For quick saves:
```markdown
# Handoff
**Branch:** feature/xyz
**Goal:** Implement user preferences
## Done
- [x] Database schema
- [x] API endpoint
## Next
1. Add frontend form
2. Write tests
## Notes
- Using Zustand for state (user preference)
- Validation schema in src/lib/validators.ts
```

View File

@@ -0,0 +1,122 @@
# Pull Request Template
## Title Format
```
<type>: <description>
```
Examples:
- `feat: Add user authentication flow`
- `fix: Resolve data sync race condition`
- `refactor: Simplify error handling in API client`
---
## Body Template
```markdown
## Summary
Brief description of what this PR does and why.
- Key change 1
- Key change 2
- Key change 3
## Changes
### Added
- New feature or file
### Changed
- Modified behavior or file
### Removed
- Deleted feature or file
### Fixed
- Bug that was fixed
## Screenshots
If applicable, add screenshots or recordings.
## Test Plan
- [ ] Unit tests added/updated
- [ ] Manual testing completed
- [ ] Edge cases verified
### How to Test
1. Step 1
2. Step 2
3. Step 3
## Checklist
- [ ] Code follows project style guidelines
- [ ] Self-review completed
- [ ] Comments added for complex logic
- [ ] Documentation updated (if needed)
- [ ] No new warnings introduced
- [ ] Tests pass locally
## Related Issues
- Closes #123
- Refs #456
---
Generated with [Claude Code](https://claude.ai/claude-code)
```
---
## Minimal Template
For small changes:
```markdown
## Summary
- [One line description]
## Test Plan
- [ ] [How you verified this works]
---
Generated with [Claude Code](https://claude.ai/claude-code)
```
---
## Draft PR Template
For work in progress:
```markdown
## WIP: [Feature Name]
### Done
- [x] Task 1
- [x] Task 2
### In Progress
- [ ] Task 3
### Blocked
- [ ] Task 4 (waiting on X)
### Questions
- Question 1?
- Question 2?
---
Generated with [Claude Code](https://claude.ai/claude-code)
```