agentleFS
loganware05loganware05/captains-compass-cursor/.cursor/skills/code-reviewer/SKILL.md

code-reviewer

Skill2 starsChanged 3 months agoMITView on GitHub

Runs NorthStar Detection → Investigation → Verification → Review pipeline and writes evidence-only code review reports

129 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use sql-query-expert, git-doc-updater and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Marine-softdrink524Skill

    sql-query-expert

    Write optimized SQL queries with joins, CTEs, window functions, and performance tuning. Based on Anthropic's Claude Cookbooks.

    Also in 3 projects that use this

  • u9401066Skill

    git-doc-updater

    Auto-check and update key documentation before Git commits to keep docs in sync with code. Triggers: docs, 文檔, 更新文檔, sync docs, release, 發布.

    Also in 3 projects that use this

  • u9401066Skill

    git-precommit

    Orchestrate pre-commit workflow including Memory Bank sync, README/CHANGELOG/ROADMAP updates. Triggers: GIT, gc, push, commit, 提交, 準備 commit, 要提交了, git commit, pre-commit, 推送.

    Also in 3 projects that use this

  • JeffallanSkill

    secure-code-guardian

    Use when implementing authentication/authorization, securing user input, or preventing OWASP Top 10 vulnerabilities — including custom security implementations such as hashing passwords with bcrypt/argon2, sanitizing SQL queries with parameterized statements, configuring CORS/CSP headers, validating input with Zod, and setting up JWT tokens. Invoke for authentication, authorization, input validation, encryption, OWASP Top 10 prevention, secure session management, and security hardening. For pre-built OAuth/SSO integrations or standalone security audits, consider a more specialized skill.

    Also in 4 projects that use this

  • alirezarezvaniSkill

    readme-updater

    Keep README files current with project changes. Use when project structure changes, features added, or setup instructions modified. Suggests README updates based on code changes. Triggers on significant project changes, new features, dependency changes.

    Also in 4 projects that use this

  • JohnJBorenSkill

    test-engineer

    Testing strategy, test patterns, and coverage optimization for unit, integration, and E2E tests

    Also in 9 projects that use this

  • +3 more from u9401066

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 111 edited versions we read keep these.

  • 0

    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. Very specific:

    When the repo has a built inode store (Skill context-inodes), the pipeline emits deterministic boundary candidates for calls/imports that …

    line 57

“Common” is measured: kept by at least 6 in 10 of the 111 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

Code Reviewer

Use this Skill when

A branch, PR, or local diff needs a structured NorthStar code review that:

  • loads intent from IMPLEMENTATION_PLAN.md, INTENT_PACK.md, or --intent-json (normalized northstar.intent_pack.v1; never sets Captain approval)
  • investigates changed files + related neighbors
  • verifies candidate findings before reporting
  • writes evidence under .agent/evidence/code-review/<run-id>/

Inputs

  • Repository root (control or sandbox)
  • Optional git base/head refs, unified diff file, or changed-path list
  • Optional fixture candidates JSON (required for hermetic CI / no model)
  • Optional plan path (defaults to IMPLEMENTATION_PLAN.md / INTENT_PACK.md auto-discover)
  • Optional --intent-json normalized intent pack (M29)

Procedure

  1. Detect — identify domains from changed paths; load plan or intent-pack acceptance criteria / non-goals.
  2. Investigate — assemble a context pack (diff excerpt, changed file snippets, neighbors). Redact secrets.
  3. Candidates — default specialists mode composes hermetic security / adversarial / testing emitters (M28). Use --candidates fixtures in CI; --candidates-mode heuristics is the M27 escape hatch. No model in the default path.
  4. Verify — discard findings below confidence threshold or without evidence paths.
  5. Report — write report.json + report.md under .agent/evidence/code-review/<run-id>/.
  6. Hand verified findings to humans or review-fix-loop. Never auto-merge. GitHub draft posting is opt-in (--post-github-draft) and allowlist-gated (M30); default remains evidence-only.
  7. Outcomes (M31) — after human triage, record outcomes → Experience (optional RoutingProposal is proposal-only).
  8. Repair (M32 / B4) — for verified findings only, northstar repair start builds a FIND→PROVE→dispatch packet. Never auto-merges. Captain authorization required before FIX/SUBMIT.
  9. Precision (M33 / B5) — aggregate finding outcomes into a precision ledger + dashboard; optional priority proposal never auto-applies.

CLI

# From control repo
./scripts/run-code-review.sh --repo-root /path/to/repo --plan IMPLEMENTATION_PLAN.md
./scripts/run-code-review.sh --repo-root /path/to/repo --intent-json .agent/intent/current.json
./scripts/northstar review --repo /path/to/repo --candidates-mode specialists
./scripts/northstar review --repo /path/to/repo --candidates tests/fixtures/code-review/candidates.json
./scripts/northstar intent export --out .agent/intent/current.json --fixture issue.json
./scripts/northstar outcomes record --report path/to/report.json --triage path/to/triage.json
./scripts/record-finding-outcomes.sh --report path/to/report.json --triage path/to/triage.json --emit-routing-proposal
./scripts/northstar repair start --report path/to/report.json --finding <id> --repository loganware05/captain-compass-sandbox
./scripts/start-repair-loop.sh --report path/to/report.json --finding <id> --repository loganware05/captain-compass-sandbox
./scripts/northstar precision aggregate --outcomes path/to/outcomes.json --emit-priority-proposal
./scripts/aggregate-precision-ledger.sh --outcomes path/to/outcomes.json --ledger-id demo

M40: cross-boundary verification gate

When the repo has a built inode store (Skill context-inodes), the pipeline emits deterministic boundary candidates for calls/imports that cross context routes (domain/module):

  • boundary-unknown-symbol (high) — import names a symbol the callee inode does not export
  • boundary-arity (medium) — added call site passes an argument count the declared signature cannot accept
  • boundary-complexity (medium) — added call inside an added loop invokes a callee with non-constant declared @complexity (e.g. declared (O(N)) called per element ⇒ effective (O(N^2)))

The gate is on by default (--boundary-check); it skips with an explicit note when the inode store is absent or stale — never review against untrusted metadata. Boundary findings carry category: boundary and flow through the standard verify/rank path. Precision target on fixture + sandbox corpora: 1.0 (measured in tests/evals/run.sh M40 sensors).

Output

  • Schema-valid report.json (code-review-report.schema.json)
  • Human-readable report.md
  • Optional context-pack.json
  • Optional triage outcomes.json + Experience lessons; optional RoutingProposal (auto_apply=false)
  • Optional repair repair-run.json + dispatch-packet.json under .agent/evidence/repair/<run-id>/
  • Report provenance records boundary notes/candidate counts

Prohibited actions

  • Auto-applying RoutingProposal / Skill confidence deltas (Captain gate only)
  • Invoking models in CI / default hermetic path
  • Auto-merging or auto-fixing without a separate approved plan
  • Repairing unverified or discarded findings
  • Expanding webhook pull_request handling in this Skill
  • Treating Linear as Captain approval authority

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.