no-use-effect

no-use-effect is a skill for Claude Code from prowler-cloud/prowler. It costs 90 tokens per session (2,146 once invoked), scanned A, original, Apache-2.0.

A React coding rule that avoids calling useEffect directly in components and instead uses derived values, event handlers, server features, or named hooks when synchronization is genuinely needed. React is a library for building web interfaces.

In plain words
What is it for?
Use it when writing or reviewing React components and hooks in the Prowler interface, especially for data loading, state changes, and external subscriptions.
Why use it?
It prevents unnecessary client-side effects and follows this project's React 19 and compiler rules, which also reject several manual optimization patterns.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when writing or reviewing React components and hooks in the Prowler interface, especially for data loading, state changes, and external subscriptions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/prowler-cloud/prowler/no-use-effect
About the project

Prowler is an open-source cloud security platform that checks cloud environments for security issues and compliance with standards such as CIS, NIST, and GDPR. Security teams use it to assess configurations, prioritize findings, produce reports, and guide remediation.

prowler-cloud/prowler · 15,347 stars · on GitHub · prowler.com

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 prowler-cloud/prowler --skill no-use-effect
Clone the repo
git clone --depth 1 https://github.com/prowler-cloud/prowler

Made for: Claude Code.

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 no-use-effect

README.md
[![agentmods](https://agentmods.dev/badge/skills/prowler-cloud/prowler/no-use-effect/github.svg)](https://agentmods.dev/skills/prowler-cloud/prowler/no-use-effect)
Your own site
<a href="https://agentmods.dev/skills/prowler-cloud/prowler/no-use-effect"><img src="https://agentmods.dev/badge/skills/prowler-cloud/prowler/no-use-effect/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 no-use-effect

Your own site · 80×15
<a href="https://agentmods.dev/skills/prowler-cloud/prowler/no-use-effect"><img src="https://agentmods.dev/badge/skills/prowler-cloud/prowler/no-use-effect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,146 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.
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.00090 $0.02146
Opus 5.5 $0.00036 $0.00858
Sonnet 5.5 $0.00018 $0.00429
Haiku 4.5 $0.00009 $0.00215

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

Security

Grade A, and why

no-use-effect 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 13d 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/no-use-effect/SKILL.md · 222 lines

How it starts

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

No Direct useEffect

Components never call useEffect directly. Most effects should not exist: the value can be derived in render, the work belongs in an event handler, or the data comes from the server. For the rare real sync with an external system, use a named hook.

Prowler UI Context

  • React 19.2 with the React Compiler (reactCompiler: true in ui/next.config.js). Never write useMemo, useCallback or memo; lint rejects them.
  • Data comes from Server Components and server actions. There is no client data-fetching library: pass data (or a promise unwrapped with use()) from the server instead of fetching in an effect.
  • useMountEffect lives in ui/hooks/use-mount-effect.ts. useEffectEvent is stable (see ui/components/registry/use-registry-refresh.ts). useSyncExternalStore example: ui/hooks/use-media-query.ts.
  • Lint enforces part of this (react-hooks/set-state-in-effect, react-hooks/refs, react-hooks/purity). Existing violations are frozen in ui/eslint-suppressions.json; do not add new entries.
  • Effects that sync with a real external system are fine inside a named hook: EventSource, matchMedia, ResizeObserver, timers, third-party widgets. Moving avoidable state sync into a custom hook is not a fix.
// ui/hooks/use-mount-effect.ts
export function useMountEffect(effect: EffectCallback) {
  // eslint-disable-next-line react-hooks/exhaustive-deps
  useEffect(effect, []);
}

The 6 Rules

Rule 1: Derive state, do not sync it

If it can be calculated from existing state or props, compute it in render. The compiler caches it.

// BAD: two renders, and the copy drifts
const [visible, setVisible] = useState([]);
useEffect(() => {
  setVisible(findings.filter((f) => !f.muted));
}, [findings]);

// GOOD
const visible = findings.filter((f) => !f.muted);

State that refers to server data stores only the user's intent (an id) and derives the effective value in render.

Smell test: useEffect(() => setX(f(y)), [y]), or state that only mirrors props, search params or query results.

Read the full file on GitHub · 222 lines

Files

What ships with it

1 file 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. 13d ago First seen · 222 lines · 90 tokens per session scan A a9b1666aea2c

Subscribe to this mod's changes

no-use-effect is a skill published in the GitHub repository prowler-cloud/prowler (15,347 stars, last pushed 3d ago), licensed Apache-2.0. It adds 90 tokens to every session and 2,146 once invoked, about $0.0004 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-17.

Related

no-use-effect compared with skills from other repositories

no-use-effect next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
no-use-effectprowler-cloud/prowlerSkill15k3d agoApache-2.0A90Claude Code
performing-aws-account-enumeration-with-scout-suitexalgorix/xalgorixSkill1.5kyesterdayApache-2.0A39Claude Code, Codex
shannonKeygraphHQ/shannonSkill52k4d agoAGPL-3.0A51Claude Code
ponytail-sec-auditandypitcher/ponytail-secSkill62todayMITA73Claude Code
ponytail-secandypitcher/ponytail-secSkill62todayMITA73Claude Code
ponytail-sec-triageandypitcher/ponytail-secSkill62todayMITA60Claude Code
cis-aws-database-3.11CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A17Claude Code, Codex