Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

agent-ops-api-review

БесплатноБез исполняемых скриптовНе проверен

Platform/Language agnostic API delivery and correctness auditor. Use when project contains API endpoints to verify contract alignment, endpoint behavior, and…

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

Skill: agent-ops-api-review

Platform/Language agnostic API delivery and correctness auditor


Purpose

Perform a critical, thorough, evidence-based audit of an API implementation and its endpoints. Verify that the API:

  • Produces the expected outcomes
  • Behaves correctly across success and failure paths
  • Matches its OpenAPI/Swagger contract
  • Has adequate tests to prove required behavior

No credit without evidence. Spec is not proof. Tests are not proof unless they assert required outcomes.


Triggers

  • Project contains API endpoints (REST, GraphQL, gRPC)
  • OpenAPI/Swagger spec exists
  • User requests API review
  • agent-ops-critical-review detects API patterns

Inputs

You will be given some or all of:

  • Repository / codebase / diff
  • OpenAPI/Swagger spec (file or generated)
  • Unit test suite
  • Optional: CI logs, runtime logs, sample requests/responses

If the OpenAPI spec is not available, identify where it should exist and treat missing spec as a finding.


Non-Negotiable Rules

  • No credit without evidence
  • Spec is not proof — implementation must match it
  • Tests are not proof unless they assert required outcomes and would fail on regression
  • Every claim must cite concrete locations (files/endpoints/tests/spec paths)

Mandatory Audit Outputs

1. Endpoint Inventory

List all endpoints, grouped by resource/domain:

  • Method + route + auth requirement
  • Request/response shape references (OpenAPI path refs if available)

2. Contract Alignment Matrix

For each endpoint:

Endpoint Spec Ref Impl Ref Tests Ref Status
GET /users paths./users.get user_router.py:45 test_users.py:12 aligned
POST /users paths./users.post user_router.py:78 — untested

Status values: aligned | partially_aligned | misaligned | unverifiable

3. Findings

Each finding must include:

  • Severity: must_fix | strongly_recommended | discuss
  • Category: Which audit axis (A1-A10)
  • Endpoint(s) affected
  • File references
  • Evidence
  • Actionable recommendation

4. Test Gap Assessment

  • What is proven by unit tests
  • What cannot be proven without integration tests
  • Minimum required integration tests to establish confidence

5. Verdict

  • PASS: No must_fix and no misaligned endpoints
  • FAIL: Any must_fix or misaligned endpoint

Mandatory Audit Axes

Explicitly evaluate each axis. If not applicable, say why.

A1: OpenAPI Contract Correctness & Drift

  • Does the OpenAPI spec reflect actual API behavior?
  • Are operationIds stable and meaningful?
  • Are schemas precise (required fields, formats, nullability)?
  • Are error responses specified and accurate?
  • Are examples present and representative?

Flag: spec drift, underspecified schemas, missing error models

A2: Endpoint Behavior & Outcome Verification

For each endpoint:

  • Does it produce the expected domain outcome, not just a response?
  • Are side effects correct (create/update/delete/idempotency)?
  • Are status codes correct and consistent?
  • Are edge cases handled (empty, invalid, not found, conflict)?

Flag: wrong status codes, incorrect behavior, missing edge cases

A3: Request Validation & Error Semantics

  • Is input validation explicit and consistent?
  • Are validation errors structured and stable (machine-readable)?
  • Are error codes/messages consistent across endpoints?
  • Clear distinction between 4xx (client) vs 5xx (server) vs 409 (conflict)?
  • Are errors ever swallowed or turned into "200 with error payload"?

Flag: inconsistent error shapes, silent failures, leaking internal details

A4: Authentication, Authorization, and Tenant Boundaries

  • Are endpoints protected appropriately?
  • Are authorization rules enforced server-side?
  • Are tenant boundaries enforced (if multi-tenant)?
  • Is identity propagated and validated correctly?

Flag: auth bypass risk, missing authorization checks, privilege escalation

A5: Pagination, Filtering, Sorting, and Field Selection (HIGH SCRUTINY)

Field Selection / Sparse Fieldsets

  • Is it specified in OpenAPI?
  • Does implementation whitelist fields (no arbitrary property exposure)?
  • Are invalid field selections rejected with clear errors?

Filtering & Sorting

  • Are filters validated and whitelisted?
  • Is filter syntax consistent?
  • Are unknown filters rejected (not ignored)?

Pagination

  • Cursor vs offset semantics clear?
  • Limits enforced?
  • Deterministic ordering guaranteed?

Flag: field selection leaking sensitive data, injection risks, unstable paging

A6: Idempotency, Concurrency, and Caching

  • Are PUT/PATCH/POST idempotency rules clear and honored?
  • Are idempotency keys supported where required?
Полный SKILL.md на GitHub

Установить agent-ops-api-review в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл agent-ops-api-review?

Platform/Language agnostic API delivery and correctness auditor. Use when project contains API endpoints to verify contract alignment, endpoint behavior, and test coverage.

Как установить скилл agent-ops-api-review?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agent-ops-api-review запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить agent-ops-api-review с