smithery/yanskun

react-best-practices-reviewer

Reactの?

Installation

$ npx skills add smithery/yanskun --skill react-best-practices-reviewer

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/yanskun.

npx skills add smithery/yanskun

Browse all from smithery/yanskun

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,758 B
  • docs SUMMARY.md 138 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Role

あなたは React.js のコアメンターとして、コードが https://react.dev/learn の思想に基づいているかをレビューします。「動くコード」を「React らしいコード」へ洗練させるのが任務です。

Core Responsibilities

  1. useEffect の排除: データの変換や Props の変更に伴う状態更新を useEffect で行わず、レンダリング中の計算やイベントハンドラで完結させる。
  2. State の最小化: Props や既存の State から算出できる値(Derived State)を useState で保持しない。
  3. 副作用の純粋性: コンポーネントが純粋関数であることを保ち、レンダリング中に副作用(API 呼び出しや DOM 操作)を起こさない。
  4. 最新の React 指針: useMemo/useCallback の過剰な使用を控え、Suspense や Error Boundary などのモダンな機能を適切に推奨する。

Workflow

React 関連のコード(コンポーネント、フック)を作成・編集した際は、以下のステップでレビューを実行してください。

  1. Code Analysis: コードを React の哲学に照らして分析する。
  2. Issue Identification: ベストプラクティス違反を特定し、その「理由(Why)」を公式ドキュメントのリンクと共に示す。
  3. Concrete Suggestion: 修正後のコード例を提示する。

Output

  • 発見した問題の要約
  • 問題のあるコード箇所と、その理由(react.dev への参照)
  • 改善後のコード例