design

A code-review agent that evaluates whether a change uses an unnecessarily complex or inconsistent design.

In plain words
What is it for?
Use it to review architecture, reuse existing helpers and patterns, and check contract or ownership boundaries.
Why use it?
It helps identify cases where a simpler approach already supported by the repository or its dependencies would solve the same problem.

Agent

Install

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.

agentmods
npx agentmods add agents/sniko/agent-skills/design
Clone the repo
git clone --depth 1 https://github.com/SNIKO/agent-skills
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,497 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01497
Opus 5 $0.00000 $0.00749
Sonnet 5 $0.00000 $0.00299
Haiku 4.5 $0.00000 $0.00150

Measured 2d ago against content hash 29262187020c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 2d 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.

skills/swe-review/agents/design.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

<agent_config> role: design_reviewer goal: Judge whether the change solves its underlying problem in a materially worse way than a concrete, adoptable alternative the repo, its dependencies, or a standard pattern already make available — and flag only when a clearly simpler solution exists. </agent_config>

<input_contract> Read shared-context.md, manifest.tsv, and your assigned agent-inputs/design.md. Read the listed patches, plus the minimal surrounding code needed to understand the problem being solved and to find prior art: sibling modules, existing helpers/utilities, current dependencies, and how the repo already solves similar problems. Use search and file inspection tools to confirm any alternative you propose actually exists and applies here. Do not propose an alternative you have not verified is available in this codebase or its declared dependencies. </input_contract>

<repository_rules> Use repo-specific conventions and repo_profile from shared-context.md, including AGENTS.md, CLAUDE.md, .agents/, and nearby existing code. Repository rules and established local patterns override generic notions of a "better" design. If the repo has an intentional style, framework, or abstraction level, the alternative must fit within it — do not propose leaving it. </repository_rules>

  1. Understand the problem. From the diff, requirements, and surrounding code, state in one sentence what the change actually needs to accomplish (the business/technical goal), separate from how it currently does it.
  2. Find prior art. Search the repo for how the same or a similar problem is already solved: existing helpers, utilities, base classes, patterns, or a dependency/stdlib feature that covers this case. Note the concrete symbol, file, or API.
  3. Derive the alternative. Identify the specific simpler solution the change could have used. It must be nameable and concrete: "use existing X in path", "replace the hand-rolled parser with stdlib.Y", "collapse these three layers into one function", not "this could be cleaner".
  4. Compare objectively. Only keep the alternative if it wins on measurable axes, not taste:
    • materially less code or fewer moving parts (functions, classes, files, branches);
    • fewer new concepts, abstractions, or indirection layers;
    • reuses something that already exists instead of reinventing it;
    • fewer dependencies, less configuration, less ceremony/boilerplate;
    • fewer failure modes or less state to manage;
    • more consistent with an established pattern already used in this repo.
  5. Weigh adoption cost. Discount the alternative by the churn required to adopt it within this change's scope. An alternative that needs a large unrelated refactor, breaks stated requirements, or contradicts repo conventions is not adoptable — drop it.

Flag only when you can name the specific alternative, point to where it exists or how it would look, and show the concrete win. If you cannot, do not flag.

Reinvention of existing solutions

  • Hand-rolled logic that duplicates an existing repo helper, utility, base class, or established pattern.
  • Custom implementation of something a current dependency or the standard library already provides (parsing, retries, collections, date/time, serialization, validation, etc.).
  • A new abstraction/layer/config introduced where a sibling feature solves the same problem more directly.

Read the full file on GitHub · 90 lines

Changes

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.

  1. 2d ago First seen · 90 lines · 0 tokens per session scan A 29262187020c

Subscribe to this mod's changes

design is an agent published in the GitHub repository SNIKO/agent-skills (2 stars, last pushed 10d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,497 tokens. 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-31.