用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/canonical/code-review-harness --skill commit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | commit |
| description | Create a standards-compliant git commit for current changes |
Create a git commit from current working tree changes, using project code standards.
Use this skill when user asks:
/commitBefore drafting the commit, read:
docs/code-standards/git.md — conventional commit format, scope, branch conventions.docs/code-standards/code.md — code organization and API standards relevant to changed files.docs/code-standards/packaging.md — package structure, exports, and monorepo package conventions.docs/code-standards/testing.md — test file and coverage expectations.docs/code-standards/tsdoc.md — documentation expectations when changed files include public TypeScript APIs.Inspect git state:
git status --shortgit diff --stagedgit diffgit log --oneline -5Check changed files against loaded standards:
packaging.md.code.md and testing.md.tsdoc.md.git.md.If standards violations are visible in changed files, report them before committing. Do not silently commit known violations unless user explicitly directs.
Stage only relevant files by explicit path. Never use git add . or git add -A.
Write conventional commit message:
type(scope): descriptioncore, cli, standards, workspace.chore(...) for scaffold/docs/config, feat(...) for user-facing capability, fix(...) for bug fixes.Commit with heredoc message:
git commit -m "$(cat <<'EOF'
type(scope): description
EOF
)"
git status --short.--no-verify..env*, credentials, or copied .git metadata.基于 SOC 职业分类