react-state-and-effects-discipline

react-state-and-effects-discipline is a skill for Codex from TheGoat395/Codex-Skills. It costs 16 tokens per session (141 once invoked), scanned A, original, MIT.

A guide for deciding when React components should use state, effects, references, reducers, shared context, or event handlers. React is a tool for building interactive web interfaces.

In plain words
What is it for?
Use it when cleaning up React components, fixing stale event behavior, simplifying complex UI state, or connecting components to the DOM, network, or outside data sources.
Why use it?
It helps prevent duplicated data, outdated values, unnecessary side effects, and UI code that is difficult to follow. It also clarifies how to handle browser elements, network updates, and external subscriptions.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it when cleaning up React components, fixing stale event behavior, simplifying complex UI state, or connecting components to the DOM, network, or outside data sources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thegoat395/codex-skills/react-state-and-effects-discipline
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.

Any agent
npx skills add TheGoat395/Codex-Skills --skill react-state-and-effects-discipline
Clone the repo
git clone --depth 1 https://github.com/TheGoat395/Codex-Skills

Made for: Codex.

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-state-and-effects-discipline

README.md
[![agentmods](https://agentmods.dev/badge/skills/thegoat395/codex-skills/react-state-and-effects-discipline/github.svg)](https://agentmods.dev/skills/thegoat395/codex-skills/react-state-and-effects-discipline)
Your own site
<a href="https://agentmods.dev/skills/thegoat395/codex-skills/react-state-and-effects-discipline"><img src="https://agentmods.dev/badge/skills/thegoat395/codex-skills/react-state-and-effects-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.

agentmods 80×15 button for react-state-and-effects-discipline

Your own site · 80×15
<a href="https://agentmods.dev/skills/thegoat395/codex-skills/react-state-and-effects-discipline"><img src="https://agentmods.dev/badge/skills/thegoat395/codex-skills/react-state-and-effects-discipline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 141 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00016 $0.00141
Opus 5 $0.00008 $0.00071
Sonnet 5 $0.00003 $0.00028
Haiku 4.5 $0.00002 $0.00014

Measured 4d ago against content hash 09c928848692, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

react-state-and-effects-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 4d 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.

skills/react-state-and-effects-discipline/SKILL.md · 17 lines

What it actually says

React State And Effects Discipline

For substantial web work, reuse the scoped web contract when available; it replaces duplicated policy here. Match the requested scope and existing decisions; a missing optional sibling does not block this local procedure.

Use This Skill

Use this skill to use react state and effects only where they belong.

Required Reference

Read references/react-state-and-effects-discipline-guide.md before making architectural or visible UI changes with this skill.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago Changed · -6 lines · -49 tokens per session 09c928848692
  2. 10d ago First seen · 23 lines · 65 tokens per session scan A 59c0ab80421b

Subscribe to this mod's changes

react-state-and-effects-discipline is a skill published in the GitHub repository TheGoat395/Codex-Skills (122 stars, last pushed yesterday), licensed MIT. It adds 16 tokens to every session and 141 once invoked, about $0.0001 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 skills, from other repositories

design-pipeline

A build-and-test workflow for turning Figma designs into shadcn/ui components, a reusable set of interface components for React-based projects. It checks the result in a real browser at three screen sizes and runs accessibility checks.

sodam-ai/SoDam-Design-Kit · 77 tokens

product-motion-design

Design, implement, audit, or repair purposeful motion for React and web interfaces, including GSAP timelines, scroll choreography, micro-interactions, and optional Three.js scenes, with cleanup, responsive behavior, reduced-motion support, and browser verification.

divyanshu-iitian/agent-website-design-skills · 52 tokens

frontend-engineer

!cat skills/shared/protocols/ux-protocol.md 2>/dev/null || true !cat skills/shared/protocols/input-validation.md 2>/dev/null || true !cat skills/shared/protocols/tool-efficiency.md 2>/dev/null || true !cat .production-grade.yaml 2>/dev/null || echo "No config — using defaults" !cat .forgewright/codebase-context.md…

buiphucminhtam/forgewright · 55 tokens

frontend-code-review

Review React, Next.js App Router, TypeScript, Tailwind CSS, shadcn/ui, TanStack Query, and frontend UI code. Use when reviewing a PR, branch, diff, page, component, hook, Server Action, route handler, or API client; debugging frontend behavior; assessing production readiness; or checking runtime bugs, client/server…

DNM03/frontend-code-review · 102 tokens

motion-foundations

Motion tokens, spring presets, performance rules, device adaptation, accessibility enforcement, and SSR safety for React / Next.js using motion/react. Foundation layer — all other motion skills depend on this. Use when setting up motion tokens, spring presets, reduced-motion handling, or SSR-safe animation in React or…

gongyijie85/dsh-ecc · 66 tokens

motion-patterns

Production-ready animation patterns for React / Next.js — button, modal, toast, stagger, page transitions, exit animations, scroll, and layout — built on motion-foundations tokens and springs. Use when animating a specific UI element in React or Next.js — button, modal, toast, stagger, page transition, or scroll.

userInner/SKILLS · 70 tokens