Skip to content
Development
Agent

review-notes

This shows how the api-designer agent reviews a flawed draft. Findings are severity-ranked so the implementer fixes the contract-breakers first. Severity legend: **CRITICAL** (breaks clients / data risk), **HIGH** (real bug or inconsistency), **MEDIUM** (maintainability),

From plugin
skills
954 skills54 agents

Claude Code

$ npx -y skills add vanara-agents/skills --agent claude-code

Agent definition

review-notes.md

Review Notes — Critiquing a Draft Contract

This shows how the api-designer agent reviews a flawed draft. Findings are severity-ranked so the implementer fixes the contract-breakers first. Severity legend: **CRITICAL** (breaks clients / data risk), **HIGH** (real bug or inconsistency), **MEDIUM** (maintainability), **LOW** (style).

The draft under review

POST /createOrder                  → 200 { "success": true, "order": {...} }
GET  /getOrders                    → 200 [ {...}, {...}, ... ]      # entire table
POST /refundOrder                  → 200 { "success": false, "msg": "already refunded" }
GET  /orders/{id}                  → 200 { "id": 41, "status": "open" }
DELETE /orders/{id}                → 200 { "success": true }

Findings

CRITICAL

1. **`200 OK` with `{"success": false}` on refund.** A failed refund returns HTTP 200, so every client that checks the status code treats a failure as success. Use a real code — `409 Conflict` for "already refunded" — with the standard error envelope. *Fix:* `POST /orders/{id}/refunds → 201` on success, `409` + `{ "data": null, "error": { "code": "already_refunded", ... } }` on conflict.

2. **Unbounded `GET /getOrders` returns the entire table.** No pagination and no `limit` cap is a self-inflicted DoS as the table grows. *Fix:* `GET /orders?limit=20&cursor=...` with `limit` capped server-side at 100, returning the list envelope with `meta.nextCursor`.

HIGH

3. **Verbs in URLs** (`/createOrder`, `/getOrders`, `/refundOrder`). The HTTP method is the verb; paths are nouns. *Fix:* `POST /orders`, `GET /orders`, `POST /orders/{id}/refunds`.

4. **Inconsistent response shapes.** `GET /getOrders` returns a bare array; other endpoints return objects with ad-hoc keys (`order`, `success`, `msg`). Clients can't generalize. *Fix:* one envelope everywhere — `{ data, meta, error }`.

5. **Wrong success codes.** `POST /createOrder` returns 200 with no `Location`; it creates a resource so it should be `201 Created` + `Location: /orders/{id}`. `DELETE` should be `204 No Content`.

MEDIUM

6. **Enumerable integer IDs** (`"id": 41`). Sequential IDs leak volume and invite enumeration attacks. *Fix:* opaque IDs (`ord_01H...`, UUID/ULID).

7. **No idempotency on create.** A retried `POST /orders` will double-create. *Fix:* accept an `Idempotency-Key` header.

LOW

8. **Inconsistent error key** (`msg` vs the rest of the API). Standardize on `error.message`.

Rewritten contract

See `openapi-snippet.yaml` in this package for the corrected version: plural nouns, `201`/`204`/`409` status codes, cursor pagination with a capped `limit`, the single `{ data, meta, error }` envelope, opaque IDs, and an `Idempotency-Key` on create.

Read more
@vanara-agents
Ships withskills

🐒 Free agents, skills & packs for Claude Code One subscription. An army of Claude Code agents. 30 production-grade agents, skills, and packs for Claude Code — free, Apache-2.0, install with one command.

917 skills54 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
9
Star history of vanara-agents/skills on GitHub, a chart by star-history.com

Other agents on skills.

AGENT

AGENT

Agent

Use when designing a new HTTP/GraphQL API or changing an existing one — modeling resources, defining endpoint contracts, choosing…

contract-and-openapi

contract-and-openapi

Agent

The contract is the deliverable. Express it as an **OpenAPI 3.1** document so it is human-readable *and* machine-checkable. This…

design-checklist

design-checklist

Agent

Run through this before declaring an API contract done. It is ordered the way you should *design*: resources first, cross-cutting…

pr-comment-template

pr-comment-template

Agent

Copy-paste templates for leaving review comments. Keep each comment to one finding: an anchor, the problem, and the fix.

sample-review-output

sample-review-output

Agent

A complete review of a hypothetical PR, in the standard format. Use this as the model for tone, structure, and the anchor →…

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc2w293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react4d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex3d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman4d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about review-notes.

Which coding agents can use review-notes?
review-notes installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.