mcpField
R
review-crate

review-crate

github.com/ulpi-ioTesting & quality5115 installsUpdated 9w ago
Repository

About review-crate

review-crate is a skill for auditing a Rust crate from its files through its tests and existing issue records. It requires line-specific evidence and updates the repository’s canonical issue file without duplicating findings.

Key features

  1. 01Read every crate file
  2. 02Run crate tests
  3. 03Check existing canonical issues
  4. 04Record findings with file and line evidence
  5. 05Report residual risks

Use cases

  1. 01Audit a Rust crate before a change
  2. 02Find correctness and validation issues
  3. 03Review test coverage for risky behavior
  4. 04Maintain a non-duplicative local issue record

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/ulpi-io/skills --skill review-crate

After installing, type/review-cratein Claude Code to confirm it loaded.

Details

From the project README
This skill is only valid if it actually reads the whole crate.

Non-negotiable rules:

  1. Enumerate and read every file in the target crate.
  2. Run the crate's tests unless there is a concrete blocker.
  3. Ground every finding in exact file:line evidence.
  4. Check the current repository's canonical issue file before writing new findings.
  5. Write findings only to .ulpi/issues/<crate-name>.md in this repository.

review-crate

Inputs

  • $crate_path: Path to the crate directory

Goal

Perform a complete crate audit that:

  • reads the entire crate
  • runs tests
  • reports real bugs and coverage gaps
  • updates the canonical local issue file without duplicating prior findings

Step 0: Resolve crate identity

Determine:

  • crate path
  • crate name from Cargo.toml
  • canonical issue file path: .ulpi/issues/<crate-name>.md

If the crate path is invalid, stop and say so clearly.

Success criteria: The crate and issue-file target are explicit before review begins.

Step 1: Enumerate and read the whole crate

Read every file in the crate, including:

  • Cargo.toml
  • source files
  • test files
  • crate-local docs such as CLAUDE.md
  • supporting docs in the crate directory

Do not sample. Do not stop after "main files".

Success criteria: You can honestly state that the whole crate was read.

Step 2: Run crate tests

Run the narrowest full-crate verification that makes sense, typically:

  • cargo test -p <crate-name> -- --nocapture

If tests cannot run, report the exact blocker.

Success criteria: The review includes real crate-test signal or a concrete reason it is unavailable.

Step 3: Check the existing issue file

If .ulpi/issues/<crate-name>.md already exists:

  • read it first
  • avoid duplicating existing findings
  • append only genuinely new issues

If it does not exist:

  • create it when there are findings worth recording

Success criteria: The issue file remains canonical and non-duplicative.

Step 4: Analyze and write findings

Look for:

  • correctness bugs
  • panic or crash risks
  • validation gaps
  • race or state issues
  • data corruption risks
  • performance traps that are clearly real
  • coverage gaps around risky behavior

For each finding include:

  • severity
  • category
  • exact file:line
  • why the issue is real
  • suggested fix direction

Label uncertain claims as INFERENCE and explain why they are uncertain.

Success criteria: Findings are evidence-driven and actionable.

Step 5: Finish with residual risk

Report:

  • files read
  • test results
  • findings written or appended
  • remaining uncertainty or coverage gaps

If there are no material findings, say so explicitly.

Success criteria: The user understands both what was reviewed and what risk remains.

Guardrails

  • Do not write findings to external absolute paths outside this repository.
  • Do not claim full review if files were skipped.
  • Do not invent issues from intuition alone.
  • Do not add disable-model-invocation; this is a valid deep-audit workflow.
  • Do not turn this into a multi-crate sweep.

Output Contract

Report:

  1. crate reviewed
  2. file count and statement that the whole crate was read
  3. test results
  4. findings by severity
  5. issue file written or appended
  6. residual risk or clean result

Comments

Markdown supported