/everything-copilot-cli:commit-workflowfrom everything-copilot-cli
Stages changes, splits mixed diffs into atomic commits, and writes Conventional Commit messages with emoji. Use before every commit.
Ships in everything-copilot-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
husky, pre-commit, or similar)First make sure no merge, cherry-pick, revert, rebase, or git am is in progress. During one of
those, the index holds the operation's state: unstaging or splitting files can discard resolutions
already staged and blur which changes belong to the operation, and staging a conflicted file marks
it resolved even if it still has conflict markers.
# Each prints a commit ID only while that operation is in progress
git rev-parse -q --verify MERGE_HEAD
git rev-parse -q --verify CHERRY_PICK_HEAD
git rev-parse -q --verify REVERT_HEAD
# Unmerged (conflicted) files
git --no-pager diff --name-only --diff-filter=U
# Also reports "rebase in progress" or "am session"
git --no-pager status --long
If any of these show an operation in progress, do not use the split or stage-all steps below.
Resolve conflicts with the user, check each resolved file with git diff --check before staging
it, and finish with the operation's own command (git merge --continue,
git cherry-pick --continue, git revert --continue). For a rebase or git am, stop and ask the
user before going further.
If nothing is staged, stage everything and inspect what changed:
# Check current state
git --no-pager status --short
# Stage all if nothing is staged
$staged = git --no-pager diff --cached --name-only
if (-not $staged) { git add -A }
# Review the diff
git --no-pager diff --cached --stat
# Node.js projects
npm run lint; if ($LASTEXITCODE -eq 0) { npm run build }
# Python projects
ruff check .; if ($LASTEXITCODE -eq 0) { pytest --tb=short -q }
# Generic pre-commit hooks
pre-commit run --all-files
Skip with --no-verify flag on the final commit if checks are handled externally.
git --no-pager diff --cached
Ask: Do these changes serve more than one logical purpose?
Split when changes involve:
If splitting, use git add -p to stage partial hunks:
git add -p # interactive hunk selection
Format: <emoji> <type>(<scope>): <imperative description>
Type → Emoji mapping (most common):
| Type | Emoji | Use for |
|---|---|---|
feat | ✨ | New feature |
fix | 🐛 | Bug fix |
fix | 🚑️ | Critical hotfix |
docs | 📝 | Documentation only |
style | 💄 | Formatting, no logic change |
refactor | ♻️ | Code change without feat/fix |
perf | ⚡️ | Performance improvement |
test | ✅ | Adding or fixing tests |
chore | 🔧 | Build, tooling, config |
ci | 👷 | CI/CD changes |
revert | ⏪️ | Reverting a change |
wip | 🚧 | Work in progress |
security | 🔒️ | Security fix |
breaking | 💥 | Breaking change |
deps | ➕ | Add dependency |
deps | ➖ | Remove dependency |
Rules:
feat(auth): add JWT refreshgit commit -m "✨ feat(api): add pagination to /users endpoint"
# First logical unit
git add src/api/users.ts
git commit -m "✨ feat(api): add cursor-based pagination to users endpoint"
# Second logical unit
git add docs/api.md
git commit -m "📝 docs(api): document pagination parameters for users endpoint"
# Third logical unit (cleanup found along the way)
git add src/utils/query.ts
git commit -m "♻️ refactor(utils): extract page-size validation into shared helper"
git add -A
git commit -m "✨ feat(notifications): add real-time push alerts via WebSocket
- Implement WebSocket connection pool
- Add client-side reconnect logic with exponential backoff
- Write integration tests for disconnect/reconnect scenarios"
git add src/auth/token.ts
git commit -m "🚑️ fix(auth): prevent JWT secret from leaking into error logs"
git commit -m "💥 feat(config)!: rename API_KEY to COPILOT_API_KEY
BREAKING CHANGE: rename environment variable API_KEY → COPILOT_API_KEY.
Update .env files and CI secrets before deploying."
| Rationalization | Reality |
|---|---|
| "Commit fast, clean up messages later" | Messages written later lose the original context. The intent at commit time is the most accurate. |
| "WIP commits will be squashed later" | PRs more often merge without squashing. Write meaningful commits from the start. |
| "Nobody reads commit messages" | git log, git blame, and git bisect all depend on commit messages. |
| "It's a small change, no type prefix needed" | Small changes are the easiest to classify. Without classification, changelogs become impossible. |
fix, update, changes, stuff<emoji> <type>(<scope>): description)BREAKING CHANGE:git log --oneline tells a readable story of the changesgit log --oneline after — if you can't parse the history at a glance, the messages need workgit commit --amend to fix the last message before pushinggit add -p is your friend for splitting mixed diffs without stashingcommitlint, configure it to accept the leading emojiadd-to-changelog — keep CHANGELOG in sync after committingWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub drvoss/everything-copilot-cli --plugin everything-copilot-cli115 skills in this plugin
/actions-debuggingUse when a GitHub Actions workflow fails — diagnose the run log, identify the root cause, and apply a targeted fix/add-to-changelogUse when you've shipped a feature, fix, or breaking change and need to update CHANGELOG.md — follows Keep a Changelog format and syncs version numbers across package manifests./agent-governanceUse when designing or reviewing an AI agent system that needs policy-based access controls, intent classification, tool-level rate limiting, trust scoring for multi-agent workflows, or append-only audit trails.
Other plugins' skills for the same job