// Use this skill for spec-driven git workflow with GitHub issues. Provides 12 workflow commands including brownfield project migration, sprint management, AI quality reviews, issue tracking, PR workflows, blocking/splitting issues, and continuous improvement through retrospectives. Triggers include migrating existing projects, creating sprint issues, reviewing sprint quality, starting work on issues, blocking issues, splitting large issues, testing implementations, submitting PRs, handling review feedback, closing completed work with retrospectives, checking sprint progress, or creating/updating specs. Use when the user mentions migration, sprints, reviews, issues, PRs, specs, blockers, or wants to track development workflow.
[HINT] Laden Sie das komplette Skill-Verzeichnis einschlieรlich SKILL.md und aller zugehรถrigen Dateien herunter
| name | git-workflow |
| description | Use this skill for spec-driven git workflow with GitHub issues. Provides 12 workflow commands including brownfield project migration, sprint management, AI quality reviews, issue tracking, PR workflows, blocking/splitting issues, and continuous improvement through retrospectives. Triggers include migrating existing projects, creating sprint issues, reviewing sprint quality, starting work on issues, blocking issues, splitting large issues, testing implementations, submitting PRs, handling review feedback, closing completed work with retrospectives, checking sprint progress, or creating/updating specs. Use when the user mentions migration, sprints, reviews, issues, PRs, specs, blockers, or wants to track development workflow. |
Spec-driven development workflow using GitHub issues, pull requests, and specifications.
This skill implements a comprehensive spec-driven development workflow that integrates specifications, GitHub issues, and pull requests. It provides 12 workflow commands covering brownfield migration, spec creation, sprint management, quality reviews, issue management (including blocking and splitting), and the complete development lifecycle through issue closure with continuous improvement via retrospectives.
Key Principles:
docs/specs/ are the source of truthUse this skill when:
This workflow assumes the following project structure:
project/
โโโ docs/
โ โโโ project-brief.md # High-level vision, goals
โ โโโ prd.md # Product requirements
โ โโโ specs/ # Source of truth - what IS built
โ โ โโโ [capability]/
โ โ โโโ spec.md # Requirements and scenarios
โ โ โโโ design.md # Architecture (optional)
โ โโโ sprint/ # What SHOULD be built (proposals)
โ โโโ S0.md # Sprint files
โ โโโ S1.md
โ โโโ epics/
โ โโโ E1.md
โโโ TODO.md # Project tracking
โโโ [source code]
This skill provides 12 commands that form a complete development lifecycle:
Purpose: Migrate existing project to spec-driven workflow
When to use:
Key actions:
Details: See references/migrate-project.md
Purpose: Create or update specification files before creating issues
When to use:
Key actions:
docs/specs/[capability]/spec.mddesign.mdDetails: See references/init-spec.md
Purpose: Create GitHub issues from sprint markdown files
When to use:
Key actions:
docs/sprint/S2.md)Details: See references/seed-sprint.md
Purpose: AI-powered quality review of sprint issues for architecture, wording, and planning
When to use:
Key actions:
Details: See references/review-sprint.md
Purpose: Select and start work on next available issue
When to use:
Key actions:
Details: See references/next-issue.md
Purpose: Mark issue as blocked when external dependencies prevent progress
When to use:
Key actions:
Details: See references/block-issue.md
Purpose: Break large issue into smaller, atomic issues
When to use:
Key actions:
Details: See references/split-issue.md
Purpose: Run comprehensive testing before submission
When to use:
Key actions:
Details: See references/test-issue.md
Purpose: Create pull request with spec deltas
When to use:
Key actions:
Details: See references/submit-issue.md
Purpose: Handle review feedback and PR updates
When to use:
Key actions:
Details: See references/update-issue.md
Purpose: Clean up after PR merge and capture learnings
When to use:
Key actions:
Details: See references/close-issue.md
Purpose: Provide sprint progress and analytics
When to use:
Key actions:
Details: See references/sprint-status.md
0. migrate-project โ Migrate existing project to spec-driven workflow
- Discover documentation
- Create structure
- Generate CLAUDE.md
- Create migration report
A typical issue follows this lifecycle:
1. init-spec โ Create spec for new capability
2. seed-sprint โ Create issue from sprint file
2.5. review-sprint โ AI review issues for quality
3. next-issue โ Start work on issue (read review comments + retrospective)
3.5. block-issue โ Mark blocked if dependencies prevent progress (optional)
3.6. split-issue โ Split if issue too large for single chat (optional)
4. test-issue โ Validate implementation
5. submit-issue โ Create pull request
6. update-issue โ Address review feedback (if needed)
7. close-issue โ Clean up after merge + update retrospective
8. sprint-status โ Track overall progress
Key additions:
docs/specs/[capability]/spec.md)Each spec file defines a single capability:
# Capability Name
## Overview
[1-2 sentence description]
## Requirements
### Requirement: Requirement Name
[SHALL/MUST statement]
#### Scenario: Scenario Name
- **WHEN** [condition]
- **THEN** [expected result]
## API Contracts (if applicable)
## Data Models (if applicable)
## Dependencies
docs/specs/[capability]/design.md)Optional design documentation for complex capabilities:
# Capability Name - Design
## Context
## Goals / Non-Goals
## Technical Decisions
## Architecture
## Risks / Trade-offs
## Migration Plan
## Open Questions
docs/sprint/SN.md)Sprint planning documents that become issues:
# Sprint S2 โ Sprint Title
## Story Title
**User Story**: As a [role], I want [feature] so that [benefit]
**Acceptance Criteria**:
- [ ] Criterion 1
- [ ] Criterion 2
**Test Plan**:
- Test scenario 1
**Labels**: type:feature,area:backend,priority:P1
**Affected Specs**: docs/specs/capability-name/spec.md
**Change Type**: ADDED
**Agent Assignment**: dev (Name)
Issues created by seed-sprint include:
## User Story
[Story description]
## Affected Specs
- docs/specs/capability/spec.md
## Change Type
- [x] ADDED Requirements (new capability)
- [ ] MODIFIED Requirements
- [ ] REMOVED Requirements
## Proposed Spec Changes
### ADDED Requirements
[Spec deltas]
## Acceptance Criteria
[Criteria list]
## Test Plan
[Testing approach]
## Implementation Checklist
- [ ] Spec updated in docs/specs/
- [ ] Tests written and passing
- [ ] Code implemented
- [ ] PR created and reviewed
PRs created by submit-issue include:
## Summary
Implements: [Issue title]
## Spec Changes
Updated: `docs/specs/capability/spec.md`
Change Type: **ADDED** Requirements
### Spec Deltas
[Detailed spec changes]
## Implementation Details
[Commit list]
## Testing
- [x] Unit tests passing
- [x] Integration tests passing
- [x] E2E tests passing
## Checklist
- [x] Implementation complete
- [x] Tests passing
- [x] Specs updated in docs/specs/
- [x] Acceptance criteria met
Closes #[issue-number]
Type labels:
type:feature - New featurestype:bug - Bug fixestype:chore - Maintenancetype:spec - Spec-only updatesArea labels:
area:frontend - UI/UX changesarea:backend - Server/API changesarea:devex - Developer experiencePriority labels:
priority:P0 - Criticalpriority:P1 - High prioritypriority:P2 - Medium prioritypriority:P3 - Low prioritySpec labels:
add-capability - New capability specmodify-spec - Changes existing specremove-feature - DeprecationStatus labels:
blocked - Cannot proceedin-progress - Actively being worked onUse Conventional Commits:
<type>: <description>
[optional body]
Closes #<issue-number>
Types: feat, fix, chore, docs, test, refactor, perf, style
Example:
feat: add two-factor authentication
Implements OTP-based 2FA for user accounts.
Includes email delivery and validation.
Closes #123
Location: RETROSPECTIVE.md or docs/RETROSPECTIVE.md
Purpose: Living document (~100 lines) that captures learnings and informs future work
Structure:
Workflow integration:
Example entry:
### #201 - Curriculum Framework (2025-10-22, 2 days, 1 PR update)
**Went well**: Spec was complete with clear scenarios
**Friction**: Missed error handling in initial spec
**Applied**: Added error scenarios after PR feedback
**Lesson**: Always include error scenarios in spec.md from the start
Track specifications that need creation or updates:
In TODO.md, maintain a section:
## Spec Debt
**Issues Missing Specs** (need init-spec before implementation):
- #245 - Payment processing
- #246 - Email notifications
**Specs Needing Update** (drift from implementation):
- docs/specs/authentication/spec.md - Missing OAuth scenarios
- docs/specs/curriculum/spec.md - API contracts incomplete
**Action**: Address before next sprint planning
Purpose: Ensures spec-first discipline is maintained as project evolves
feat/123-description1. Backup: Commit current state
2. Run: migrate-project
3. Review: MIGRATION-REPORT.md
4. Create: Standard GitHub labels
5. Create: First 2-3 critical specs (init-spec)
6. Create: First sprint file (docs/sprint/S1.md)
7. Run: seed-sprint
8. Onboard: Share CLAUDE.md with team
1. Create sprint file: docs/sprint/S2.md
2. Run: init-spec (for new capabilities)
3. Run: seed-sprint
4. Run: review-sprint (AI quality review)
5. Verify: Sprint issues created and reviewed in GitHub
1. Run: next-issue
2. Implement according to specs
3. Run: test-issue
4. Run: submit-issue
5. Wait for review
6. If feedback: Run update-issue
7. After merge: Run close-issue
1. Run: sprint-status
2. Review progress and blockers
3. Adjust priorities if needed
4. Communicate risks
1. Run: init-spec [capability-name]
2. Write spec.md with requirements
3. Create design.md if complex
4. Create spec PR for review
5. After approval: Add to sprint file
6. Run: seed-sprint
Issue references spec that doesn't exist.
Solution:
1. Run: init-spec [capability-name]
2. Create spec.md
3. Re-run workflow command
Cannot submit PR with failing tests.
Solution:
1. Review test output
2. Fix issues
3. Run: test-issue again
4. Only proceed when all pass
Cannot close issue before PR merges.
Solution:
1. Check PR status: gh pr view
2. Address review feedback
3. Wait for merge
4. Run: close-issue after merge
Issue cannot proceed due to dependencies.
Solution:
1. Identify blocking issue
2. Prioritize blocker
3. Or select different issue
4. Run: next-issue for alternative
All workflow commands have detailed reference documentation in the references/ directory:
migrate-project.md - Brownfield migration (first-time setup)init-spec.md - Creating specification filesseed-sprint.md - Creating sprint issuesreview-sprint.md - AI quality review of sprint issuesnext-issue.md - Starting work on issues (includes retrospective reading)block-issue.md - Blocking issues when dependencies prevent progresssplit-issue.md - Splitting large issues into manageable chunkstest-issue.md - Testing implementationsubmit-issue.md - Creating pull requestsupdate-issue.md - Handling review feedbackclose-issue.md - Closing completed issues (includes retrospective update)sprint-status.md - Sprint progress analyticsRefer to these files for complete workflows, examples, and troubleshooting.
This workflow integrates with:
gh): Issue and PR managementEnsure GitHub CLI is authenticated:
gh auth status
gh auth login # if not authenticated
# Workflow Commands (conceptual - implement as needed)
migrate-project # Migrate brownfield project (first time)
init-spec [capability] # Create spec files
seed-sprint [sprint-file] # Create sprint issues
review-sprint # AI review sprint issues
next-issue # Start next issue (read reviews + retrospective)
block-issue # Mark issue blocked with dependencies
split-issue # Split large issue into smaller ones
test-issue # Run tests
submit-issue # Create PR
update-issue # Update PR
close-issue # Clean up after merge + update retrospective
sprint-status # Show progress
# Common Git Commands
git switch -c feat/123-description # Create branch
git add . # Stage changes
git commit -m "feat: description" # Commit
git push origin branch-name # Push
# Common GitHub CLI Commands
gh issue list --assignee @me # My issues
gh pr create # Create PR
gh pr view # View PR details
gh pr merge --auto --squash # Enable auto-merge