一键导入
git-workflow
Smart git operations — commit messages, branch management, PR creation with summaries. Use for any git workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Smart git operations — commit messages, branch management, PR creation with summaries. Use for any git workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Rewrite engineer-to-engineer content for leadership audiences — VPs, directors, PMs, release managers. Shapes for the channel: JIRA comment, Slack post, standup note, email, or meeting talking-points. Use after post-mortem or any technical update that needs to flow up the org.
Write the canonical engineering record of a fixed bug — root cause, mechanism, fix, validation, and how it slipped through. Use after a debug session lands a validated fix, before closing the bug.
Outsider-perspective deep review of a plan, PR, design doc, or code change — questions intent first (should this exist?), then traces the actual code path end-to-end to verify the change does what it claims. Use for serious PR reviews, design audits, or second opinions. Lighter pre-commit checks use `review` instead.
Review feature spec files with 3 focused agents — spec quality (business+correctness+ambiguity), completeness (missing scenarios+safety+testability), and buildability (compatibility+blockers+traceability). Sequential by default.
Systematic debugging framework — opens every session by reciting the 4-mantra block (reproduce, trace the fail path, falsify the hypothesis, cross-reference breadcrumbs), then applies multi-layer investigation. Use when diagnosing bugs, flaky tests, unknown failures, or cross-component issues.
Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions
| name | git-workflow |
| description | Smart git operations — commit messages, branch management, PR creation with summaries. Use for any git workflow. |
| allowed-tools | Bash, Read |
Manage git operations with best practices, generating meaningful commit messages, managing branches safely, creating comprehensive pull requests, and preventing common git mistakes.
Activate this skill when:
Goal: Generate meaningful, consistent commit messages that explain WHY changes were made
Process:
git status and git diff[type]: [concise description in present tense]Commit Types:
feat or feature - New featurefix - Bug fixrefactor - Code restructuring without behavior changetest - Adding or updating testsdocs - Documentation changeschore - Maintenance tasks (deps, config, etc.)style - Code formatting (no logic change)perf - Performance improvementsMessage Guidelines:
Good examples:
feat: Add RSI indicator to market analysis
fix: Handle division by zero in position sizing
refactor: Extract strategy validation into separate function
Avoid: Vague messages ("updated files"), past tense ("Added new stuff"), or non-descriptive ("WIP", "asdfgh").
git log -1 --onelineNaming Convention: [type]/[description]
| Type | Purpose | Example |
|---|---|---|
feature/ | New features | feature/user-authentication |
fix/ | Bug fixes | fix/login-timeout-error |
refactor/ | Code restructuring | refactor/payment-processing |
experiment/ | Experimental work | experiment/ml-price-prediction |
hotfix/ | Urgent production fixes | hotfix/security-vulnerability |
Key Operations:
git switch -c feature/namegit switch feature/namegit branch -v (or -a for remote)git branch -d feature/oldgit push origin --delete feature/oldSafety: Before pushing to main/master, warn the user and recommend creating a feature branch with a PR instead.
Process:
git log main..HEAD --oneline and git diff main...HEAD## Summary
[Brief overview of what this PR does and why]
## Changes
- [Key change 1]
- [Key change 2]
## Type of Change
- [ ] Bug fix
- [ ] New feature
- [ ] Breaking change
- [ ] Documentation update
## Testing
- [ ] Unit tests pass
- [ ] Integration tests pass
- [ ] Manual testing completed
## Code Quality
- [ ] Follows project style guidelines
- [ ] Self-review completed
- [ ] No debug code left
- [ ] Documentation updated
## Related Issues
Closes #[issue number]
gh pr create --title "[Type]: Brief description" --body "..."Pre-Commit:
api_key, secret, password, token. If found, warn and recommend .gitignore or environment variables. Abort by default.Pre-Push:
--force detected, issue critical warning about history rewriting, lost work, and broken PRs. Require explicit confirmation.Pre-Merge:
git merge --no-commit --no-ff [branch] then git merge --abortgh pr checksgh pr view --json reviewsUser: "Push my changes to main"
Response:
mainreview skill for pre-commit reviewsspec-driven-implementation skill for commit messages during executionsystematic-testing skill to verify tests before commit