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

code-reviewer

Skill2 starsChanged 32 days agoMITView on GitHub

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

182 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use git-doc-updater, git-precommit 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.
  • 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 5 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 5 projects that use this

  • JeffallanSkill

    shopify-expert

    Builds and debugs Shopify themes (.liquid files, theme.json, sections), develops custom Shopify apps (shopify.app.toml, OAuth, webhooks), and implements Storefront API integrations for headless storefronts. Use when building or customizing Shopify themes, creating Hydrogen or custom React storefronts, developing Shopify apps, implementing checkout UI extensions or Shopify Functions, optimizing performance, or integrating third-party services. Invoke for Liquid templating, Storefront API, app development, checkout customization, Shopify Plus features, App Bridge, Polaris, or Shopify CLI workflows.

    Also in 5 projects that use this

  • JeffallanSkill

    spec-miner

    Reverse-engineering specialist that extracts specifications from existing codebases. Use when working with legacy or undocumented systems, inherited projects, or old codebases with no documentation. Invoke to map code dependencies, generate API documentation from source, identify undocumented business logic, figure out what code does, or create architecture documentation from implementation. Trigger phrases: reverse engineer, old codebase, no docs, no documentation, figure out how this works, inherited project, legacy analysis, code archaeology, undocumented features.

    Also in 6 projects that use this

  • +4 more from u9401066
  • +4 more from Jeffallan

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 155 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 155 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.