Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of References?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/cboone-references)
# Code Review Skill Templates
Templates for the files written under `.github/skills/code-review/` in the target repository. Uppercase words are placeholders.
## Entry Skill
Write this file when `.github/skills/code-review/SKILL.md` does not exist. When it exists, write only the part from the BEGIN line through the END line.
```markdown
---
name: code-review
description: Style checklists for reviewing this repository's pull requests. Use for every pull request review to match each changed file to its checklist and report findings with the severities defined here.
---
# Code Review
<!-- BEGIN set-up-review-config -->
Apply the checklist that matches each changed file, and apply it only to the lines the pull request changes.
## Checklists
ROUTING
## Reporting
- When a finding matches a checklist rule, start it with the checklist name and the exact rule name, for example CITATION-EXAMPLE. Otherwise start it with `Uncited:` and describe the concrete defect; never invent a rule name.
- For uncited findings, behavior defects, data loss or leaks, and build or release failures are Important (P1); style, naming and wording are Nit (P2 or lower). Important findings block merging and must all be reported; uncited Nits count toward the same five-Nit cap.
- Combine repeats of the same defect across files into one finding listing the affected paths, unless they need different fixes.
- Rules under a checklist's Important heading block merging. Report each one you find.
- Rules under a checklist's Nits heading are minor. Report at most five per review, and give the number of any others in the summary.
- Follow each checklist's Do not flag section.
- Do not report what these CI checks already report: CI-CHECKS.
- Do not review these paths: SKIP-PATHS.
SHEBANG-LINE
EMBEDDED-SHELL
- Rules outside this block, in this file, `.github/copilot-instructions.md`, `AGENTS.md` or `REVIEW.md`, take precedence over it.
<!-- END set-up-review-config -->
```
The description stays the same for every repository, so a rerun never rewrites the frontmatter.
## Placeholders
- **ROUTING**: One bullet per installed checklist, in the order of `./references/guides.md`:
```markdown
- FILE-TYPE files (GLOBS): `GUIDE.md`. Full guide: [GUIDE style guide](https://github.com/cboone/agent-harness-plugins/blob/PIN/plugins/GUIDE/skills/GUIDE/SKILL.md).
```
GLOBS is a comma-separated list of backticked globs and paths, followed by "except" and the backticked exclusions when the guide has any. PIN is the pinned commit, or `main` for an `unpinned` install. For example:
```markdown
- Go files (`**/*.go`): `write-go-code.md`. Full guide: [write-go-code style guide](https://github.com/cboone/agent-harness-plugins/blob/136cf5554b3a35e4908ffa131ddf09b2b400601e/plugins/write-go-code/skills/write-go-code/SKILL.md).
- Markdown files (`**/*.md`, except `tests/scrut/**/*.md`): `write-markdown.md`. Full guide: [write-markdown style guide](https://github.com/cboone/agent-harness-plugins/blob/136cf5554b3a35e4908ffa131ddf09b2b400601e/plugins/write-markdown/skills/write-markdown/SKILL.md).
```
- **CITATION-EXAMPLE**: A backticked citation that names a checklist this installation routes, so the example never sends a reviewer to a checklist the repository does not have. Build it from the first installed checklist in the order of `./references/guides.md` and the first rule name under that checklist's `## Important` heading. An installation routing only the Bash, scrut and Markdown checklists gets `write-bash-scripts: Strict mode`. The same value fills this placeholder in `./references/agents-md-section.md` and `./references/review-md.md`, so all three files cite the same rule.
- **CI-CHECKS**: The checks from step 3, backticked and comma-separated, such as `gofmt`, `golangci-lint`. When CI runs none, replace the whole line with `- Report formatting and lint findings as Nits.`
- **EMBEDDED-SHELL**: When Bash is selected, insert the following bullet in all three templates. Otherwise remove the placeholder.
```markdown
- Apply `write-bash-scripts` to Bash content in workflow `run:` steps and Make recipes, using the effective shell, and to tracked Bash git hooks by shebang. Apply it only to the shell content, never surrounding YAML or Make syntax. Resolve workflow step, job and workflow shell settings and runner/container defaults; resolve Make's effective `SHELL`. Do not apply Bash rules to other or unresolved shells. Account for interpreter flags and per-recipe execution; do not require a shebang or script-wide strict mode in an embedded fragment. CI exclusions suppress only diagnostics the configured checks actually enforce, including enabled actionlint ShellCheck diagnostics; remaining checklist defects, such as unchecked pipeline stages, retain their checklist citations and severities.
```
- **SKIP-PATHS**: The skip paths from step 3, backticked and comma-separated, ending with `.github/skills/code-review/*.md` except `SKILL.md`. The installed checklists are always skipped, so the line is always present.
- **SHEBANG-LINE**: When the Bash or zsh checklist is installed, this line, naming only the installed checklists. Otherwise remove the line.
```markdown
- A script without a file extension follows its shebang: Bash scripts use `write-bash-scripts.md` and zsh scripts use `write-zsh-scripts.md`.
```
## Checklist Files
Each `.github/skills/code-review/<guide>.md` is this first line, one blank line, then the bundled `./references/checklists/<guide>.md` byte for byte, with GUIDE replaced by the guide name:
```markdown
<!-- Managed by set-up-review-config from GUIDE at PIN. Rerun /set-up-review-config to update this file; local edits are replaced. -->
```
PIN is the 40-character commit or the word `unpinned`. Step 4 reads it back on a rerun.