用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/canonical/code-review-harness --skill standards-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | standards-review |
| description | Review current changes against project code standards |
Review current changes against standards in docs/code-standards.
Use this skill when user asks:
/standards-reviewRead only standards relevant to changed files:
docs/code-standards/code.md — TypeScript code structure, APIs, constants, errors, organization.docs/code-standards/packaging.md — package metadata, exports, monorepo/app/library structure.docs/code-standards/testing.md — test layout, coverage, unit/integration test style.docs/code-standards/tsdoc.md — TSDoc placement and quality.docs/code-standards/git.md — branch, commit, PR conventions.Inspect changed files:
git status --shortgit diff --stagedgit diffMap changed files to relevant standards:
package.json, workspace, exports, bins, app/library layout → packaging.md.*.ts, *.tsx runtime code → code.md, testing.md.*.test.ts, *.test.tsx, vitest.config.* → testing.md.tsdoc.md.git.md.Report findings by severity:
must fix — clear standards violation or likely breakage.should fix — standards mismatch with low immediate risk.ok — changed area follows relevant standards.For each finding include:
cs:testing.file.structureIf user asks to fix, edit only files needed for reported violations.
Use concise markdown:
must fix
- path:line — `cs:...` issue. Fix: ...
should fix
- path:line — `cs:...` issue. Fix: ...
ok
- Relevant standards checked: code, packaging, testing, tsdoc, git.
If no issues found, say: No standards issues found. and list standards checked.