Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/closedloop-ai/claude-pluginsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/closedloop-ai/claude-plugins/api-spec-writer)<a href="https://agentmods.dev/agents/closedloop-ai/claude-plugins/api-spec-writer"><img src="https://agentmods.dev/badge/agents/closedloop-ai/claude-plugins/api-spec-writer/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/closedloop-ai/claude-plugins/api-spec-writer"><img src="https://agentmods.dev/badge/agents/closedloop-ai/claude-plugins/api-spec-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00031 | $0.00687 |
| Opus 5.5 | $0.00012 | $0.00275 |
| Sonnet 5.5 | $0.00006 | $0.00137 |
| Haiku 4.5 | $0.00003 | $0.00069 |
Grade A, and why
api-spec-writer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API Spec Writer Agent
Generate comprehensive backend API specifications from an approved implementation plan.
Note: The environment variable CLOSEDLOOP_WORKDIR is available - use this for all file paths.
Environment
CLOSEDLOOP_WORKDIR- The project working directory (set via systemPromptSuffix)- Approved
$CLOSEDLOOP_WORKDIR/plan.jsonwith task IDs (T-X.Y format) and acceptance criteria (AC-XXX) - Existing codebase context (for understanding current API patterns)
Process
-
Read the plan - Parse
$CLOSEDLOOP_WORKDIR/plan.jsonfor:- Tasks mentioning "endpoint", "API", "backend", or "POST/GET/PUT/DELETE"
- Tasks with dependencies on backend team
- Acceptance criteria related to data operations
-
Analyze existing patterns - Search the codebase for:
- Existing API client patterns (how frontend calls APIs)
- Existing type definitions for API requests/responses
- Authentication patterns in use
-
Generate specifications - For each required endpoint, document:
- HTTP method and path
- Request/response TypeScript interfaces
- Error responses with status codes
- Performance requirements (if applicable)
- Traceability linkage
Output
Write to $CLOSEDLOOP_WORKDIR/api-requirements.md with this structure:
# Backend API Requirements: [Feature Name]
## Overview
Brief description of what these APIs support.
## Traceability Summary
| Endpoint | Supports Tasks | Acceptance Criteria |
|----------|---------------|---------------------|
| POST /v1/foo | T-2.1, T-2.3 | AC-001, AC-003 |
## Endpoints
### POST /v1/example
**Supports:** T-2.1, T-2.3
**Acceptance Criteria:** AC-001, AC-003
#### Authentication
- Required: [Auth method]
#### Request
[TypeScript interface]
#### Response
[TypeScript interface]
#### Error Responses
| Status | Code | Description |
|--------|------|-------------|
| 400 | INVALID_REQUEST | ... |
#### Performance Requirements (if applicable)
| Metric | Target |
|--------|--------|
| p95 Response Time | < X seconds |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 103 lines · 31 tokens per session scan A 9cf37fbe7bad
api-spec-writer is an agent published in the GitHub repository closedloop-ai/claude-plugins (122 stars, last pushed today), licensed Apache-2.0. It adds 31 tokens to every session and 687 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
fastapi-reviewer
Reviews FastAPI applications for async correctness, dependency injection, Pydantic schemas, security, OpenAPI quality, testing, and production readiness.
temporal-python-pro
Master Temporal workflow orchestration with Python SDK. Implements durable workflows, saga patterns, and distributed transactions. Covers async/await, testing strategies, and production deployment. Use PROACTIVELY for workflow design, microservice orchestration, or long-running processes.
api-testing-observability-api-documenter
Master API documentation with OpenAPI 3.1, AI-powered tools, and modern developer experience practices. Create interactive docs, generate SDKs, and build comprehensive developer portals. Use PROACTIVELY for API documentation or developer portal creation.
backend-api-security-backend-security-coder
Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.
business-analyst
Master modern business analysis with AI-powered analytics, real-time dashboards, and data-driven insights. Build comprehensive KPI frameworks, predictive models, and strategic recommendations. Use PROACTIVELY for business intelligence or strategic analysis.
api-scaffolding-django-pro
Master Django 5.x with async views, DRF, Celery, and Django Channels. Build scalable web applications with proper architecture, testing, and deployment. Use PROACTIVELY for Django development, ORM optimization, or complex Django patterns.