react-crusade

react-crusade is a command for coding agents from btachinardi/church. It costs 34 tokens per session (6,019 once invoked), scanned A, original, MIT.

A command that reviews a React frontend’s component structure, hooks, state handling, and side effects. It can focus on selected areas or all of them.

In plain words
What is it for?
Use it to audit a React project and, with the write option, refactor the components it finds.
Why use it?
It helps find inconsistent component boundaries, poorly used hooks, state problems, and unnecessary or unsafe side effects across a codebase.

Command

Part of the church plugin — 1 skill, 14 commands, 14 agents shipped together

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 commands/btachinardi/church/react-crusade
Clone the repo
git clone --depth 1 https://github.com/btachinardi/church

Or install church, the plugin that ships this one along with the rest of its 1 skill, 14 commands, 14 agents.

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

agentmods badge for react-crusade

README.md
[![agentmods](https://agentmods.dev/badge/commands/btachinardi/church/react-crusade.svg)](https://agentmods.dev/commands/btachinardi/church/react-crusade)
Your own site
<a href="https://agentmods.dev/commands/btachinardi/church/react-crusade"><img src="https://agentmods.dev/badge/commands/btachinardi/church/react-crusade.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,019 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.00034 $0.06019
Opus 5 $0.00017 $0.03010
Sonnet 5 $0.00007 $0.01204
Haiku 4.5 $0.00003 $0.00602

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

Security

Grade A, and why

react-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 5d 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.

commands/react-crusade.md · 745 lines

How it starts

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

React Crusade: The War Against Impure Components

Deploy parallel React Purist agents to audit every component, every hook, every effect. No tier violation escapes. No rogue effect survives. No state management sin remains hidden.

War Cry

╔════════════════════════════════════════════════════════════════╗
║              THE REACT PURISTS DESCEND                         ║
║                                                                ║
║  {N} Squads Deployed. Every Component Will Be Classified.     ║
║  Every Effect Will Be CLEANSED.                                ║
║  The Immutable State Demands PURITY.                           ║
╚════════════════════════════════════════════════════════════════╝

Command Arguments

/react-crusade [path] [--scope architecture|effects|state|all] [--write]
Argument Default Description
path . Root path to audit (absolute path required for agents)
--scope all Focus area: architecture (tier compliance), effects (hook discipline), state (state management), all (complete audit)
--write false If present, squads will REFACTOR components, not just report

Examples

# Full frontend audit
/react-crusade

# Audit component architecture only
/react-crusade /workspace/apps/web/src --scope architecture

# Audit and FIX effect violations
/react-crusade /workspace/apps/web/src/domains --scope effects --write

# Audit specific domain's frontend
/react-crusade /workspace/apps/web/src/domains/orders

# Audit state management patterns
/react-crusade /workspace/apps/web/src --scope state

Battle Plan: The Five Phases

Phase 1: Reconnaissance (Intelligence Gathering)

Mission: Map all frontend components and classify the battlefield.

Actions:

  1. Determine absolute path: Convert user-provided path to absolute
  2. Discover component files: Glob for all *.tsx files (excluding tests, stories, index files)
  3. Count components: Total component files, hooks, stores, providers
  4. Scan imports: Extract import patterns to pre-classify tiers
  5. Identify frameworks: Detect query library (TanStack Query, SWR, etc.), state library (Zustand, Redux, etc.)
  6. Scan for red flags: Quick grep for useEffect.*fetch, eslint-disable.*exhaustive-deps, excessive useState

Read the full file on GitHub · 745 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. 5d ago First seen · 745 lines · 0 tokens per session scan A 8782685594bf

Subscribe to this mod's changes

react-crusade is a command published in the GitHub repository btachinardi/church (58 stars, last pushed 5mo ago), licensed MIT. It adds 34 tokens to every session and 6,019 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.