Agent skill
codex-git-autopilot
Automated git commit with CI/CD gate, GPG signing, and conventional commits
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/codex-git-autopilot
SKILL.md
Git Autopilot
Automates the commit-push cycle with production-grade safety.
Pipeline
- Collect - Only task-related files (explicit
--fileslist) - Stage -
git addspecified files - Gate - Run
pre_commit_check.py(lint, secret scan, debug check, tests) - Message - Auto-generate Conventional Commit (
feat(scope): description) - Sign - GPG sign for GitHub Verified badge (auto-detect config)
- Push - Auto-push to origin (never force push)
Quick Commands
Commit task-related files
python auto_commit.py --project-root ./ --files src/models/User.js src/routes/user.routes.js
Commit with custom message
python auto_commit.py --project-root ./ --files src/models/User.js -m "feat(user): add email validation"
Dry-run (preview)
python auto_commit.py --project-root ./ --files README.md --dry-run
Setup GPG for Verified badge
python auto_commit.py --setup-gpg
Safety Guarantees
NEVERcommits if pre-commit gate failsNEVERforce pushes- Unstages files on gate failure (clean state)
- Falls back to unsigned commit if GPG fails
- Timeout on all git operations (60s)
- Conventional Commits format (CI/CD compatible)
GPG Setup (One-Time)
Run python auto_commit.py --setup-gpg for interactive guide, or:
winget install GnuPG.GnuPG
gpg --quick-generate-key "[email protected]" rsa4096 sign never
gpg --list-secret-keys --keyid-format=long
git config --global user.signingkey YOUR_KEY_ID
git config --global commit.gpgsign true
gpg --armor --export YOUR_KEY_ID
Paste the exported key in GitHub Settings > SSH and GPG Keys > New GPG Key.
Integration
This skill integrates with:
codex-execution-quality-gate/scripts/pre_commit_check.py(CI gate)codex-project-memory/scripts/generate_changelog.py(reads commit history)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?