بنقرة واحدة
state-audit
Audits React state management - finds prop drilling, redundant state, and suggests improvements
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Audits React state management - finds prop drilling, redundant state, and suggests improvements
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Analyzes the current session's token usage, pinpoints where tokens were wasted, and produces concrete optimization actions
Generates API documentation from route definitions (Express, Fastify, Hono, etc.)
Adds caching to expensive operations - Redis, in-memory, HTTP cache headers
Staged değişiklikleri analiz edip Conventional Commits formatında commit mesajı oluşturur
Reports cyclomatic complexity hotspots and refactoring suggestions
Finds unused functions, variables, exports, and dependencies across the codebase
| name | state-audit |
| description | Audits React state management - finds prop drilling, redundant state, and suggests improvements |
| argument-hint | ["directory"] |
| user-invocable | true |
| allowed-tools | Read Grep Glob |
| effort | medium |
Target: $1 (or src/ if not specified)
cat package.json | grep -E '"zustand"|"jotai"|"recoil"|"redux"|"@tanstack/query"|"swr"'
grep -rn "useState\|useReducer\|createStore\|create(" ${1:-src/} --include="*.tsx" | wc -l
Look for props passed more than 2 levels deep without being used in intermediate components:
grep -rn "Props {" src/ --include="*.tsx" | head -20
Read component trees to identify drilling patterns.
const [fullName, setFullName] when firstName and lastName existuseState when a query library is availableuseMemoFor each issue, recommend the fix:
Report severity and effort for each item.