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 watt-mind/factory --skill principle-type-system-disciplinegit clone --depth 1 https://github.com/watt-mind/factoryWrote 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/watt-mind/factory/principle-type-system-discipline)<a href="https://agentmods.dev/skills/watt-mind/factory/principle-type-system-discipline"><img src="https://agentmods.dev/badge/skills/watt-mind/factory/principle-type-system-discipline/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/watt-mind/factory/principle-type-system-discipline"><img src="https://agentmods.dev/badge/skills/watt-mind/factory/principle-type-system-discipline.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.00033 | $0.00165 |
| Opus 5.5 | $0.00013 | $0.00066 |
| Sonnet 5.5 | $0.00007 | $0.00033 |
| Haiku 4.5 | $0.00003 | $0.00016 |
Grade A, and why
principle-type-system-discipline 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 11d 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.
What it actually says
Type System Discipline
Use the type system (TypeScript, Pydantic/mypy, Django Ninja schemas, JSON Schema) to make illegal states unrepresentable at compile or parse time.
- Model states as discriminated unions / tagged variants instead of bags of optional booleans.
- Brand or wrap semantic primitives (IDs, currencies, tax-inclusive vs. net amounts, verified vs. candidate records) so they cannot be mixed silently.
- Exhaustively match variants so adding a new enum or status produces a type error everywhere it must be handled.
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.
- 11d ago Changed · -6 tokens per session 34836129eae9
- 14d ago First seen · 14 lines · 39 tokens per session scan A 8d72e717d232
principle-type-system-discipline is a skill published in the GitHub repository watt-mind/factory (24 stars, last pushed yesterday), licensed Apache-2.0. It adds 33 tokens to every session and 165 once invoked, about $0.0001 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-16.
principle-type-system-discipline compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| principle-type-system-disciplinewatt-mind/factory | Skill | 24 | yesterday | Apache-2.0 | A | 33 | Claude Code |
| goga-lang-dispqarium/goga | Skill | 46 | 8d ago | BSD-3-Clause | A | 9 | Claude Code, Codex |
| modern-js-runtimesjxoesneon/Ciel | Skill | 1 | 1mo ago | Apache-2.0 | A | 20 | Claude Code, Codex |
| python-developmentjxoesneon/Ciel | Skill | 1 | 1mo ago | Apache-2.0 | A | 17 | Claude Code, Codex |
| django-developmentjxoesneon/Ciel | Skill | 1 | 1mo ago | Apache-2.0 | B | 23 | Claude Code, Codex |
| build-error-resolverKacper0199/Opencode-Ultrathinker | Skill | 2 | 6mo ago | none | C | 50 | Claude Code, Codex |
| effect-developmentpingdotgg/t3code | Skill | 85k | today | MIT | A | 29 | Claude Code, Codex |