agentleFS
TickLabVNTickLabVN/biopass/.claude/skills/pre-pr/SKILL.md

pre-pr

Skill602 starsChanged 14 days agoMITView on GitHub

Run Biopass's local review flow before opening or updating a PR — verification checks, a fresh-context code review against REVIEW.md, and a security review for high-risk paths. Use when the user runs /pre-pr or asks to check a change before a PR.

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All review runs on this machine.

    line 8
  2. Very specific:

    Run this step if the diff touches auth/pam, auth/core, app/src-tauri/scripts, app/src-tauri/capabilities, tauri.conf.json, or model …

    line 26
  3. Distinctive:

    Stop after 3 rounds. If findings keep appearing, tell the user to rethink the approach instead of looping.

    line 31
  4. Distinctive:

    If the same kind of issue came up that REVIEW.md doesn't already list, propose a one-line entry for its "Recurring issues" section.

    line 32
  5. Distinctive:

    Leave the manual-testing table and the checklist for the author unless they gave you those facts.

    line 40

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Pre-PR review (local)

All review runs on this machine; there is no AI reviewer on GitHub. CI only runs the mechanical checks.

1. Scope

Diff against the base: git diff main...HEAD plus uncommitted changes. If the user passed a base branch, use it instead. Note which areas are touched: app/src, app/src-tauri, auth/, app/src-tauri/scripts, docs.

2. Verify

Run the commands from the "Verify before saying done" table in CLAUDE.md for every touched area, and show the output. If a check fails, fix it before continuing. If something can't run here (no camera, no fingerprint reader, PAM needs a VM), say so explicitly instead of skipping silently.

3. Code review

Spawn one subagent with fresh context (don't pass it your conclusions). Give it the diff range and tell it to follow REVIEW.md exactly and use CLAUDE.md for context. Its output must use REVIEW.md's format (path:line, Important / Nit / Pre-existing, summary line).

Then check each Important finding yourself by opening the cited line. Drop the ones that don't hold up and say why.

4. Security review

Run this step if the diff touches auth/pam, auth/core, app/src-tauri/scripts, app/src-tauri/capabilities, tauri.conf.json, or model download code. Run /security-review and apply the focus list in security-focus.md.

5. Converge

  • Fix confirmed Important findings. Then re-run only steps 2 and 3, on the new changes only.
  • Stop after 3 rounds. If findings keep appearing, tell the user to rethink the approach instead of looping.
  • If the same kind of issue came up that REVIEW.md doesn't already list, propose a one-line entry for its "Recurring issues" section.

6. Draft the PR description

Fill .github/PULL_REQUEST_TEMPLATE.md and save it to the scratchpad (or a path the user gives):

  • Verification: the real output from step 2, trimmed to the relevant lines. List what couldn't run under "Not tested".
  • Review report: the summary line from step 3, whether step 4 ran, and each finding fixed or dismissed with a reason.
  • Risk and How to revert: tick the tier from the paths touched, not the author.
  • Leave the manual-testing table and the checklist for the author unless they gave you those facts.

Facts only. Keep every heading; write "N/A" rather than deleting one. Tell the user to read it before opening the PR.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.