agentleFS
strikersamstrikersam/autonomous-ai-agency/.agents/skills/council-review/SKILL.md

council-review

Skill9 starsChanged 3 months agoMITView on GitHub

Multi-perspective code review before merging. Simulates a council of reviewers (security, correctness, performance, maintainability) independently evaluating a change. Use before any PR merge or for significant changes.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Before merging any PR that changes production code

    line 25
  2. Distinctive:

    When asked "is this safe?" or "can this go out?"

    line 26
  3. Distinctive:

    After a self-review that feels uncertain

    line 27
  4. Distinctive:

    If any reviewer returns FAIL: do not merge.

    line 110
  5. Distinctive:

    If any reviewer returns WARN: document the known risk in a code comment or ADR.

    line 111
  6. Distinctive:

    If all PASS: merge is safe.

    line 112

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

Skill: council-review

When to Use

Use this skill:

  • Before merging any PR that changes production code
  • When asked "is this safe?" or "can this go out?"
  • After a self-review that feels uncertain
  • For any change to risky modules (auth, keys, agent tools, routing)

Instructions

Step 1 — Gather the diff

git diff main...HEAD                    # all changes vs main
git diff --stat main...HEAD             # file summary

Step 2 — Run each reviewer role independently

For each role below, read the diff and answer the questions for that role. Record findings in a structured review comment.


Role 1: Security Reviewer

Questions to answer:

  • Does this change introduce or weaken an auth check?
  • Are any secrets, tokens, or API keys potentially exposed?
  • Does any new code accept untrusted input without validation?
  • Are file paths sanitized? (especially in agent/tools.py)
  • Does any new dependency introduce a known CVE?

Role 2: Correctness Reviewer

Questions to answer:

  • Does the implementation match the stated goal?
  • Are edge cases handled (empty input, None, zero, very long strings)?
  • Are error conditions propagated correctly?
  • Would any existing test fail after this change?
  • Are there any off-by-one errors, race conditions, or type mismatches?

Role 3: Performance Reviewer

Questions to answer:

  • Does this change add any blocking I/O on the async path?
  • Are there any N+1 query or repeated expensive computation patterns?
  • Does any new loop run on every request?
  • Is caching appropriate? (especially for health checks, model registry)

Role 4: Maintainability Reviewer

Questions to answer:

  • Is the code readable without inline explanation?
  • Are variable names clear?
  • Are new abstractions justified or is this over-engineering?
  • Does this add duplication that should be shared?
  • Is the module boundary respected? (don't let routing logic leak into proxy.py)

Step 3 — Produce a council verdict

## Council Verdict

### Approved / Blocked / Approved with conditions

**Security:** PASS / FAIL / WARN — <one line>
**Correctness:** PASS / FAIL / WARN — <one line>
**Performance:** PASS / FAIL / WARN — <one line>
**Maintainability:** PASS / FAIL / WARN — <one line>

### Required changes before merge
- (list any FAIL or WARN items that must be addressed)

### Optional improvements
- (list any suggestions that are not blockers)

Step 4 — Gate on verdict

  • If any reviewer returns FAIL: do not merge. Address and re-run.
  • If any reviewer returns WARN: document the known risk in a code comment or ADR.
  • If all PASS: merge is safe.

Acceptance Checks

  • All four reviewer roles evaluated
  • No FAIL verdicts outstanding
  • Required changes (if any) addressed
  • Verdict recorded (in PR description or review comment)
  • Tests pass after any required 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.