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 rockyflux/yq-workflow --skill yq-api-designgit clone --depth 1 https://github.com/rockyflux/yq-workflowWrote 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/rockyflux/yq-workflow/yq-api-design)<a href="https://agentmods.dev/skills/rockyflux/yq-workflow/yq-api-design"><img src="https://agentmods.dev/badge/skills/rockyflux/yq-workflow/yq-api-design/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/rockyflux/yq-workflow/yq-api-design"><img src="https://agentmods.dev/badge/skills/rockyflux/yq-workflow/yq-api-design.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.00034 | $0.00712 |
| Opus 5.5 | $0.00014 | $0.00285 |
| Sonnet 5.5 | $0.00007 | $0.00142 |
| Haiku 4.5 | $0.00003 | $0.00071 |
Grade A, and why
yq-api-design 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 3mo 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.
What it actually says
YQ API Design
Overview
定义前后端或服务间的接口契约,覆盖资源模型、字段语义、错误约定、兼容策略和集成边界。
Core principle: 先稳定契约,再推进实现。
When to Use
- 需要设计 REST、RPC、事件或内部服务接口
- 需要统一请求响应结构、错误码、幂等或分页规则
- 前后端、多服务或外部系统之间需要明确责任边界
- 你担心后续实现会因接口含糊而频繁返工
Route Elsewhere
- 需求目标还没定:转
yq-req-analysis - 主要是系统层面的模块与流程:转
yq-system-design - 主要是数据库建模:转
yq-db-design - 只是在解释现有接口代码:转
yq-code-explain
Process
- 明确调用方、被调方和业务动作。
- 定义输入输出模型、校验规则和字段含义。
- 设计错误语义、状态码、幂等和兼容策略。
- 说明鉴权、限流、审计和可观测要求。
- 标注变更风险、版本策略和下游影响。
Output
# API Design
## Scope
## Consumers and Providers
## Endpoints or Contracts
## Request and Response Schema
## Validation and Error Model
## Auth / Rate Limit / Audit Notes
## Compatibility and Versioning
## Recommended Next Step
Related Skills
- 上游通常来自
yq-system-design - 下游通常接
yq-code-gen、yq-test-gen - 评估安全面时接
yq-security-scan
Recommended Next Step
- 默认交给
yq-code-gen,把契约、错误模型和兼容策略落进实现 - 如果要先保护接口行为或契约边界,可先接
yq-test-gen - 如果接口涉及认证、授权或输入暴露面,补
yq-security-scan
Common Mistakes
- 只有字段,没有行为语义
- 错误模型和兼容策略缺失
- 把内部实现细节暴露成契约
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.
- 3mo ago First seen · 92 lines · 34 tokens per session scan A 979a033b84fb
yq-api-design is a skill published in the GitHub repository rockyflux/yq-workflow (2 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 712 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-09-03.
yq-api-design compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| yq-api-designrockyflux/yq-workflow | Skill | 2 | 1mo ago | MIT | A | 34 | Claude Code, Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 70k | 6d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 92 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | today | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.3k | today | MIT | A | 46 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 707 | yesterday | MIT | A | 105 | Claude Code, Codex |
| migrate-segw-to-raparc-mcp/arc-1 | Skill | 282 | yesterday | MIT | A | 106 | Claude Code |