local-ultra-review
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Use when the user explicitly asks for a deep local code review, PR review, bug hunt, pre-merge review, or Ultra Review style review with high confidence findings.
- Reads credentials
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- cogine-ai/local-ultra-reviewedited, first seen Sep 15, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- cogine-ai/local-ultra-review★ 093% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository38 other files it gives its agents.
- skills/supabase-postgres-best-practices/AGENTS.mdAGENTS.md
- skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- skills/supabase-postgres-best-practices/CLAUDE.mdCLAUDE.md
- ai-app-security-auditSkill
- ai-slide-templatesSkill
- backlog-ready-specSkill
- check-compiler-errorsSkill
- clawpackerSkill
- deslopSkill
- devex-reviewSkill
- fix-ciSkill
- fix-merge-conflictsSkill
- founder-office-hoursSkill
- get-cookiesSkill
- get-pr-commentsSkill
- gh-issue-priority-handoffSkill
- image2-with-codexSkill
- investigateSkill
- loop-on-ciSkill
- loop-on-pr-review-and-fixSkill
- new-branch-and-prSkill
- npm-release-pipelineSkill
- peer-reviewSkill
- plan-devex-reviewSkill
- planmode-ceoSkill
- planmode-engineerSkill
- qa-onlySkill
- review-and-shipSkill
- run-smoke-testsSkill
- security-best-practicesSkill
- site-design-auditSkill
- site-design-fixSkill
- slow-is-fastSkill
- supabase-postgres-best-practicesSkill
- vercel-react-best-practicesSkill
- xianyu-api-client-skillSkill
- xianyu-automation-skillSkill
- xianyu-product-manager-skillSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
30 rules. About 0 are common, 14 are distinctive, and 16 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
16
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Run a local Ultra Review style code review.
- Distinctive: line 30
If no target is provided, review the current branch against the default base branch and include staged and unstaged tracked changes.
- Very specific: line 48
Default: keep review artifacts in .local-ultra-review/<session-id>/, then remove the temporary worktree after report generation and any …
- Distinctive: line 55
Use an isolated worktree when possible.
- Very specific: line 56
Prefer .local-ultra-review/worktrees/<session-id>/ for review workspaces.
- Very specific: line 57
Add .local-ultra-review/ to the repository-local git exclude (.git/info/exclude), not to the tracked project .gitignore, unless the user …
- Very specific: line 58
Do not copy .env, credentials, private keys, tokens, gitignored secrets, or local database config unless the user explicitly allows it.
- Very specific: line 59
Do not use network access unless the user explicitly allows it, approved project checks require it, or the target is a GitHub PR that …
- Distinctive: line 60
Do not report style, formatting, naming preference, or generic maintainability advice as findings.
- Very specific: line 64
If a candidate cannot be verified, put it under Needs manual review or omit it.
- Distinctive: line 93
If the script is unavailable, manually inspect:
- Distinctive: line 102
Stop only if the target cannot be determined or the directory is not a git repository.
- Distinctive: line 112
If no argument is provided, use current branch versus the detected default base and include staged and unstaged tracked changes.
- Very specific: line 140
Create a detached worktree under .local-ultra-review/worktrees/<session-id>/.
- Distinctive: line 142
Do not copy secrets by default.
- Very specific: line 143
Add the output directory to .git/info/exclude when it is inside the repository.
- Distinctive: line 146
If worktree creation fails, continue read-only from the current working tree and state that isolation was not available.
- Distinctive: line 150
Run in the review workspace if one exists:
- Very specific: line 162
Read prompts/01-impact-mapper.md and produce an impact map before looking for bugs.
- Very specific: line 166
Run independent reviewer passes using the shared contract in prompts/00-review-contract.md and these lenses:
- Very specific: line 178
Read prompts/07-verifier.md and verify every candidate.
- Very specific: line 185
Only confirmed findings may appear in the main Important or Nit sections.
- Very specific: line 189
Read prompts/08-dedupe-ranker.md.
- Distinctive: line 196
Test blind spot tied to a concrete behavior risk
- Distinctive: line 199
Do not pad the report. If no confirmed findings exist, say so.
- Very specific: line 230
If and only if the user passed --post summary, post exactly one top-level PR comment:
- Very specific: line 238
If the authorized post_mode is review, create exactly one GitHub PR review event:
- Distinctive: line 251
After report rendering and any selected GitHub posting succeeds, remove the temporary worktree while keeping the session artifacts:
- Very specific: line 259
If the run failed, was interrupted, or the user passed --keep-worktree, preserve the worktree:
- Distinctive: line 276
Do not paste large logs into chat.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Local Ultra Review
Run a local Ultra Review style code review. The goal is to find real bugs introduced or worsened by the target diff, with low false positives.
This skill is read-only. Do not modify product code, commit, push, or apply fixes.
Inputs
Invocation examples:
/local-ultra-review/local-ultra-review origin/main/local-ultra-review HEAD~3..HEAD/local-ultra-review pr 123/local-ultra-review https://github.com/org/repo/pull/123/local-ultra-review --base origin/main --mode deep/local-ultra-review pr 123 --post summary/local-ultra-review pr 123 --post review/local-ultra-review pr 123 --keep-worktree
If no target is provided, review the current branch against the default base branch and include staged and unstaged tracked changes.
If the target is a GitHub PR, default to deep mode, collect PR metadata, review the PR head in an isolated worktree, and render a GitHub-ready summary comment locally. All targets default to --post none. Post only when explicitly authorized in this session; pass the corresponding --post summary or --post review argument without asking again. A PR URL alone does not authorize posting. --post none always disables posting.
Modes:
light: correctness, security/integration, and tests/verificationdeep: default, five reviewer lenses plus verificationmax: broader review for large or high-risk changes
GitHub output:
--post none: default for all targets; write local artifacts only--post summary: post one top-level PR summary comment after verification and report rendering--post review: create one GitHub PR review event with CodeRabbit-style inline comments for verified findings that map to diff-commentable right-side lines; list verified findings that cannot be placed inline in the review body
Worktree lifecycle:
- Default: keep review artifacts in
.local-ultra-review/<session-id>/, then remove the temporary worktree after report generation and any selected GitHub posting succeeds. --keep-worktree: preserve the temporary worktree for debugging.- On failed or interrupted review runs, preserve the worktree and state the path.
Hard Rules
- Review only. Do not edit business code.
- Use an isolated worktree when possible.
- Prefer
.local-ultra-review/worktrees/<session-id>/for review workspaces. - Add
.local-ultra-review/to the repository-local git exclude (.git/info/exclude), not to the tracked project.gitignore, unless the user explicitly asks for a repository file change. - Do not copy
.env, credentials, private keys, tokens, gitignored secrets, or local database config unless the user explicitly allows it. - Do not use network access unless the user explicitly allows it, approved project checks require it, or the target is a GitHub PR that requires
ghfor metadata, checkout, or the selected post mode. - Do not report style, formatting, naming preference, or generic maintainability advice as findings.
- A finding must cite exact
file:line. - A finding must include a concrete failure scenario.
- A finding must be checked by a separate verifier pass before it appears as Important or Nit.
- If a candidate cannot be verified, put it under
Needs manual reviewor omit it.
Supporting Files
config/default.yaml: default review behavior and safety settings.config/severity.yaml: local severity definitions.config/ignore.yaml: default low-value path and rule exclusions.prompts/00-review-contract.md: shared finding bar for all reviewers.prompts/01-impact-mapper.md: impact map prompt; does not produce findings.prompts/02-*.mdthrough06-*.md: reviewer lens prompts.prompts/07-verifier.md: required verification pass.prompts/08-dedupe-ranker.md: dedupe and severity ranking rules.prompts/09-final-report.md: final report instructions.schemas/*.schema.json: review bundle and finding schemas.scripts/*.shandscripts/*.py: optional local automation.templates/*.j2: report and comment templates.
Load only the supporting files needed for the current phase.
Pipeline
Phase 0: Preflight
Run:
bash ${CLAUDE_SKILL_DIR}/scripts/preflight.sh "$ARGUMENTS"If the script is unavailable, manually inspect:
- git repo root and current branch
- default base branch
- staged, unstaged, and untracked status
- changed files
- package and test commands
REVIEW.md,AGENTS.md,CLAUDE.md,README.md, or equivalent instructions
Stop only if the target cannot be determined or the directory is not a git repository.
Phase 1: Detect Target
Run:
bash ${CLAUDE_SKILL_DIR}/scripts/detect-target.sh "$ARGUMENTS"If no argument is provided, use current branch versus the detected default base and include staged and unstaged tracked changes.
Phase 2: Prepare Isolated Workspace
For branch or working-tree targets, run:
bash ${CLAUDE_SKILL_DIR}/scripts/prepare-worktree.sh --base <base-ref>For GitHub PR targets, first collect PR metadata and then prepare the PR worktree:
python3 ${CLAUDE_SKILL_DIR}/scripts/collect-pr-context.py \
--pr <pr-number-or-url> \
--repo <owner/repo-if-known> \
--out .local-ultra-review/<session-id>/pr-context.json
bash ${CLAUDE_SKILL_DIR}/scripts/prepare-pr-worktree.sh \
--pr <pr-number-or-url> \
--repo <owner/repo-if-known> \
--base <pr-base-ref-name> \
--session-id <session-id>Expected behavior:
- Create
.local-ultra-review/<session-id>/. - Create a detached worktree under
.local-ultra-review/worktrees/<session-id>/. - Apply staged and unstaged tracked changes when reviewing local working tree changes.
- Do not copy secrets by default.
- Add the output directory to
.git/info/excludewhen it is inside the repository. - Record base, head, session id, worktree path, and patch paths.
If worktree creation fails, continue read-only from the current working tree and state that isolation was not available.
Phase 3: Collect Context
Run in the review workspace if one exists:
python3 ${CLAUDE_SKILL_DIR}/scripts/collect-context.py \
--base <base-ref> \
--out .local-ultra-review/<session-id>/review-bundle.jsonThe bundle should include diff patches, changed files, relevant test files, package scripts, project instructions, ignore rules, and detected languages/frameworks. Do not load the whole repository blindly.
Phase 4: Impact Map
Read prompts/01-impact-mapper.md and produce an impact map before looking for bugs. The impact map should identify changed modules, public interfaces, consumers, data models, auth/tenant/privacy boundaries, tests, and high-risk reviewer focus areas. It must not produce final findings.
Phase 5: Reviewer Passes
Run independent reviewer passes using the shared contract in prompts/00-review-contract.md and these lenses:
- Correctness and regression
- Security and privacy
- Integration and API contract
- State, concurrency, migration, and rollback
- Tests and verification
Each reviewer must output candidate findings matching schemas/candidate-finding.schema.json. Prefer fewer high-confidence findings.
Phase 6: Verification
Read prompts/07-verifier.md and verify every candidate. Classify each as:
confirmedfalse_positivepre_existingneeds_manual_review
Only confirmed findings may appear in the main Important or Nit sections.
Phase 7: Dedupe and Rank
Read prompts/08-dedupe-ranker.md. Deduplicate confirmed findings by root cause and rank by severity:
- Security, privacy, permission, data loss
- Production behavior regression
- Migration, rollback, data compatibility
- Integration contract break
- Concurrency, retry, idempotency
- Test blind spot tied to a concrete behavior risk
- Nit
Do not pad the report. If no confirmed findings exist, say so.
Phase 8: Report
Write:
.local-ultra-review/<session-id>/report.md.local-ultra-review/<session-id>/findings.json.local-ultra-review/<session-id>/candidates.jsonl.local-ultra-review/<session-id>/verification.jsonl.local-ultra-review/<session-id>/review-bundle.json.local-ultra-review/<session-id>/logs/
For GitHub PR targets, also write:
.local-ultra-review/<session-id>/pr-context.json.local-ultra-review/<session-id>/github-pr-comment.md.local-ultra-review/<session-id>/github-pr-review-payload.jsonwhenpost_modeisreview
Render the GitHub summary with:
python3 ${CLAUDE_SKILL_DIR}/scripts/render-github-summary.py \
--pr-context .local-ultra-review/<session-id>/pr-context.json \
--findings .local-ultra-review/<session-id>/findings.json \
--report .local-ultra-review/<session-id>/report.md \
--out .local-ultra-review/<session-id>/github-pr-comment.md \
--mode <mode> \
--session-id <session-id>If and only if the user passed --post summary, post exactly one top-level PR comment:
python3 ${CLAUDE_SKILL_DIR}/scripts/post-github-summary.py \
--pr-context .local-ultra-review/<session-id>/pr-context.json \
--body-file .local-ultra-review/<session-id>/github-pr-comment.mdIf the authorized post_mode is review, create exactly one GitHub PR review event:
python3 ${CLAUDE_SKILL_DIR}/scripts/post-github-review.py \
--pr-context .local-ultra-review/<session-id>/pr-context.json \
--findings .local-ultra-review/<session-id>/findings.json \
--mode <mode> \
--session-id <session-id> \
--out .local-ultra-review/<session-id>/github-pr-review-payload.jsonThe review event should use inline comments only for verified Important/Nit findings on GitHub diff-commentable right-side lines. Do not force inline comments onto unmappable lines; include those findings in the review body instead.
After report rendering and any selected GitHub posting succeeds, remove the temporary worktree while keeping the session artifacts:
bash ${CLAUDE_SKILL_DIR}/scripts/finalize-session.sh \
--session-dir .local-ultra-review/<session-id> \
--status successIf the run failed, was interrupted, or the user passed --keep-worktree, preserve the worktree:
bash ${CLAUDE_SKILL_DIR}/scripts/finalize-session.sh \
--session-dir .local-ultra-review/<session-id> \
--status failure \
--keep-worktreeThe final response to the user should include only:
- Important count
- Nit count
- Pre-existing count
- Report path
- Top 3 findings, if any
Do not paste large logs into chat.
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
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.

