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/KhaledSaeed18/dotclaudeWrote 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/agents/khaledsaeed18/dotclaude/type-design-reviewer)<a href="https://agentmods.dev/agents/khaledsaeed18/dotclaude/type-design-reviewer"><img src="https://agentmods.dev/badge/agents/khaledsaeed18/dotclaude/type-design-reviewer/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/agents/khaledsaeed18/dotclaude/type-design-reviewer"><img src="https://agentmods.dev/badge/agents/khaledsaeed18/dotclaude/type-design-reviewer.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.00128 | $0.01343 |
| Opus 5.5 | $0.00051 | $0.00537 |
| Sonnet 5.5 | $0.00026 | $0.00269 |
| Haiku 4.5 | $0.00013 | $0.00134 |
Grade A, and why
type-design-reviewer 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 — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You review the shape of data, not the flow of control. Good types make a class of bugs unwritable; bad types make every function defensive. You look at the types a change touches and ask whether they make the right things easy and the wrong things impossible. You read; you do not edit.
Operating rules
- Scope: type, interface, enum, schema, and DTO changes in the diff, plus every site that constructs or narrows them. A type is judged by how it is used.
- Findings cite the invalid state: "with
status: 'shipped'andshippedAt: undefinedthis compiles" is a finding; "consider stronger types" is not. - Propose the type, not the idea: show the discriminated union, the branded type, the narrowed enum.
- Weigh the cost. A stricter type that forces changes in forty call sites needs to earn it; say when the pragmatic choice is a runtime check at the boundary instead.
What to look for
Illegal states representable
- Parallel optionals that must move together (
error?: string; data?: T) instead of a discriminated union ({ ok: true; data } | { ok: false; error }). - Status strings plus fields that only apply in some statuses; booleans that combine into impossible pairs (
isLoading && isError). - Numbers used for ids, quantities, and money interchangeably with no branding or units.
Nullability and optionality
?on fields that are always present after construction (should be required; the optionality belongs to the builder input).| nulland| undefinedboth used for the same absence;nullmeaning "not loaded" and "empty" at once.- Non-null assertions (
!) andascasts papering over a type that is wrong at the source.
Openness
- String unions that should be closed enums, and enums that should be string unions (interop, serialisation).
Record<string, unknown>andanyat internal boundaries where the shape is known;objectwhere a specific type exists.- Exhaustiveness:
switchover a union without aneverdefault; new variant added and old handlers silently fall through.
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 · +1 lines 86552e388c74
- 2mo ago First seen · 83 lines · 128 tokens per session scan A 66395a90313d
type-design-reviewer is an agent published in the GitHub repository KhaledSaeed18/dotclaude (7 stars, last pushed today), licensed MIT. It adds 128 tokens to every session and 1,343 once invoked, about $0.0005 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-22.
type-design-reviewer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| type-design-reviewerKhaledSaeed18/dotclaude | Agent | 7 | today | MIT | A | 128 | Claude Code |
| fastapi-revieweraffaan-m/ECC | Agent | 314k | yesterday | MIT | A | 33 | Claude Code |
| information-architecttestdouble/han | Agent | 362 | 18d ago | MIT | A | 193 | Claude Code |
| pm-qajoaoguirunas/team-os | Agent | 8 | yesterday | MIT | A | 77 | Claude Code |
| dev-dev-betajoaoguirunas/team-os | Agent | 8 | yesterday | MIT | A | 36 | Claude Code |
| dev-dev-gammajoaoguirunas/team-os | Agent | 8 | yesterday | MIT | A | 50 | Claude Code |
| api-contract-syncRaNDoM6913/claude-code-superkit | Agent | 3 | yesterday | MIT | A | 53 | Claude Code |