Skip to main content

code-review

Mandatory pre-commit validation for every Copilot code review on pull requests in the regle monorepo. Always verify commitlint compliance on commit titles and descriptions, pnpm workspace install, lint (vp lint), and format (vp fmt --check). Loaded on every code review — do not skip.

来源信息

仓库
victorgarciaesgi/regle
最近来源活动
2026年6月23日 16:59
检测到的 SKILL.md 语言
英语
星标
508
Forks
22

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
code-review
description
Mandatory pre-commit validation for every Copilot code review on pull requests in the regle monorepo. Always verify commitlint compliance on commit titles and descriptions, pnpm workspace install, lint (vp lint), and format (vp fmt --check). Loaded on every code review — do not skip.
# Code review — pre-commit validation **Apply on every pull request review.** These checks are blocking. Do not approve a PR until all pass or the author has addressed failures. ## Review checklist (run every time) | # | Gate | Command | On failure | |---|------|---------|------------| | 1 | Commit messages | `printf '%s' "$MSG" \| pnpm exec commitlint` per commit | Blocking comment + suggested fix | | 2 | Workspace | `test -f node_modules/.modules.yaml` | Request `pnpm install` | | 3 | Lint | `pnpm run lint` | Blocking; suggest `pnpm run lint:fix` | | 4 | Format | `pnpm run fmt:check` | Blocking; suggest `pnpm run fmt` | Run all commands from the repo root after `pnpm install`. ## Commit messages (commitlint) Every commit must follow [Conventional Commits](https://www.conventionalcommits.org/) per `commitlint.config.ts` (`@commitlint/config-conventional`). ``` type(optional-scope): imperative subject Optional body explaining why. ``` - Types: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `chore`, `ci`, `build` - Subject: lowercase, imperative mood, no trailing period - Blank line between title and body when a body is present ## Auto-fix loop ```bash pnpm run lint:fix pnpm run fmt pnpm run lint pnpm run fmt:check ``` ## Common commitlint failures | Error | Fix | |-------|-----| | `type-empty` / `subject-empty` | Use `type: subject` format | | `type-enum` | Use an allowed conventional type | | `subject-case` | Keep subject lowercase | | `subject-full-stop` | Remove trailing `.` from subject |
在 GitHub 查看