Create documented commits from workflow artifacts using conventional commit format. Triggers when user runs /epic:commit or requests to commit changes with workflow documentation. Analyzes plan.md, state.md, and validation.md to draft comprehensive commit messages, ensures pre-commit validation, and never commits without explicit user confirmation.
Limited to specific tools
Additional assets for this skill
This skill is limited to using the following tools:
references/commit-template.mdname: epic-commit description: Create documented commits from workflow artifacts using conventional commit format. Triggers when user runs /epic:commit or requests to commit changes with workflow documentation. Analyzes plan.md, state.md, and validation.md to draft comprehensive commit messages, ensures pre-commit validation, and never commits without explicit user confirmation. allowed-tools:
Creates well-documented commits that include workflow artifacts (research, plan, progress, validation) and follow conventional commit format. This skill ensures commits are traceable to their planning phase and validation results.
Trigger this skill when:
/epic:commit commandFind the current workflow state:
.claude/workflows/*/state.md
Read state.md to extract:
.claude/workflows/001-add-auth)If no state.md found, inform user to run /epic:explore first.
From the feature directory, read:
plan.md - What was plannedstate.md - What was done (Current Progress section)validation.md - Test/lint/build results (if exists)Extract:
Run these commands in parallel:
git status --short
git diff --stat
git log --oneline -3
Identify:
Verify readiness:
| Check | Requirement |
|---|---|
| Implementation | All phases marked complete in state.md |
| Validation | Results show PASS status (if validation.md exists) |
| Working tree | No uncommitted changes outside scope |
If validation failed or incomplete:
Warning: Not ready to commit:
- Validation status: [PASS/FAIL]
- Implementation: [X/Y phases complete]
Run /epic:validate or /epic:implement to resolve.
Stop and inform user.
If suspicious files detected:
Warning: Detected potentially sensitive files:
- .env
- credentials.json
These will NOT be staged. Confirm this is correct.
Stage all relevant changes:
git add [implementation files]
git add .claude/workflows/[NNN-slug]/
Include in commit:
Exclude from commit:
.env, credentials, secretsUse the commit type table to determine the type:
| Type | When |
|---|---|
feat: | New feature or capability |
fix: | Bug fix |
refactor: | Code restructuring without behavior change |
docs: | Documentation only |
test: | Test additions or modifications |
chore: | Maintenance, dependencies |
Use the commit message structure from references/commit-template.md.
CRITICAL: Never commit without explicit user confirmation.
Present to user using AskUserQuestion:
Show:
Ask: "Ready to create this commit?"
After confirmation:
git add [files]
git commit -m "[message]"
If --amend argument provided:
git commit --amend -m "[message]"
Update state.md:
Report to user:
Commit created successfully
Commit: [hash]
Branch: [branch-name]
Files changed: [count]
Artifacts committed:
- .claude/workflows/[slug]/*-research.md
- .claude/workflows/[slug]/plan.md
- .claude/workflows/[slug]/state.md
- .claude/workflows/[slug]/validation.md
| Type | Description | Example |
|---|---|---|
feat: | New feature or capability | feat: add user authentication |
fix: | Bug fix | fix: resolve login timeout issue |
refactor: | Code restructuring | refactor: simplify auth logic |
docs: | Documentation only | docs: update API reference |
test: | Test changes | test: add auth integration tests |
chore: | Maintenance | chore: update dependencies |
perf: | Performance improvement | perf: optimize database queries |
style: | Code style/formatting | style: apply prettier formatting |
build: | Build system changes | build: update webpack config |
ci: | CI/CD changes | ci: add deployment workflow |
Commit Phase Complete
[commit-hash] [commit-subject]
[files changed] files changed, [insertions] insertions(+), [deletions] deletions(-)
Workflow artifacts included for traceability.
Cannot Commit
Reason: [specific issue]
Resolution: [specific action to take]
Template structure for commit messages with placeholders and formatting guidance.