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 joao-aires/agent-skills-public --skill design-securitygit clone --depth 1 https://github.com/joao-aires/agent-skills-publicWrote 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/joao-aires/agent-skills-public/design-security)<a href="https://agentmods.dev/skills/joao-aires/agent-skills-public/design-security"><img src="https://agentmods.dev/badge/skills/joao-aires/agent-skills-public/design-security/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/joao-aires/agent-skills-public/design-security"><img src="https://agentmods.dev/badge/skills/joao-aires/agent-skills-public/design-security.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.00097 | $0.01269 |
| Opus 5.5 | $0.00039 | $0.00508 |
| Sonnet 5.5 | $0.00019 | $0.00254 |
| Haiku 4.5 | $0.00010 | $0.00127 |
Grade A, and why
design-security 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 today.
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 — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Design security into the boundary
Read activity system for scope and stopping point.
Security design decides where trust changes, who may do what, which data may move and what happens under abuse. It is not a checklist applied after the architecture is settled. Read the feature, architecture, accepted data flows and prior decisions. Name the valuable data or action, the actors, each entrypoint, and the boundary this change creates or moves.
Security in design owns the design constraints and routes security questions. This method owns the in-depth design. Scoped remediation belongs to harden, credential lifecycle and vulnerability operations to run-security-maintenance, and applicability and evidence to run-compliance-assessment. Compliance is not a security outcome, and a provider attestation describes the provider.
Trace what crosses the boundary
For each crossing, establish what is accepted, what validates it and what happens when validation fails. Follow input, identity, commands, model output and provider responses in both directions. A boundary that is named but has no enforcement point is a hope, not a control.
Read trust boundaries and data flow for the operation matrix, data lifecycle, delegation and exposure through logs, caches, exports, backups and providers.
Collect and retain deliberately. For each new personal-data field or telemetry event, record purpose, recipients, storage, retention and access. Include analytics, caches, exports, backups and model providers. Do not equate a deployment region with a legal basis; escalating an unresolved legal or product choice is part of the design.
Put authority where the effect happens
Derive identity and tenant context from verified authentication. Enforce authorization in trusted code that controls the actual resource, action and lifecycle state — not in the client, a prompt or a presentation layer. Cover HTTP/API calls, background jobs, exports, support tools and AI/MCP actions. Listing, search, related resources and bulk operations need the same semantics as a single read or write. Default-deny unknown operations, and treat client-supplied role, tenant and entitlement fields as input to verify.
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- today Changed · +7 lines · +26 tokens per session 90576b41f4df
- 11d ago Changed · -3 lines b0cfa1ecaa44
- 16d ago First seen · 66 lines · 71 tokens per session scan A 43fc9b1fb124
design-security is a skill published in the GitHub repository joao-aires/agent-skills-public (2 stars, last pushed yesterday), licensed MIT. It adds 97 tokens to every session and 1,269 once invoked, about $0.0004 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-11-20.
design-security compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| design-securityjoao-aires/agent-skills-public | Skill | 2 | yesterday | MIT | A | 97 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | yesterday | MIT | A | 200 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | yesterday | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |