git-change-conventions
Use when creating or naming branches, pull requests, or commits in this repository. Follow the repo's required type prefixes for branch and PR titles, and write detailed commit messages.
- License 许可
- MIT
- 最近更新
- 2026-10-23
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- git-change-conventions
- description
- Use when creating or naming branches, pull requests, or commits in this repository. Follow the repo's required type prefixes for branch and PR titles, and write detailed commit messages.
02 资源文件 1
- 参考文档agents/openai.yaml294 B
03 SKILL.md 正文
Git Change Conventions
Use this skill whenever the task includes:
- creating a branch
- updating the readme
- naming a pull request
- writing commit messages
- proposing branch, PR, or commit naming conventions
PR title format
Pull request titles must use this exact format:
<TYPE>: <summary>
The allowed <TYPE> values are:
FEATURE:new featureFIX:bug fixREFACTOR:code refactor with no behavior changeDOCS:documentation onlyTEST:tests onlySTYLE:formatting-only changes such as linting or layout cleanupPERF:performance improvementCHORE:maintenance or miscellaneous housekeepingCI:continuous integration configuration or scripts
Branch format
Git branch names cannot contain : or spaces, so branches must use this
compatible format instead:
<type>/<summary-in-kebab-case>
Examples:
feat/add-weekly-fatigue-summaryfix/handle-empty-garmin-heart-rate-payload
Required usage rules
- Use the same logical type for the branch and PR title unless there is a clear reason not to.
- Branch
typeuses the short lowercase prefix (e.g.feat), while the PR title uses the full allowedTYPEname (e.g.FEATURE:). See the mapping table in the PR creation section. - Keep the text after the prefix specific to the actual change.
- Do not invent additional top-level prefixes unless the user explicitly changes the convention.
- If a change spans multiple categories, choose the prefix that best describes the primary user-facing outcome.
- Convert branch summaries to lowercase kebab-case.
- PR descriptions should contain summary, why the change was needed, what was changed, and any important implementation or validation notes.
Commit message rules
- Commit messages must be detailed, not terse.
- The subject line should clearly describe the intent and affected area.
- Prefer a multi-line commit message when the change is non-trivial.
- The body should summarize:
- what changed
- why the change was needed
- any important implementation or validation notes
Examples
- Branch:
feat/add-weekly-fatigue-summary - PR title:
FEATURE: add weekly fatigue summary to coach report - Branch:
fix/handle-empty-garmin-heart-rate-payload - PR title:
FIX: handle empty Garmin heart rate payload - Branch:
docs/add-shared-git-naming-conventions - PR title:
DOCS: add shared Git naming conventions for branch, PR, and commits
GitHub CLI environment
- Run all
ghcommands in the local host environment, using its credential store and GitHub configuration. - Do not use sandboxed
ghcredentials or fall back to them. If local-hostghauthentication fails, stop and report the authentication blocker.
PR creation with GitHub CLI
When creating a pull request via gh, apply the conventions above:
gh pr create \
--title "TYPE: summary" \
--body "## Summary
<what this PR does>
## Why
<why the change was needed>
## Changes
- <file/area>: <description>
## Validation
- <tests run, manual checks, or screenshots>" \
--base main
- Do not use
--draft. Every pull request must be created ready for review. - Add
--reviewer <handle>when the team requires explicit reviewer assignment. - Add
--label <label>to categorise the PR when project labels exist. - The PR title
TYPEmust use the allowed name from the PR title format section, not a literal uppercase of the branch prefix. Use the mapping below:
| Branch prefix | PR title TYPE |
|---|---|
feat |
FEATURE |
fix |
FIX |
refactor |
REFACTOR |
docs |
DOCS |
test |
TEST |
style |
STYLE |
perf |
PERF |
chore |
CHORE |
ci |
CI |
PR review follow-ups
When completing requested PR review changes, commit and push the fix, then use
the PR's Add a comment action to post @codex review. This requests a new
automatic Codex reviewer pass for the updated changes.
Output expectations
- When asked to create names, provide branch and PR title that follow this convention exactly.
- When asked to commit, write a detailed commit message that matches the change scope instead of a one-line shorthand.
04 同仓库更多 Skills
token-decrease
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", "token decrease", or invokes /caveman. Also auto-triggers when token efficiency is requested.
readme-pm-review
Use only when the user explicitly asks for a product-manager style review of a repository README. Read only the README first, do not infer undocumented features, and provide readability feedback, rewrite suggestions, and product-priority recommendations.
python-review-qa-loop
Use when working on Python code changes that should follow this repo's shared review and QA loop. Read the shared workflow docs, make the smallest viable patch, run relevant tests, capture results, and route DB, credentials, secrets, or Garmin password related changes through the shared security guidance.
improve-codebase-architecture
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
grilling
Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
grill-with-docs
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.