跳到正文
cccskills
免费在 GitHub 公开

codex-git-autopilot

Use when committing or pushing completed work; automates gate-aware conventional commits with optional signing and CI/CD checks.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(3)

  • SKILL.md2.3 KB
  • agents/openai.yaml278 B
  • scripts/auto_commit.py27.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

TL;DR

Collect files → stage → run pre-commit gate → generate conventional commit → GPG sign → push. Never commits on gate failure, never force pushes.

Git Autopilot

Activation

  1. Activate when the user needs automated commit/push with safety gates.
  2. Activate on explicit $codex-git-autopilot or $auto-commit.

Automates the commit-push cycle with production-grade safety.

Pipeline

  1. Collect - Only task-related files (explicit --files list)
  2. Stage - git add specified files
  3. Gate - Run pre_commit_check.py (lint, secret scan, debug check, tests)
  4. Message - Auto-generate Conventional Commit (feat(scope): description)
  5. Sign - GPG sign for GitHub Verified badge (auto-detect config)
  6. 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

  • NEVER commits if pre-commit gate fails
  • NEVER force 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 "your@email.com" 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)

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work — guides completion of development work by presenting structured options for merge, PR, or cleanup

中文简介正在准备中。当前显示原文说明。

Bang-isme/CodexAI---Skills102026年10月5日 更新

Use when a project has 50+ files, missing context, or explicit $codex-genome request; generates multi-layer project context to reduce hallucination.

中文简介正在准备中。当前显示原文说明。

Bang-isme/CodexAI---Skills102026年10月5日 更新

Use for DESIGN.md visual identity contracts; author, scaffold, lint, diff, and export design contracts with the upstream spec and CLI.

中文简介正在准备中。当前显示原文说明。

Bang-isme/CodexAI---Skills102026年10月5日 更新

Use when the task involves reading, creating, or editing `.docx` documents, especially when formatting or layout fidelity matters; prefer `python-docx` plus the bundled `scripts/render_docx.py` for visual checks.

中文简介正在准备中。当前显示原文说明。

Bang-isme/CodexAI---Skills102026年10月5日 更新

Use when code changes may require documentation updates; maps git diff to candidate docs without auto-editing documentation.

中文简介正在准备中。当前显示原文说明。

Bang-isme/CodexAI---Skills102026年10月5日 更新

Use for documents, reports, memos, guides, academic papers, or formal text that needs clear structure, reliable tone, formatting, and diagrams.

中文简介正在准备中。当前显示原文说明。

Bang-isme/CodexAI---Skills102026年10月5日 更新

查看 Bang-isme 的全部技能

报告此技能的问题