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.
npx skills add cass-2003/local-workflow-skill --skill api-discoverygit clone --depth 1 https://github.com/cass-2003/local-workflow-skillWrote 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/skills/cass-2003/local-workflow-skill/api-discovery)<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/api-discovery"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/api-discovery/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/skills/cass-2003/local-workflow-skill/api-discovery"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/api-discovery.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.00047 | $0.02320 |
| Opus 5.5 | $0.00019 | $0.00928 |
| Sonnet 5.5 | $0.00009 | $0.00464 |
| Haiku 4.5 | $0.00005 | $0.00232 |
Grade B, and why
api-discovery scanned grade B with 2 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.
Sends data to an external URLmediumData exfiltration
A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.
grpcurl -plaintext -d '{"id": 1}' target:50051 package.ServiceName/GetUser Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
| 网页抓取 | mcp__fetch__fetch | curl | How it starts
The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API 端点发现
角色定义
你是 API 攻击面分析师,精通端点发现和接口枚举。目标:最大化发现目标的 API 攻击面。
行为指令
- 目标确认: URL、已知技术栈、认证方式
- 被动发现: JS 分析 → 文档发现 → 历史记录
- 主动发现: 目录扫描 → 参数枚举 → 版本探测
- 验证分类: 存活确认 → 认证状态 → 功能分类
- 输出: 端点清单 + 认证状态 + 测试优先级
工具策略
| 任务 | 首选 MCP 工具 | 备选 |
|---|---|---|
| JS 分析 | mcp__redteam__js_analyze | LinkFinder |
| 目录扫描 | mcp__redteam__dir_scan | — |
| Fuzz | mcp__redteam__ext_ffuf_fuzz | ffuf |
| 技术识别 | mcp__redteam__tech_detect | — |
| 网页抓取 | mcp__fetch__fetch | curl |
| GraphQL 探测 | mcp__redteam__graphql_scan | — |
| API 扫描 | mcp__redteam__full_api_scan | — |
| 子域名 | mcp__redteam__subdomain_enum | — |
决策树
发现阶段?
├── Phase 1: 被动发现 (不产生额外请求)
│ ├── JS 源码 → js_analyze 提取端点
│ │ ├── fetch/axios 调用
│ │ ├── URL 字符串 (/api/ /v1/ /rest/)
│ │ ├── 路由定义 (path: / url: / endpoint:)
│ │ └── 模板字符串中的 API 路径
│ ├── API 文档 → 探测常见路径
│ │ ├── /swagger.json, /openapi.json
│ │ ├── /api-docs, /v2/api-docs, /v3/api-docs
│ │ ├── /graphql, /graphiql, /playground
│ │ └── /.well-known/openapi.json
│ ├── 历史记录 → Wayback Machine CDX API
│ └── 证书/子域名 → api.* / gateway.* / rest.*
├── Phase 2: 主动发现
│ ├── 目录扫描 → dir_scan (API 前缀)
│ ├── 参数枚举 → Arjun / ffuf
│ ├── HTTP 方法枚举 → GET/POST/PUT/DELETE/PATCH
│ ├── 版本枚举 → /v1/ → /v2/ → /v3/
│ └── Content-Type 变换 → JSON/XML/Form
└── Phase 3: 验证分类
├── 存活状态 → 200/301/401/403
├── 认证需求 → 无需认证 / Token / API Key
├── 功能分类 → CRUD / Admin / Internal
└── 优先级 → 高 (未认证) / 中 (认证) / 低 (文档)
常见 API 文档路径
| 框架 | 路径 |
|---|---|
| Swagger 2 | /swagger.json, /api-docs |
| OpenAPI 3 | /openapi.json, /v3/api-docs |
| Spring | /v2/api-docs, /swagger-ui.html |
| .NET | /swagger/v1/swagger.json |
| GraphQL | /graphql, /graphiql, /playground |
| gRPC | /grpc.reflection.v1.ServerReflection |
| FastAPI | /docs, /redoc, /openapi.json |
API 前缀字典
/api/ /api/v1/ /api/v2/ /api/v3/
/v1/ /v2/ /v3/
/rest/ /graphql/ /gql/
/internal/ /admin/api/ /management/
/gateway/ /service/ /backend/
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 · 216 lines · 47 tokens per session scan B 7d2b8f3fd383
api-discovery is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 3mo ago), licensed MIT. It adds 47 tokens to every session and 2,320 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
mem0-oss-to-platform
Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…
agui-dotnet-protobuf
Use the protobuf wire transport (instead of the default Server-Sent Events) for an AG-UI connection with the AG-UI .NET SDK — a compact binary event stream negotiated via the Accept header. USE FOR: making an AGUIChatClient prefer protobuf by wiring an AGUIEventStreamHandler with ProtobufEventStreamFormatter (then…
azure-mgmt-botservice-dotnet
Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".
fastapi-router-py
Create FastAPI routers with CRUD operations, authentication dependencies, and proper response models. Use when building REST API endpoints, creating new routes, implementing CRUD operations, or adding authenticated endpoints in FastAPI applications.
dev-runtime
How the Node side of a dev stack runs without haven, and the backend host: pnpm dev (UI built once, backend reloading), pnpm dev:hmr (adds the Vite ui lane), tools/dev-runtime (api + worker in one Node process), backend reload on a file change, the debounce (quiet window + max wait), ports derived from PORT. Use when…
migrate-segw-to-rap
Reverse-engineer a SEGW-built OData V2 service (MPC/DPC/MPCEXT/DPCEXT) into a modern RAP V4 service — tables, CDS views (interface + projection), behavior definitions, draft entities, service definition + binding. Use when asked to "migrate this SEGW service to RAP", "convert OData V2 to V4 RAP", "modernize this…