agentleFS
ralphkraussralphkrauss/agent-orchestrator/.agents/skills/review/SKILL.md

review

Skill4 starsChanged 7 months agoMITView on GitHub

Session-scoped review of uncommitted changes against .agents/rules/ and the static checklist. Only reviews what was changed in THIS session (working tree diff), not the full branch. Use when user says "review", "check my changes", "review this", or wants a quick quality check before committing.

194 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cso, plan-devex-review 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.
  • ayudaySkill

    cso

    Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".

    Also in 11 projects that use this

  • seek888Skill

    plan-devex-review

    Interactive developer experience plan review. Explores developer personas, benchmarks against competitors, designs magical moments, and traces friction points before scoring. Three modes: DX EXPANSION (competitive advantage), DX POLISH (bulletproof every touchpoint), DX TRIAGE (critical gaps only). Use when asked to "DX review", "developer experience audit", "devex review", or "API design review". Proactively suggest when the user has a plan for developer-facing products (APIs, CLIs, SDKs, libraries, platforms, docs). (gstack) Voice triggers (speech-to-text aliases): "dx review", "developer experience review", "devex review", "devex audit", "API design review", "onboarding review".

    Also in 9 projects that use this

  • seek888Skill

    open-gstack-browser

    Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".

    Also in 5 projects that use this

  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 11 projects that use this

  • Kit4SomeSkill

    unfreeze

    Also in 12 projects that use this

  • AICreator-WindSkill

    design-consultation

    设计合作伙伴工具。构建完整设计系统,提供专业设计建议。

    Also in 12 projects that use this

  • +1 more from seek888

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 8 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use git diff HEAD as the scope.

    line 20
  2. Very specific:

    Check if a context file exists at contexts/{branch-name}/context.md

    line 30
  3. Distinctive:

    If it exists, read it. This contains pre-curated research: critical path, must-read file manifest, external provider knowledge, internal …

    line 31
  4. Distinctive:

    Use this context to understand the intent behind the changes — it informs which documentation to cross-reference and which invariants are …

    line 32
  5. Very specific:

    Check if a plan exists at plans/{branch-name}/plan.md

    line 33
  6. Distinctive:

    If it exists, read it and any sub-plans.

    line 34
  7. Distinctive:

    Check if the diff exhibits any anti-pattern described in the rules

    line 46
  8. Distinctive:

    If violation found: report with rule file, section, file, line, and the rule

    line 47
  9. Very specific:

    If the project maintains a review checklist (e.g., docs/reviewing/checklist.md):

    line 49
  10. Distinctive:

    Run only the dimensions relevant to the changed file categories

    line 50
  11. Distinctive:

    Test code exempt from strict mode

    line 55
  12. Very specific:

    If file exists for today, append counter: review-2026-04-01-2.md

    line 80
  13. Very specific:

    Write the review output to $ARTIFACT before presenting.

    line 82
  14. Very specific:

    Check if any findings represent patterns not covered by existing .agents/rules/ files.

    line 109

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

Review (Session-Scoped)

Lightweight review of uncommitted working tree changes only. Unlike /review-pr (which reviews the full branch vs main), this reviews only what's been modified in the current session — staged + unstaged changes.

Instructions

Step 1: Get Session Diff

git diff          # unstaged changes
git diff --cached # staged changes
git diff HEAD     # both combined

Use git diff HEAD as the scope. If the diff is empty, report "No uncommitted changes to review" and stop.

List changed files:

git diff HEAD --name-only

Step 1b: Load Context

  1. Get the current branch: git branch --show-current
  2. Check if a context file exists at contexts/{branch-name}/context.md
    • If it exists, read it. This contains pre-curated research: critical path, must-read file manifest, external provider knowledge, internal architecture patterns, and test patterns.
    • Use this context to understand the intent behind the changes — it informs which documentation to cross-reference and which invariants are most critical to verify.
  3. Check if a plan exists at plans/{branch-name}/plan.md
    • If it exists, read it and any sub-plans. The plan's Decisions, Scope, and Risks sections inform what the code should do — verify the diff matches intent, not just patterns.

Step 2: Classify and Load Rules

  1. Classify changed files into categories (Safety-critical, Domain, Integration, UI, Infrastructure, Tests, Config) — same categories as /review-pr
  2. Enable strict mode if any safety-critical files are in the diff (money handling, irreversible mutations, regulated flows, etc.)
  3. Load rules from .agents/rules/ that match the changed file paths
  4. Log: "Reviewing N files against .agents/rules/"

Step 3: Check Against Rules + Checklist

For each relevant rule in .agents/rules/:

  • Check if the diff exhibits any anti-pattern described in the rules
  • If violation found: report with rule file, section, file, line, and the rule

If the project maintains a review checklist (e.g., docs/reviewing/checklist.md):

  • Run only the dimensions relevant to the changed file categories
  • Skip dimensions where no files match

Severity rules:

  • Strict mode: any safety-critical invariant violation = Critical
  • Test code exempt from strict mode

Step 3b: Critical Documentation Validation

For each file in the diff that touches crucial logic (money/safety-critical flows, third-party integrations, domain state transitions, irreversible mutations):

  1. Identify the relevant documentation — find the docs that describe how this code should behave (docs/, architecture notes, third-party spec files, AGENTS.md sections)
  2. Read the documentation — do not rely on memory or pattern-matching. Actually read the doc.
  3. Verify correctness against the doc — trace the code path and confirm it implements what the documentation specifies. Check:
    • Are the method calls correct? (correct method on the correct service, correct event type)
    • Are the parameters in the right order with the right types?
    • Does the flow match the documented sequence?
    • Are edge cases from the documentation handled?
  4. Report discrepancies as Critical findings with evidence from both the code and the doc

This step is what separates a mechanical pattern check from a real review. Pattern compliance does not prove correctness — a handler can follow every naming convention and still call the wrong service method.

Step 4: Save Artifact

BRANCH=$(git branch --show-current)
mkdir -p plans/$BRANCH/reviews
ARTIFACT=plans/$BRANCH/reviews/review-$(date +%Y-%m-%d).md

If file exists for today, append counter: review-2026-04-01-2.md

Write the review output to $ARTIFACT before presenting. This creates a durable record alongside Codex review artifacts.

Step 5: Present Findings

## Session Review: N files, M lessons loaded

### Findings

| # | Severity | Rule | File | Issue |
|---|----------|------|------|-------|
| 1 | critical | rules/safety.md § Idempotency | src/service/handler.ext:42 | Idempotency check after mutation |

### 1. RULE-001: Idempotency check after mutation (critical)
**File:** `src/service/handler.ext:42`
**Issue:** {description}
**Fix:** {recommendation}

---

No findings? → "Session changes look clean. Ready to commit."

For each Critical/Important finding, ask: fix / defer / dismiss

Step 6: Knowledge Capture — Rule Check

Check if any findings represent patterns not covered by existing .agents/rules/ files. If a finding is reusable (not a one-off typo or naming nit), suggest /create-rule. Provide:

  • The pattern (rule text)
  • The anti-pattern (the bad code that was caught, with example)
  • The evidence (source: the session review finding that surfaced it)
  • Suggested context tags (what kind of work this applies to)

Do NOT write rule files directly — /create-rule handles dedup, ID assignment, index update, and source tracking.

Critical Rules

  • Session-scoped ONLY — review git diff HEAD, not git diff main...HEAD. This is about what you just changed, not the full branch.
  • No auto-fixes — present findings only. The user decides.
  • No build/test runs — this is a quick check, not a full self-review. Suggest running tests if logic was changed.
  • Evidence-based — every finding cites file:line and the rule file/section.
  • Fast — this should complete in under 30 seconds for typical changes.

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.