一键导入
git-commit
Enforces proper Conventional Commits, atomic commit discipline, and pre-commit verification. Use before every git commit in this workspace.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Enforces proper Conventional Commits, atomic commit discipline, and pre-commit verification. Use before every git commit in this workspace.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Grounds Renovate configuration, Renovate PR review, and config migration handling in live Renovate documentation. Use when modifying `renovate.json`, reviewing Renovate PRs, tuning automerge or vulnerability policy, or when the user mentions Renovate setup, migrations, dashboards, or dependency queue behavior.
Guides Astro + Starlight site development for this workspace. Use when scaffolding, configuring, theming, or adding content to the docs site in apps/site/. Enforces version-aligned best practices and content architecture boundaries.
Guides dependency version management, Dependabot configuration, and upgrade workflows. Use when adding, updating, or auditing dependencies in the workspace.
Guides the full feature lifecycle for this workspace — from branch creation through work, reflection, version bump, and PR. Use at the start of any non-trivial work and before every PR. Enforces GitHub Flow, Conventional Commits, and context-traced PRs.
Guides Node.js + TypeScript + pnpm tooling development for this workspace. Use when creating scripts, adding dependencies, writing tests, or working with the tools/ai-guidance package. Enforces functional style, TDD, and version verification.
Guides newcomer onboarding for this workspace. Use when a user asks to be onboarded, wants to understand the repo, or needs help getting started. Reads the topic index dynamically and adapts depth to the user's needs.
| name | git-commit |
| description | Enforces proper Conventional Commits, atomic commit discipline, and pre-commit verification. Use before every git commit in this workspace. |
Before every git commit. No exceptions. This skill must be loaded
(not merely listed as available) before staging or committing — see
AGENTS.md § How agents should behave in this repo. Skipping it after
running only pnpm build is a known recurring failure mode; see
docs/guidance/evolution-records/2026-05-10-pre-commit-lint-skill-load-recurrence.md
and docs/guidance/agent-pre-commit-verification.md.
Before staging and committing, verify in this order:
pnpm lint. If it fails, run pnpm lint:fix then pnpm lint again. CI runs lint first; failing locally avoids pushing broken checks. See docs/guidance/agent-pre-commit-verification.md.pnpm run build if you changed assets, config, content structure, or frontmatter.pnpm test if you changed tooling code, shared site
modules, or apps/site content, components, routes, or tests that can trip
declared guardrails such as register-boundaries.test.ts.pnpm --filter site check if you changed
apps/site content, components, routes, or TypeScript modules. Build can
pass while type-only imports fail Astro's type check.git diff --cached --stat and review the file list.--no-gpg-sign.After pushing commits to a branch that has an open PR, update the PR description as the last step. This is not optional.
gh pr view --json number,title -q .numbergh pr edit <number> --body-file <temp-file>What to check:
If you pushed new commits and did not update the PR description, the PR is out of date. Fix it before moving on.
<type>(<scope>): <subject>
[optional body]
[optional footer]
type(scope): subject)| Type | Use when |
|---|---|
feat | Adding new functionality or content |
fix | Correcting a bug or broken behavior |
chore | Maintenance that doesn't change functionality (deps, config) |
docs | Documentation-only changes (READMEs, comments, doc site content) |
test | Adding or updating tests only |
refactor | Restructuring code without changing behavior |
| Scope | Covers |
|---|---|
seedpack | Seed maintenance (files in seeds/) |
ai | AGENTS.md, Cursor rules/skills, Copilot/Claude adapters, .local config |
tooling | pnpm, TS, Vitest, scripts, capability checkers |
docs | Starlight content pages and information architecture |
astro | Starlight scaffolding, config, theme, components, CSS, assets |
If a change touches multiple scopes, use the primary scope. If truly cross-cutting, omit the scope: chore: update gitignore.
Include a body when:
Wrap the body at 72 characters. Separate from subject with a blank line.
Use for:
BREAKING CHANGE: <description> — when the change is not backward compatibleRefs: #<issue> — link to related issuesCo-authored-by: Name <email> — if pair-authoredA commit is atomic when:
# Stage only the files for the first commit
git add <file1> <file2>
git commit -m "feat(astro): add hero image to splash page"
# Then stage the rest
git add <file3>
git commit -m "fix(ai): correct image path syntax in skill docs"
chore for a new feature, or feat for a bug fixdocs for Astro config changes (use astro)docs/architecture/workspace.md in the same commit or a dedicated follow-up commit in the same PRGood:
feat(astro): add hero image with circular center crop
fix(astro): use relative path for hero image in frontmatter
feat(ai): add operator config template (.local.example.md)
chore: add .local/ to .gitignore for operator config
docs(docs): add contribution guide to site
test(tooling): add parse-version edge cases
refactor(tooling): extract report formatting into pure function
Bad:
update site # vague
feat: add hero and fix paths # two things
Fixed the build # past tense, no scope, no detail
chore(astro): add new feature # wrong type
© 2026 Mikey Sebastian Drozd. Licensed under CC BY 4.0. Repository code and tooling: MIT.
Source: https://github.com/Mikeys-Tech-Lab/poc/blob/main/.cursor/skills/git-commit/SKILL.md