一键导入
pre-commit
Before committing - analyze changes, suggest commit organization, check PRD freshness. Use when user says "commit", "ship it", or before any git commit.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Before committing - analyze changes, suggest commit organization, check PRD freshness. Use when user says "commit", "ship it", or before any git commit.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | pre-commit |
| description | Before committing - analyze changes, suggest commit organization, check PRD freshness. Use when user says "commit", "ship it", or before any git commit. |
| allowed-tools | Bash, Read, Grep, Glob, AskUserQuestion |
Analyze current changes and help organize them properly before committing.
Run these in parallel:
git status
git diff --stat
git log --oneline -15
Also read vibecoding_output/AGENTS.md to get:
Map each modified file to exactly one category:
| Category | Files/Patterns |
|---|---|
| parent settings | ParentSettings*, API config, account selection |
| color theming | theme*, color*, OKLCH, palette |
| i18n | i18n/, locales/, translations |
| devops | configs, CI/CD, .github/, testing, linting, .claude/ |
| a11y | accessibility fixes, aria-*, keyboard handlers |
| core | general app functionality not fitting above |
Determine if changes should be split:
Single category → Commit all together Multiple categories → Consider splitting into separate commits:
git add <files>Scan the changes for PRD-relevant updates:
If changes are purely internal (refactoring, a11y, devops), PRD likely doesn't need updates.
Format your analysis:
## Pre-Commit Analysis
### Files by Category:
- **[category]**: file1, file2
- **[category]**: file3
### Current Git State:
- Branch: [branch-name]
- Staged files: [list]
- Unstaged changes: [list]
### Recommendation:
[One of:]
- ✅ All changes fit one category - ready to commit
- ⚠️ Changes span categories - suggest splitting:
1. [action with specific git commands]
2. [action]
### PRD Status:
- ✅ No updates needed (reason)
- ⚠️ Consider updating: [specific sections]
Use AskUserQuestion with these options:
Only execute git commands after user confirms.