From devx-git
Safely stages git changes by detecting unignored junk files like node_modules, .env, or build dirs, generates conventional commit messages, and commits. Use for clean commits via /commit.
npx claudepluginhub agentic-dev3o/devx-plugins --plugin devx-gitThis skill is limited to using the following tools:
1. Run `git status --short` and inspect untracked files for paths that should never be committed (see Junk File Detection below).
Stages intended git changes avoiding secrets and creates clear Conventional Commits like feat(scope): subject. Useful for clean, semantic commit history.
Generates conventional git commit messages with automatic type/scope detection from file changes/diffs, runs pre-commit validation for secrets/debug code/large files, stages changes, and executes commit.
Stages files safely avoiding sensitive ones, infers conventional commit type from git diff, drafts message with scope, and executes after confirmation. Use anytime like post-planning or mid-TDD.
Share bugs, ideas, or general feedback.
Run git status --short and inspect untracked files for paths that should never be committed (see Junk File Detection below).
.gitignore. Do NOT stage or commit anything.Stage all changes and gather context:
git add -A
git diff --cached --stat
git diff --cached
git branch --show-current
Analyze diff — determine type, scope, subject
Commit immediately (no confirmation needed):
git commit -m "<type>(<scope>): <subject>"
Show the commit hash and message summary
Before staging, scan git status output for untracked paths matching common junk patterns. If any match, stop and instruct the user to add the relevant rules to .gitignore.
Common patterns to watch for:
| 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 |
| Env/Secrets | .env, .env.*, *.pem, *.key |
| 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.
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