Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/btachinardi/churchnpx agentmods add commands/btachinardi/church/type-crusadeWrote 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/commands/btachinardi/church/type-crusade)<a href="https://agentmods.dev/commands/btachinardi/church/type-crusade"><img src="https://agentmods.dev/badge/commands/btachinardi/church/type-crusade/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/commands/btachinardi/church/type-crusade"><img src="https://agentmods.dev/badge/commands/btachinardi/church/type-crusade.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.03754 |
| Opus 5 | $0.00016 | $0.01877 |
| Sonnet 5 | $0.00007 | $0.00751 |
| Haiku 4.5 | $0.00003 | $0.00375 |
Grade A, and why
type-crusade 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 10d 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 — 320 lines — stays where its author put it; the contents beside it link to each section on GitHub.
The Great Type Crusade
The call has been made. The horns of type safety echo across the codebase. You feel an UNCONTROLLABLE, PRIMAL urge to unleash the TypeScript Purists.
You are the War General. Your soldiers are 4 specialist subagents — ts-any-purist, ts-assertion-purist, ts-guard-purist, and ts-schema-purist. Your enemy is any. Your battlefield is the codebase.
Argument Parsing
$ARGUMENTSmay contain a path/glob to scope the crusade--scope domain= onlysrc/domains/directories--scope app= onlyapps/directories--scope all(default) = the entire codebase
If no arguments, default to the current working directory with scope all.
Battle Plan
Phase 0: Pre-Flight — Ensure THE LORD Can Speak
Before ANY reconnaissance, verify the monorepo is configured so tsc --noEmit can find all modules:
-
Check workspace package paths in
tsconfig.json:- If using
moduleResolution: "bundler", workspace packages need explicit paths:
"paths": { "@myorg/shared-types": ["../../packages/shared-types/src/index.ts"], "@myorg/shared-types/*": ["../../packages/shared-types/src/*"] }- Without this, THE LORD will cry "Cannot find module" for workspace packages
- If using
-
Verify TypeScript version is 5.0+ for bundler resolution support
-
Run
tsc --noEmitBEFORE the crusade to establish baseline errors- If module resolution errors dominate (100+), FIX INFRASTRUCTURE FIRST
- The crusade fixes CODE sins, not CONFIG sins
Phase 1: Reconnaissance
Before you deploy your army, you must know the battlefield.
CRITICAL: Always exclude node_modules/, dist/, build/, .next/, coverage/ from searches. Use the Grep/Glob tools which respect .gitignore automatically.
- Use
Globto find ALL.tsand.tsxfiles in scope (automatically excludes gitignored dirs) - Use
Grepto get a body count of the sins:- Count of
anyoccurrences (pattern:\bany\bin .ts/.tsx files) - Count of
astype assertions (pattern:\bas\bin .ts/.tsx files) - Count of
@ts-ignoredirectives - Count of
@ts-expect-errordirectives
- Count of
- Present the GRIM STATISTICS to the user in dramatic fashion
- Group files by directory/domain into crusade squads (3-6 files per squad)
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.
- 10d ago First seen · 320 lines · 0 tokens per session scan A a6593974a853
type-crusade is a command published in the GitHub repository btachinardi/church (58 stars, last pushed 5mo ago), licensed MIT. It adds 33 tokens to every session and 3,754 once invoked, about $0.0002 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.
Other commands, from other repositories
types
Debug and fix TypeScript type errors with systematic analysis and expert guidance.
setup-code-intelligence
Check code-intelligence prerequisites (ripgrep + a language server) and print install hints.
typescript
Apply TypeScript best practices and coding standards.
types
Run bun run typecheck or tsc or npx tsc and fix all type errors.
format
Auto-format code and fix TypeScript issues.
02-config
MCP server that serves deterministic, enterprise-grade prompts for rewriting any Node.js project to production-quality TypeScript. Supports http-api, library, cli, worker, and mcp-server project types.