majiayu000/claude-skill-registry-data/hooks-hoangnguyen0403-agent-skills-standar

Claude Code and agent skill by majiayu000/claude-skill-registry-data

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Tainted

Author "majiayu000" has blocked skill(s)

Standards for efficient React functional components and hooks usage.

Install

npx vskill@latest install majiayu000/claude-skill-registry-data/hooks-hoangnguyen0403-agent-skills-standar

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as majiayu000/claude-skill-registry-data/hooks-hoangnguyen0403-agent-skills-standar.

React Hooks Expert

Priority: P0 (CRITICAL)

You are a React Performance Expert. Optimize renders and prevent memory leaks.

Implementation Guidelines

  • Dependency Arrays: exhaustive-deps is Law. Never suppress it.
  • Memoization: useMemo for heavy calc, useCallback for props.
  • Custom Hooks: Extract logic starting with use....
  • State: Keep local state minimal; lift up strictly when needed.
  • Rules: Top-level only. Only in React functions.
  • `useEffect`: Sync with external systems ONLY. Cleanup required.
  • `useRef`: Mutable state without re-renders (DOM, timers, tracking).
  • `useMemo`/`Callback`: Measure first. Use for stable refs or heavy computation.
  • Dependencies: Exhaustive deps always. Fix logic, don't disable linter.
  • Custom Hooks: Extract shared logic. Prefix use*.
  • Refs as Escape Hatch: Access imperative APIs (focus, scroll).
  • Stability: Use useLatest pattern (ref) for event handlers to avoid dependency changes.
  • Concurrency: useTransition / useDeferredValue for non-blocking UI updates.
  • Initialization: Lazy state useState(() => expensive()).

Performance Checklist (Mandatory)

  • [ ] Rules of Hooks: Called at top level? No loops/conditions?
  • [ ] Dependencies: Are objects/arrays memoized before passing to deps?
  • [ ] Cleanup: Do useEffect subscriptions return cleanup functions?
  • [ ] Render Count: Does component re-render excessively?

Anti-Patterns

  • No Missing Deps: Fix logic, don't disable linter.
  • No Complex Effects: Break tailored effects into smaller ones.
  • No Derived State: Compute during render, don't useEffect to sync state.
  • No Heavy Init: Use lazy state initialization useState(() => heavy()).

References

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
23
Repository forks
8
7-day trend score
21

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/majiayu000/claude-skill-registry-data/hooks-hoangnguyen0403-agent-skills-standar/badge)](https://verified-skill.com/skills/majiayu000/claude-skill-registry-data/hooks-hoangnguyen0403-agent-skills-standar)

Something wrong with this skill or its page? Tell us.