/devx-git:cifrom devx-git
Stages changes from the current session, excludes junk and secrets, and generates a conventional commit. Automates git commit workflow without confirmation.
Ships in devx-git. 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.
Be autonomous. Commit the work this session produced without asking for confirmation. Do not halt on junk or unrelated files — exclude them, commit the rest, and report.
Survey the working tree:
git status --short
git branch --show-current
Decide what belongs in this commit (see Selecting Files below). Sort every dirty path into one of four buckets:
.env, keys, credentials. Never commit these; call them out
explicitly (see Junk & Secret Detection).Stage only the Commit bucket, with explicit pathspecs — never git add -A or git add .:
git add -- <path1> <path2> ...
git diff --cached --stat
git diff --cached
Analyze the staged diff — determine type, scope, subject.
Commit immediately (no confirmation needed). Add a second -m for a body when the
change is non-trivial:
git commit -m "<type>(<scope>): <subject>"
Report:
.gitignore and any secrets that were left uncommitted, as information for the
user. Do not block on these.Prefer precision over completeness. The goal is a commit that matches the work you actually did this session.
/devx-git:ci run cold at the start of a session): treat all dirty
tracked + untracked paths as the Commit bucket, minus anything caught by Junk & Secret
Detection.Never stage these, even if they appear to be part of the work. Exclude them and note them in the report.
Secrets (call out explicitly — these are the important ones):
.env, .env.*, *.pem, *.key, id_rsa*, *credentials*, *.p12, *.keystore
Junk / build / cache (suggest adding to .gitignore):
| Category | Paths |
|---|---|
| JS/TS | node_modules/, .npm/, .yarn/, .pnp.*, dist/, build/ |
| Python | __pycache__/, .pytest_cache/, *.pyc, .venv/, venv/, .eggs/, *.egg-info/ |
| Java/Kotlin | target/, .gradle/, build/ |
| Go | vendor/ (when go.sum exists) |
| Rust | target/ |
| IDE/Editor | .idea/, .vscode/, *.swp, *.swo, .DS_Store, Thumbs.db |
| General | *.log, tmp/, .cache/ |
This is not exhaustive. Apply judgment for any untracked directory that looks like build output, cache, or dependency vendoring.
Format: <type>(<scope>): <subject> — standard Conventional Commits. Add a body for complex changes.
Types: feat, fix, refactor, perf, test, docs, style, chore, build.
This session you implemented a rate limiter. git status --short shows a mix of your work,
a secret, a dependency directory, and an unrelated pre-existing edit:
M src/middleware/rateLimit.ts # you wrote this
M src/server.ts # you wired it up here
?? src/middleware/rateLimit.test.ts # you added this test
?? .env.local # secret, untouched by you
?? node_modules/ # dependency directory
M README.md # pre-existing edit, unrelated to this work
Sort the paths, then stage only the Commit bucket with explicit pathspecs:
git add -- src/middleware/rateLimit.ts src/server.ts src/middleware/rateLimit.test.ts
git commit -m "feat(middleware): add sliding-window rate limiter"
Then report what was left out:
Committed
a1b2c3d— feat(middleware): add sliding-window rate limiter Left out:
.env.local— looks like a secret; not committed. Add it to.gitignore.node_modules/— dependency directory; add it to.gitignore.README.md— modified but unrelated to this change; left for you.
Input (diff stat):
src/auth/jwt.ts | 45 +++
src/auth/middleware.ts | 12 ++
Output:
feat(auth): add JWT token refresh endpoint
Input (diff stat):
src/api/websocket.ts | 8 ++--
Output:
fix(api): resolve race condition in websocket handler
- Add mutex lock for connection state
- Implement proper cleanup on disconnect
Input (diff stat):
package.json | 6 +++---
yarn.lock | 120 ++++----
Output:
chore: update dependencies to latest versions
What SKILL.md sets; muted values are Claude Code's defaults
sonnetThree short reads, in order
3 skills in this plugin
/prCreates a GitHub pull request using gh CLI. Triggered when the user asks to open, create, or submit a PR, or runs /pr./update-originUpdates the current branch from an origin branch via standard merge, with a recoverable backup and safe conflict resolution. Use when the user runs /update-origin or asks to update, sync, or merge their branch with main (or another origin branch).npx claudepluginhub agentic-dev3o/devx-plugins --plugin devx-gitOther plugins' skills for the same job