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 agentmods add skills/waynesutton/markdown-site/react-effect-decisionnpx skills add waynesutton/markdown-site --skill react-effect-decisiongit clone --depth 1 https://github.com/waynesutton/markdown-siteWhat 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 | $0.00063 | $0.01679 |
| Opus 5 | $0.00032 | $0.00839 |
| Sonnet 5 | $0.00013 | $0.00336 |
| Haiku 4.5 | $0.00006 | $0.00168 |
Grade A, and why
react-effect-decision scanned grade A with 1 finding 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
fetch(url) How it starts
The opening of the file, as written. The whole thing — 242 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React effect decision
Default rule for this project: do not reach for direct useEffect first.
Most effect usage in React code is a sign that the component is syncing state that should be derived during render, routing an event through state, or resetting local state in a way React already models better.
This skill merges:
- React's official decision tree from "You Might Not Need an Effect"
- The project's stricter no direct
useEffectpreference
Start here
Before writing any effect, ask these in order:
- Can I calculate this from props or state during render
- Is this triggered by a user action and better placed in the event handler
- Am I trying to reset component state when identity changed and should use
key - Is this an expensive pure calculation that should use
useMemo - Is this an external subscription that should use
useSyncExternalStoreor a focused custom hook - Is this real external synchronization that must happen on mount or on dependency changes
If you answer yes to any of 1 through 5, do not write a direct useEffect.
Project stance
React allows effects for real external synchronization. This project is stricter:
- Avoid direct
useEffectin components whenever a clearer pattern exists - Prefer derived values, event handlers,
keyremounts, memoization, query libraries, Convex hooks, and focused custom hooks - If mount only external setup is truly needed, use an explicit
useMountEffectwrapper instead of sprinkling rawuseEffectthrough feature code
Example wrapper:
import { useEffect } from "react";
export function useMountEffect(effect: () => void | (() => void)) {
useEffect(effect, []);
}
Use that only for one time external setup like DOM focus, third party widgets, or browser API listeners that belong to the component lifecycle.
Decision guide
1. Derived state belongs in render
Bad smell:
useEffect(() => setX(deriveFromY(y)), [y])- State that only mirrors props or other state
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.
- 2d ago First seen · 242 lines · 63 tokens per session scan A 2578847aaa75
react-effect-decision is a skill published in the GitHub repository waynesutton/markdown-site (631 stars, last pushed 3mo ago), licensed MIT. It adds 63 tokens to every session and 1,679 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
shieldcn-badges
Create polished shieldcn README badges, badge groups, charts, headers, sponsors grids, and full README hero sections. Use when a user wants shadcn/ui-styled badges, Shields.io replacement, npm/GitHub/CI/status badges, download charts, README header banners, contributor/sponsor images, or README Studio guidance.…
infisical-sync-skill
Expert knowledge for the Infisical Sync Hand — Infisical API reference, vault operations, error patterns, security guidance.
soul-grader
Use when grading, reviewing, rewriting, or approving a Hermes Agent SOUL.md. Uses the SOUL.md field-guide research artifacts as the only normative source for what makes a good SOUL.md.
anakinscraper
Scrape any website into clean markdown or structured JSON. Anti-detect browser, smart proxy rotation, AI-powered data extraction.
mb-ads
Create and review ads, and prepare provider-safe launch plans/checks. Flexible entry points: full pipeline (copy + images), copy only, images only, creative variations (hook library), video scripts, long-form video ads/VSL-style paid creative, video repurpose, compliance review, launch-plan, instrumentation, check, or…
mb-setup
Bootstrap a new business folder with Main Branch structure, or migrate an existing single-offer folder to multi-offer. Use when: (1) New user needs Claude Code environment configured (2) User says "set up", "get started", "initialize", "bootstrap", "create my repo", "new business" (3) User is new to Main Branch and…