使い方
- インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
- 必要なツール、認証情報、対応環境を原文で確認します。
- 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/victorgarciaesgi/regle --skill code-review開始前の確認
- 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
- スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。
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 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
pnpm run lint:fix
pnpm run fmt
pnpm run lint
pnpm run fmt:checkCommon 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 |




