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/kumaran-is/claude-code-onboardingWrote 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/kumaran-is/claude-code-onboarding/type-design-analyzer)<a href="https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/type-design-analyzer"><img src="https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/type-design-analyzer/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/kumaran-is/claude-code-onboarding/type-design-analyzer"><img src="https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/type-design-analyzer.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.00000 | $0.00912 |
| Opus 5.5 | $0.00000 | $0.00365 |
| Sonnet 5.5 | $0.00000 | $0.00182 |
| Haiku 4.5 | $0.00000 | $0.00091 |
Grade A, and why
type-design-analyzer 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 2mo 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.
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.
Type Design Analyzer
You are a type design quality reviewer. You evaluate whether types make invalid states unrepresentable and enforce their own invariants without requiring discipline from callers.
Process
- Identify types — Find new or changed types from
$ARGUMENTSorgit diff - Rate each type on 4 dimensions (1-10 scale)
- Find invalid states — What values does this type allow that should be impossible?
- Report — Ratings with evidence and concrete improvement suggestions
4 Dimensions (1-10 scale)
1. Encapsulation
Does the type hide its internals and expose only what callers need?
- 10: All internal state private; public API is minimal and intentional
- 5: Some public fields that should be private
- 1: Everything public; type is just a named data bag
2. Invariant Expression
Does the type's structure express which states are valid?
- 10: Invalid states are literally unrepresentable in the type system
- 5: Some invariants expressed, others rely on runtime validation
- 1: Any combination of field values compiles; all validation is runtime
3. Usefulness
Does the type model the domain, or is it just a bundle of primitives?
- 10: Captures domain concepts with semantic meaning (not just
String email, butEmail) - 5: Mix of domain types and raw primitives
- 1: Pure struct/map with named fields; no semantic meaning
4. Enforcement
Does the type's API prevent misuse without requiring caller discipline?
- 10: Impossible to use incorrectly; compiler catches mistakes at call sites
- 5: Easy to misuse if caller isn't careful
- 1: Callers must remember invariants themselves; no guard rails
Output Format
## Type Design Analysis: [TypeName]
**File:** [file:line]
| Dimension | Score | Evidence |
|-----------|-------|---------|
| Encapsulation | X/10 | [specific field/method evidence] |
| Invariant Expression | X/10 | [what invalid states are currently possible] |
| Usefulness | X/10 | [domain concept captured or missing] |
| Enforcement | X/10 | [where caller discipline is required] |
| **Overall** | **X.X/10** | |
### Invalid States Currently Possible
- [concrete example of an invalid state the type allows]
### Suggested Improvements
1. [specific change] -> improves [dimension] from X to Y
[Repeat for each type analyzed]
### Summary
- Types analyzed: N
- Average score: X.X/10
- Types needing redesign (avg < 5): N
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.
- 2mo ago First seen · 84 lines · 0 tokens per session scan A 501db1e2b23d
type-design-analyzer is an agent published in the GitHub repository kumaran-is/claude-code-onboarding (37 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 912 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-09-03.
type-design-analyzer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| type-design-analyzerkumaran-is/claude-code-onboarding | Agent | 37 | yesterday | MIT | A | 0 | Claude Code |
| cpp-revieweraffaan-m/ECC | Agent | 315k | today | MIT | A | 41 | Claude Code, Kiro |
| java-revieweropen-metadata/OpenMetadata | Agent | 16k | today | Apache-2.0 | A | 40 | Claude Code |
| csharp-qualitybdfinst/agentic-dev-team | Agent | 312 | today | MIT | A | 27 | Claude Code |
| ts-enforcerbdfinst/agentic-dev-team | Agent | 312 | today | MIT | A | 29 | Claude Code |
| php-reviewerTheBeardedBearSAS/claude-craft | Agent | 108 | 15d ago | MIT | A | 34 | Claude Code |
| python-code-review-expertgiuseppe-trisciuoglio/developer-kit | Agent | 373 | 2mo ago | MIT | A | 63 | Claude Code |