一键导入
commit
Classify staged changes, generate conventional commit message (type/scope/body), and execute git commit. Use after any implementation phase to commit work.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Classify staged changes, generate conventional commit message (type/scope/body), and execute git commit. Use after any implementation phase to commit work.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Periodic repository cleanup sweep (Tierward repo variant) - finds orphaned/merged git branches, orphaned worktrees and unregistered worktree directories, stale `.claude/session/*.md` files, stale `.claude/initiatives/*.md` files, and (target:full / target:reviews) orphaned documentation and stale `docs/reviews/` snapshots (archive-only moves, never deletion). Reports every finding with evidence, then executes only the branches/worktrees/session-files the user explicitly confirms via a single AskUserQuestion batch. Never deletes docs/*.md itself - those are always report-only, evidence-based, human-decided. Distinct from the Phase 8 cleanup gate (which tears down one specific block at closure) - this is the periodic sweep that catches what block-by-block cleanup misses.
Unified accessibility audit - axe-core WCAG 2.2 scan, APCA contrast measurement, static a11y checks (aria-label, tabindex, form labels, focus visibility, onClick on non-interactive). Static and live modes.
Performance audit: bundle size, lazy loading, data fetching, caching, N+1 queries, image optimization. Native mode checks memory, I/O, launch weight, energy.
Responsive audit: test pages at 375/768/1024px breakpoints via Playwright. Checks overflow, tap targets, sidebar collapse, text reflow, WCAG 1.4.4 zoom.
Security audit: auth/authz on API routes, input validation, row-level access control (RLS in Postgres, ORM scopes or app-level guards elsewhere), response shape review, secret exposure, HTTP headers. Native mode checks entitlements and Keychain. MCP-aware (v1.20+): when `mcp-nvd` server is wired, Step 3c queries live CVE data instead of static `npm audit` / `pip-audit` snapshots; falls back to local audit commands when MCP unreachable.
Database audit: schema quality, index coverage, row-level access-control completeness, FK cascades, query patterns. Runs live SQL verification (PostgreSQL instance in PATTERNS.md; other engines verify the equivalent guard). Migration file safety → /migration-audit.
| name | commit |
| description | Classify staged changes, generate conventional commit message (type/scope/body), and execute git commit. Use after any implementation phase to commit work. |
| user-invocable | true |
| model | haiku |
| context | fork |
| allowed-tools | Read Glob Grep Bash(git:*) |
When invoked, immediately execute Steps 1-6 below against the currently staged changes — do not ask what to work on, do not wait for a further instruction, do not treat this as reference material. Your job is to commit the already-staged work now. If nothing is staged, stop with the Step 1 message.
Run:
git diff --cached --stat && git diff --cached
If the output is empty (nothing staged): respond "No staged files. Run git add <files> first." and stop.
Classify based on staged files:
| Staged files | Type |
|---|---|
| Source code correcting broken behaviour | fix |
Test files only (__tests__/, e2e/, tests/, test_*.py, *_test.go, *Tests.swift, *Test.kt, *Test.java, src/test/) | test |
Docs only (docs/, README.md) | docs |
Context/config files (.claude/, CLAUDE.md, MEMORY.md, pipeline, skills, settings) | chore |
| Restructuring without behaviour change | refactor |
When code + tests are staged together, type follows the code change (feat or fix).
BREAKING CHANGE: if a migration drops a column, renames a table, removes an API field, or changes a response shape - append ! after type/scope AND add a BREAKING CHANGE: footer line explaining the impact.
Derive from the primary functional area of the staged changes:
auth · proxy · db · api · emailui (UI-only, no domain logic) · context (pipeline.md, CLAUDE.md, skills, rules)Rules:
add, fix, update, remove - never past tensetype(scope): Include a body when:
Separate body from subject with a blank line.
Output the proposed commit message, then run:
git commit -m "type(scope): subject" \
-m "Optional body paragraph."
Use multiple -m flags for subject + body. Never use --amend or --no-verify.
| Commit | Phase | Type | Scope | Content |
|---|---|---|---|---|
| 1 - code | Phase 3 | feat or fix | domain entity | source files + migrations + tests |
| 2 - docs | Phase 8 | docs | block name | implementation-checklist, README, sitemap, db-map, contracts, PRD |
| 3 - context | Phase 8 | chore | context | CLAUDE.md and/or MEMORY.md only if updated |