Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计提醒

codex-gitCodex GIT 搜索

Agent Skill

codex-git 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

461

周安装

19

GitHub Stars

9

下载量

150
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:codex-git(Codex GIT 搜索)
来源仓库:https://github.com/adaptationio/skrillz
仓库路径:skills/codex-git
安装命令:
npx skills add https://github.com/adaptationio/skrillz --skill codex-git
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/adaptationio/skrillz --skill codex-git

简介

codex-git 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 它提供全面的 git 感知开发工作流,支持智能提交生成与全自动化 PR 流程。
  • 可将 Codex 生成的 diff 应用为 git patch,或直接创建分支与拉取请求。
  • 安装命令为 npx skills add https://github.com/adaptationio/skrillz --skill codex-git,需启用 --dangerously-bypass-approvals-and-sandbox 模式。
  • 使用前建议核实 git 仓库状态正常及危险模式下的操作审计机制。

SKILL.md

Codex Git Integration

Comprehensive git-aware development workflows with Codex CLI, featuring intelligent commit generation and full automation.

Last Updated: December 2025 (GPT-5.2 Release)

Quick Start

# Apply Codex changes as git patch
codex apply
# or
codex a

# Generate intelligent commits
codex exec --dangerously-bypass-approvals-and-sandbox \
  "Review all changes and create meaningful git commits"

# Automated PR workflow
codex exec --dangerously-bypass-approvals-and-sandbox \
  "Create feature branch, implement auth, commit, and create PR"

Apply Codex Changes

Codex generates diffs that can be applied as git patches:

# After Codex makes changes in a session
codex apply

# Short form
codex a

# Review what will be applied
git diff  # Shows Codex's proposed changes

# Apply selectively
git add -p  # Stage only desired changes

# Revert if needed
git checkout .

Intelligent Commit Generation

Codex analyzes changes and generates meaningful commits:

# Analyze changes and create commits
codex exec --dangerously-bypass-approvals-and-sandbox \
  "Review all uncommitted changes and create semantic commits:
  1. Group related changes
  2. Write clear commit messages
  3. Follow conventional commits format
  4. Create separate commits for different concerns"

# With specific commit style
codex exec --dangerously-bypass-approvals-and-sandbox \
  "Create commits using Angular commit convention"

# Quick commit for simple changes
codex exec --full-auto "Commit current changes with appropriate message"

Git-Aware Development

Codex respects and understands git context:

# Codex automatically:
# - Respects .gitignore
# - Understands git history
# - Avoids modifying committed files unnecessarily
# - Creates clean, atomic commits
# - Understands branch context

# Work on feature branch
git checkout -b feature/new-auth
codex exec --dangerously-bypass-approvals-and-sandbox \
  "Implement OAuth2 with clean git commits throughout"

# Codex will create logical commit points during implementation

PR Automation

Complete pull request workflows:

# Create PR from current work
codex exec --dangerously-bypass-approvals-and-sandbox \
  "Create PR for current feature:
  1. Review all commits
  2. Generate PR title and description
  3. List all changes
  4. Create PR via gh CLI"

# Automated feature branch + PR
codex exec --dangerously-bypass-approvals-and-sandbox \
  "Complete PR workflow:
  1. Create feature branch feature/user-profiles
  2. Implement user profile system
  3. Write tests
  4. Create commits for each logical change
  5. Push branch
  6. Create PR with detailed description"

Branch Management

# Create and work on branch
codex exec --dangerously-bypass-approvals-and-sandbox \
  "Create branch 'refactor/auth' and refactor authentication module"

# Merge branches intelligently
codex exec --full-auto \
  "Merge feature/new-api into main, resolving conflicts"

# Clean up branches
codex exec --dangerously-bypass-approvals-and-sandbox \
  "List merged branches and delete them"

Git History Analysis

# Analyze commit history
codex exec --json \
  "Analyze last 20 commits and identify:
  1. Common change patterns
  2. Areas of high activity
  3. Potential refactoring targets" \
  > git-analysis.json

# Find related changes
codex exec \
  "Find all commits related to authentication in last 6 months"

# Identify breaking changes
codex exec --search \
  "Review commits and identify potential breaking changes for changelog"

Automated Git Workflows

Complete Feature Development

#!/bin/bash
# Fully automated feature development with git workflow

develop_feature() {
  local feature_name="$1"
  local description="$2"

  codex exec --dangerously-bypass-approvals-and-sandbox \
    "Complete feature development workflow:

    1. Create feature branch: feature/$feature_name
    2. Implement: $description
    3. Write comprehensive tests
    4. Create semantic commits for:
       - Initial implementation
       - Test addition
       - Documentation updates
    5. Run all tests
    6. Fix any failures
    7. Push branch
    8. Create PR with detailed description
    9. Provide summary of all changes"
}

# Usage
develop_feature "user-notifications" "Real-time notification system with WebSocket"

Automated Code Review Response

#!/bin/bash
# Respond to PR feedback automatically

respond_to_pr_feedback() {
  local pr_number="$1"

  # Get PR comments
  gh pr view "$pr_number" --json comments > pr-comments.json

  codex exec --dangerously-bypass-approvals-and-sandbox \
    "Review PR comments in @pr-comments.json and:
    1. Address all feedback
    2. Make requested changes
    3. Create commits for each feedback item
    4. Run tests
    5. Push updates
    6. Reply to comments explaining changes"
}

# Usage
respond_to_pr_feedback 123

Automated Hotfix Workflow

#!/bin/bash
# Complete hotfix workflow with git safety

create_hotfix() {
  local issue="$1"
  local description="$2"

  codex exec --dangerously-bypass-approvals-and-sandbox \
    "Hotfix workflow:

    1. Create hotfix branch from main
    2. Fix: $description (issue #$issue)
    3. Write targeted test for the fix
    4. Run all tests
    5. Create commit: 'fix: $description (closes #$issue)'
    6. Push branch
    7. Create PR with:
       - Clear description of bug
       - Explanation of fix
       - Test results
    8. Tag for review"
}

# Usage
create_hotfix 456 "Fix race condition in user session handling"

Commit Message Generation

Codex generates high-quality commit messages:

# Conventional commits
codex exec --dangerously-bypass-approvals-and-sandbox \
  "Create commits using conventional commits:
  feat: new features
  fix: bug fixes
  docs: documentation
  refactor: code refactoring
  test: test additions
  chore: maintenance"

# Detailed commit messages
codex exec --full-auto \
  "Create commits with:
  - Clear subject line (50 chars)
  - Blank line
  - Detailed body explaining WHY (not what)
  - References to issues"

# Example output:
# feat: add real-time notifications
#
# Implements WebSocket-based notification system to provide
# users with instant updates on important events.
#
# - Connects to notification service on login
# - Handles reconnection automatically
# - Queues notifications when offline
#
# Closes #123

Git Safety Patterns

Backup Before Automation

#!/bin/bash
# Safe automation with git backups

safe_codex_automation() {
  local task="$1"

  # Create git stash backup
  git stash push -m "pre-codex-$(date +%s)"

  if codex exec --dangerously-bypass-approvals-and-sandbox "$task"; then
    echo "✓ Success! Backup available: git stash list"
    git stash drop  # Optional: remove backup if confident
  else
    echo "✗ Failed! Restoring backup..."
    git stash pop
    return 1
  fi
}

# Usage
safe_codex_automation "Refactor entire authentication module"

Dry-Run Mode

# Generate changes without applying
codex exec \
  "Implement user caching system and show me the complete diff" \
  > proposed-changes.diff

# Review proposed changes
git apply --check proposed-changes.diff

# Apply manually
git apply proposed-changes.diff

Checkpoint Commits

#!/bin/bash
# Create checkpoints during long refactoring

checkpoint_refactoring() {
  local scope="$1"

  codex exec --dangerously-bypass-approvals-and-sandbox \
    "Refactor $scope with checkpoint commits:
    1. Create WIP commit before starting
    2. Make incremental changes
    3. Create checkpoint commit every logical step
    4. Run tests after each checkpoint
    5. If tests fail, revert last checkpoint
    6. Continue until complete
    7. Squash WIP commits into clean history"
}

# Usage
checkpoint_refactoring "./src/auth"

Git History Cleanup

# Interactive rebase automation
codex exec --dangerously-bypass-approvals-and-sandbox \
  "Clean up last 5 commits:
  1. Squash WIP commits
  2. Rewrite unclear messages
  3. Reorder for logical flow
  4. Preserve semantic meaning"

# Amend last commit
codex exec --full-auto \
  "Amend last commit to include forgotten test file"

# Fixup commits
codex exec --dangerously-bypass-approvals-and-sandbox \
  "Create fixup commits for TODO items in last 3 commits"

Conflict Resolution

# Automated merge conflict resolution
codex exec --dangerously-bypass-approvals-and-sandbox \
  "Resolve merge conflicts in current branch:
  1. Analyze conflicts
  2. Understand intent of both changes
  3. Resolve preserving functionality from both
  4. Run tests
  5. Create merge commit"

# Complex merges
codex exec --search --dangerously-bypass-approvals-and-sandbox \
  "Research best practices for this conflict type and resolve intelligently"

Git Hooks Integration

# Generate pre-commit hook
codex exec --dangerously-bypass-approvals-and-sandbox \
  "Create pre-commit hook that:
  1. Runs linter
  2. Runs type checking
  3. Runs quick tests
  4. Prevents commit if failures"

# Generate commit-msg hook
codex exec --full-auto \
  "Create commit-msg hook enforcing conventional commits format"

Changelog Generation

# Automated changelog from commits
codex exec --dangerously-bypass-approvals-and-sandbox \
  --json \
  "Generate CHANGELOG.md from git history:
  1. Group by version/tag
  2. Categorize: Features, Fixes, Breaking Changes
  3. Link to commits and PRs
  4. Format as Keep a Changelog" \
  > CHANGELOG.md

# Release notes
codex exec --search --full-auto \
  "Generate release notes for v2.0.0 from commits since v1.9.0"

Advanced Git Workflows

Automated Release Process

#!/bin/bash
# Complete release automation

automate_release() {
  local version="$1"

  codex exec --dangerously-bypass-approvals-and-sandbox \
    "Complete release workflow for v$version:

    1. Update version in package.json
    2. Generate CHANGELOG.md
    3. Run full test suite
    4. Create commit: 'chore: release v$version'
    5. Create git tag v$version
    6. Generate release notes
    7. Push commits and tags
    8. Create GitHub release with notes"
}

# Usage
automate_release "2.1.0"

Git Bisect Automation

# Automated bug hunting with git bisect
codex exec --dangerously-bypass-approvals-and-sandbox \
  "Use git bisect to find commit that introduced test failure in auth.test.js:
  1. Start bisect between v1.0.0 and HEAD
  2. Run test at each commit
  3. Mark good/bad automatically
  4. Identify breaking commit
  5. Analyze changes in that commit
  6. Suggest fix"

Submodule Management

# Automated submodule updates
codex exec --dangerously-bypass-approvals-and-sandbox \
  "Update all git submodules:
  1. Update to latest remote
  2. Run tests
  3. If pass, commit updates
  4. If fail, report issues"

CI/CD Integration

GitHub Actions with Codex

# .github/workflows/codex-git-automation.yml
name: Codex Git Automation
on:
  pull_request:
    types: [opened, synchronize]

jobs:
  codex-review:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0  # Full history for git analysis

      - name: Setup Node.js
        uses: actions/setup-node@v3
        with:
          node-version: '20'

      - name: Install Codex CLI
        run: npm install -g @openai/codex

      - name: Codex PR Analysis
        env:
          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
        run: |
          codex exec --dangerously-bypass-approvals-and-sandbox \
            --json \
            "Analyze this PR:
            1. Review commit history
            2. Check commit message quality
            3. Analyze code changes
            4. Check for breaking changes
            5. Verify test coverage
            6. Generate review comments" \
            > pr-analysis.json

      - name: Post PR Comment
        uses: actions/github-script@v6
        with:
          script: |
            const analysis = require('./pr-analysis.json');
            github.rest.issues.createComment({
              issue_number: context.issue.number,
              owner: context.repo.owner,
              repo: context.repo.repo,
              body: analysis.summary
            });

Automated Commit Cleanup

# .github/workflows/commit-cleanup.yml
name: Commit Message Cleanup
on:
  pull_request:
    types: [opened]

jobs:
  check-commits:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      - name: Install Codex CLI
        run: npm install -g @openai/codex

      - name: Validate Commit Messages
        env:
          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
        run: |
          codex exec --dangerously-bypass-approvals-and-sandbox \
            "Check all commits in PR:
            1. Verify conventional commits format
            2. Check message clarity
            3. Suggest improvements
            4. Fail if critical issues found"

Best Practices

Git Workflow with Codex

  1. Always Use Feature Branches codex exec --dangerously-bypass-approvals-and-sandbox \ -C./feature-branch \ "Work only on feature branches, never main"
  2. Atomic Commits codex exec --full-auto \ "Create atomic commits - one logical change per commit"
  3. Test Before Commit codex exec --dangerously-bypass-approvals-and-sandbox \ "Always run tests before committing changes"
  4. Review Diffs # Always review what Codex changed git diff codex apply # Only after review

Safety with Automation

# 1. Use git stash for safety
git stash push -m "backup"
codex exec --dangerously-bypass-approvals-and-sandbox "task"

# 2. Work on branches
git checkout -b experiment
codex exec --dangerously-bypass-approvals-and-sandbox "try new approach"

# 3. Use codex apply for control
codex apply  # Review changes before applying

# 4. Checkpoint frequently
codex exec --full-auto "Create checkpoint commits during long tasks"

Configuration

Git-Specific Codex Config

# ~/.codex/config.toml (December 2025)

# Default model for git operations
model = "gpt-5.1-codex-max"  # Best for agentic coding
# model = "gpt-5.2"          # For large repo analysis (400K context)

[git]
# Always respect .gitignore
respect_gitignore = true

# Create commits automatically
auto_commit = false  # Set true for full automation

# Commit message style
commit_style = "conventional"  # or "angular", "semantic"

# Git safety
require_clean_worktree = false
create_backup_stash = true

[profiles.git-auto]
model = "gpt-5.1-codex-max"
ask_for_approval = "never"
sandbox = "workspace-write"
auto_commit = true
commit_style = "conventional"

[profiles.git-large-repo]
model = "gpt-5.2"
compact = true  # Enable context compaction for large repos
ask_for_approval = "never"
sandbox = "workspace-write"

Troubleshooting

Common Git Issues

Uncommitted Changes

# Save work before Codex operations
git stash push -m "wip"
codex exec --dangerously-bypass-approvals-and-sandbox "task"
git stash pop

Merge Conflicts

# Let Codex resolve
codex exec --dangerously-bypass-approvals-and-sandbox \
  "Resolve all merge conflicts intelligently"

Bad Commits

# Rewrite history
codex exec --full-auto \
  "Fix last 3 commits - improve messages and combine related changes"

Lost Changes

# Recover with git reflog
codex exec \
  "Use git reflog to find and recover lost commits from last 2 hours"

Related Skills

  • codex-cli: Main integration
  • codex-review: Code review workflows
  • codex-tools: Tool execution
  • codex-chat: Interactive sessions
  • codex-auth: Authentication

Created for Claude Code - Git-aware automation for seamless development workflows

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

github-copilot

31.03%
按下载量换算47

Claude Code

24.66%
按下载量换算37

mcpjam

17.88%
按下载量换算27

moltbot

13.06%
按下载量换算20

windsurf

8.64%
按下载量换算13

zencoder

3.68%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills