Project Commit
SkillFiles & storageUse for this repository when the user asks to commit changes. Before committing, inspect the working tree, resolve ambiguous scope with the user, verify version metadata and changelog sync, run build, optionally run lint for source changes, then stage only intended files and commit with a Conventional Commits message that prefers a concise Chinese subject.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Project Commit skill
What this skill tells your AI
The instructions your AI receives, as published by sb6657-cn/sb6657 in .agents/skills/project-commit/SKILL.md and read by ahel’s review.
Core Rule
Commit only when the user asks for a commit. If the working tree contains unrelated changes, unclear ownership, failing checks, missing version updates for code changes, or an ambiguous commit scope/message, stop and ask the user before staging or committing.
Pre-Commit Workflow
- Read
AGENTS.md. - Inspect the working tree:
- Run
git status --short. - Review relevant diffs before deciding scope.
- Identify files changed by the current task versus unrelated existing changes.
- Run
- Resolve ambiguity:
- Ask the user which files to include if scope is unclear.
- Ask before including unrelated changes.
- Ask before committing when verification fails or cannot be run.
- Check release metadata for code changes:
- Read the current local date.
- Read
docs/版本策略.mdand confirm the major/minor/patch decision follows its historical and upgrade rules. - Ensure these describe the same major, minor, patch, and release date:
package.jsonversion:major.minor.patch+yyyymmdd.pnpm-lock.yamlis not a release-version sync point.src/apis/httpInstance.tsexportsbVersion:Vmajor.minor.patch.yyyymmdd.- Release heading in
docs/更新日志.md:## 版本【Vmajor.minor.patch.yyyymmdd】.
- If code changed and metadata is missing or inconsistent, update it before committing.
- Pure documentation-only changes do not require version updates unless the user requests them or the docs are user-visible release content.
- Verify before commit:
- Run
pnpm run lint,pnpm run typecheck, andpnpm run build; do not commit if a gate fails unless the user explicitly approves committing a known-broken state. Existing lint warnings may remain as historical technical debt. - Unless the user explicitly requests it in the current task, do not run
pnpm run dev,pnpm run preview, or another project server; do not open or control a browser; and do not use screenshots, recordings, or pixel comparison as pre-commit verification. UI visual acceptance is performed manually by the user.
- Run
- Choose a Conventional Commits message:
- Format:
type: subject. - Common types:
feat,fix,docs,style,refactor,perf,test,build,ci,chore. - Prefer a concise Chinese subject for this Chinese project; use English only when a technical term or ecosystem convention is clearer.
- Examples:
feat: 添加屏蔽词投稿入口,fix: 修复移动端搜索弹窗溢出,docs: 更新 agent 工作说明. - Use
type!:or aBREAKING CHANGE:body only for breaking changes.
- Format:
- Stage only intended files.
- Run
git status --shortagain to confirm staged scope. - Create the commit.
- Final response should include the commit message, checks run, and any files intentionally left uncommitted.
Stop Conditions
- No explicit user request to commit.
- Unrelated changed files cannot be separated confidently.
- Version metadata is inconsistent after a code change.
- A pnpm quality gate fails and the user has not approved committing anyway.
- Commit message type or scope is unclear and cannot be inferred from the diff.
Signals
- GitHub stars
- 335
- Forks
- 6
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
project-commit- Source
- github.com/sb6657-cn/sb6657