一键导入
commit
Analyze unstaged and staged changes, suggest atomic commit groups with conventional commit messages. NEVER pushes to remote.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze unstaged and staged changes, suggest atomic commit groups with conventional commit messages. NEVER pushes to remote.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Deep analysis mode - thorough multi-phase investigation with expert consultation for complex problems requiring careful examination
Extract lessons, patterns, and architectural truths to compound team knowledge
Full implementation mode - end-to-end feature implementation with phased execution, parallel work streams, verification gates, and atomic commits per phase
Interactive discovery session to define ADR structure, capture key decisions, and generate ADR content adhering to adr.github.io standards.
Refine epics and stories through cross-functional analysis and requirements gathering
Fetches all unresolved comments for a given PR number and systematically addresses them with code changes, verification, and replies.
| name | commit |
| description | Analyze unstaged and staged changes, suggest atomic commit groups with conventional commit messages. NEVER pushes to remote. |
You MUST delegate the review of atomic commit groupings and the evaluation of mixed-concern file changes to the principal-engineer sub-agent to ensure high-stakes technical decisions are correctly reflected in the git history.
Before analysis:
git status --porcelaingit diff --check.git/MERGE_HEAD or .git/REBASE_HEAD existsgit commit -SIf a single file contains changes for multiple logical units (e.g., a bug fix AND a refactor) that requires interactive staging:
git diff for the file to identify individual hunks.git add -p yourself.<filename> has mixed changes. Please run git add -p <filename> and apply the following sequence: y, n, y... (corresponding to the hunks for [logical unit])."<type>: <Capitalized imperative verb phrase>, 50 chars max, no periodAnalyze current state:
git status to see all staged and unstaged changesgit diff to understand what changedGroup changes into atomic units:
For each group, provide:
Note dependencies:
Execute commits:
You can provide a focus to filter which changes to consider:
"frontend only" - only consider frontend-related changes"exclude tests" - skip test file changes"api changes" - focus on API-related filesSituation: Working tree has changes to API handler, its tests, a bug fix in an unrelated util, and a README update.
git status output:
modified: internal/api/users.go
modified: internal/api/users_test.go
modified: internal/util/strings.go
modified: README.md
Proposed commit groups:
Group 1: Bug fix (independent)
Files: internal/util/strings.go
Message: fix: Handle empty string edge case in TrimSafe
Rationale: Standalone fix, no dependencies on other changes
Group 2: Feature (with tests)
Files: internal/api/users.go, internal/api/users_test.go
Message: feat: Add email validation to user creation endpoint
Rationale: Handler and its tests belong together as one logical unit
Group 3: Documentation (independent)
Files: README.md
Message: docs: Add API usage examples
Rationale: Documentation update, independent of code changes
Suggested order: Group 1 → Group 2 → Group 3 (no strict dependencies)
Begin by running git status and git diff to analyze the current working tree state.