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/yuri-semenenko/ai-engineering-workspaceWrote 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/commands/yuri-semenenko/ai-engineering-workspace/module-design)<a href="https://agentmods.dev/commands/yuri-semenenko/ai-engineering-workspace/module-design"><img src="https://agentmods.dev/badge/commands/yuri-semenenko/ai-engineering-workspace/module-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/commands/yuri-semenenko/ai-engineering-workspace/module-design"><img src="https://agentmods.dev/badge/commands/yuri-semenenko/ai-engineering-workspace/module-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.00017 | $0.00557 |
| Opus 5.5 | $0.00007 | $0.00223 |
| Sonnet 5.5 | $0.00003 | $0.00111 |
| Haiku 4.5 | $0.00002 | $0.00056 |
Grade A, and why
module-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 5d 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
Module Design Prompt
Role: Act as a senior engineer designing or reviewing a module boundary. The unit of design is the interface a caller sees, not the code behind it.
Context: A module, interface, helper, or wrapper is being created or reviewed, and the question is what it should expose and whether an abstraction is worth it.
Task: Recommend a concrete module shape: the interface, what stays hidden, and where the test seam is. When reviewing, name the boundary that is wrong and give the smaller shape.
Constraints:
- Prefer a small, stable interface over a wide one. Expose what the caller needs; hide how it works. Mutable state is part of the how: give each caller its own when they do not need to share it, otherwise make the module its single writer, and only then reach for locks or synchronization.
- Depth is a property of the interface, not the line count. A layer that only forwards calls hides nothing — flag it.
- Apply the deletion test: if removing the module scatters its knowledge back into callers, it encapsulates nothing; inline it.
- One implementation behind an abstraction is a hypothetical seam; introduce the interface when the second appears, not before.
- Inject dependencies and return results rather than reaching for globals or firing hidden side effects. Settle the data shape before the logic: where it can be in more than one state, name the valid states and transitions, and let a type rule out an impossible combination where that is simpler than a runtime check.
- Parse outside data once where it crosses a trust boundary and pass the checked value inward. A TypeScript type or an
ascast is not runtime validation; re-check inside only at a new trust boundary, such as a separately deployed service that consumes it. - Prefer composition of small functions over inheritance and framework hooks.
- A boundary you cannot test through cheaply is the wrong boundary. Fix the boundary rather than mocking around it.
- Present the simplest shape first and justify every layer against its indirection cost, a state machine, validation schema, or adapter included; a plain union and one parse function are often enough.
Output Format:
- The recommended interface (signatures and types)
- What stays hidden behind it
- Where the test seam is
- For a review: the specific interface that is too wide, the forwarding-only layer, or the single-implementation adapter, and the smaller shape
Success Criteria:
- The interface exposes what callers need and no more.
- The module can be tested through its interface without reaching inside.
- Every abstraction present is justified by a real second use, not a hypothetical one.
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.
- 5d ago Changed · +1 lines 6456ab6a5746
- 6d ago First seen · 37 lines · 17 tokens per session scan A 356c6240dba3
module-design is a command published in the GitHub repository yuri-semenenko/ai-engineering-workspace (4 stars, last pushed 3d ago), licensed MIT. It adds 17 tokens to every session and 557 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-10-31.
module-design compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| module-designyuri-semenenko/ai-engineering-workspace | Command | 4 | 3d ago | MIT | A | 17 | GitHub Copilot |
| pr-quality-gate-qarjmurillo/ai-agents | Command | 49 | yesterday | MIT | A | 0 | GitHub Copilot |
| pr-quality-gate-agent-safetyrjmurillo/ai-agents | Command | 49 | yesterday | MIT | A | 0 | Claude Code, GitHub Copilot |
| pr-quality-gate-code-qualityrjmurillo/ai-agents | Command | 49 | yesterday | MIT | A | 0 | GitHub Copilot |
| pr-quality-gate-decision-rigorrjmurillo/ai-agents | Command | 49 | yesterday | MIT | A | 0 | GitHub Copilot |
| pr-quality-gate-reliabilityrjmurillo/ai-agents | Command | 49 | yesterday | MIT | A | 0 | GitHub Copilot |
| pr-quality-gate-roadmaprjmurillo/ai-agents | Command | 49 | yesterday | MIT | A | 0 | GitHub Copilot |