type-design-analyzer

A review specialist for the design of types in source code. Types describe what data can contain and can enforce rules about valid data and how it is used.

In plain words
What is it for?
Use it when adding new data types or reviewing a pull request that introduces several types, especially to assess their rules, encapsulation, and maintainability.
Why use it?
Poorly designed types can allow invalid states, expose too much internal detail, or make code harder to change. This provides an advisory review without modifying the code.

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/the01geek/prflow/type-design-analyzer
Clone the repo
git clone --depth 1 https://github.com/The01Geek/prflow
Per session 126 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,386 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.00126 $0.01386
Opus 5 $0.00063 $0.00693
Sonnet 5 $0.00025 $0.00277
Haiku 4.5 $0.00013 $0.00139

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

Security

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

agents/type-design-analyzer.md · 134 lines

How it starts

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

You are a type design expert with extensive experience in large-scale software architecture. Your specialty is analyzing and improving type designs to ensure they have strong, clearly expressed, and well-encapsulated invariants.

When to invoke

Two representative scenarios:

  • New type introduced. The user has just authored a new type (e.g. a domain model handling authentication and permissions) and wants assurance that its invariants and encapsulation are well-designed. Review the type and rate it on the four axes.
  • PR adding several new types. The user is preparing a PR that introduces multiple new data model types. Review every newly-added type in the diff for design quality.

Working-tree policy (read-only, advisory)

You are advisory only: never modify working-tree source files, the index, HEAD, or branch state. Your job is to report findings, not to apply them. If verifying a finding would benefit from a mutation or half-revert check (delete a pinned line, flip a condition, then run the narrowest test target that covers that guard to confirm it goes RED — one failing assertion is the whole of the evidence, so never launch the project's full test suite for it), perform any mutation or half-revert verification on a temporary copy made with mktemp, never in place. A dropped in-place restore corrupts the working tree the orchestrator is concurrently editing.

Command-shape discipline (cloud runs)

On a cloud run your shell commands pass through a permission layer that silently refuses any command outside its allowlist: you get back This command requires approval, nothing executes, and no reason is given. Keep every command to a permitted shape:

Read the full file on GitHub · 134 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 · 134 lines · 126 tokens per session scan A b2f64770a377

Subscribe to this mod's changes

type-design-analyzer is an agent published in the GitHub repository The01Geek/prflow (115 stars, last pushed 3d ago), licensed MIT. It adds 126 tokens to every session and 1,386 once invoked, about $0.0006 per session on Opus 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-08-30.

Related

Other agents, from other repositories

session-analyzer

Extract tool usage patterns, rework indicators, and context snippets from session JSONL files.

jongwony/epistemic-protocols · 22 tokens

ba-designer

Use when execute-round skill's Phase 2 (BA design pass) needs to produce a complete BA design doc for the current round. Generates D-1..D-N decisions, reference scan triplet, file-level decomposition, and test plan.

Arch1eSUN/Arcgentic · 53 tokens

challenger

Frontier-grade adversarial evaluator for harness assets, papers, designs, and code. Goes beyond fixed-angle critique — adapts attack vectors to artifact type, enforces evidence citation on every attack, models its own information asymmetry (Sandboxed Adversary), and tracks convergence across rounds. Returns structured…

chrono-meta/forge-harness · 102 tokens

expert

Frontier-grade domain-authority evaluator. Checks an artifact's technical accuracy, completeness, and state-of-the-art currency against EXTERNAL authoritative sources — fetched from the open web, since a general model must ground domain claims rather than assert them. Top tier of the user-mastery spectrum (beginner →…

chrono-meta/forge-harness · 114 tokens

beginner

Frontier-grade first-contact standpoint evaluator. Simulates a zero-context user meeting an artifact for the first time — attempts the task cold rather than skimming, then reports exactly where comprehension or execution breaks. Lowest tier of the user-mastery spectrum (beginner → main-player → expert). Constructive…

chrono-meta/forge-harness · 117 tokens

preflight

Pre-commit quality gate — catches 'almost right' code. Checks logic, error handling, regressions, completeness, plan compliance. BLOCK verdict stops commit.

Rune-kit/rune · 35 tokens