Skip to content
Back to skills

Code Review

ASecurity

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.

  • 505 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added August 31, 2026
developmentbashnodecode-review

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned August 31, 2026

npx -y skills add victorgarciaesgi/regle --skill code-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/victorgarciaesgi-code-review/badge)](https://www.skillsdirectory.com/skills/victorgarciaesgi-code-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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 |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.