dotfiles: Skill for Claude Code

.claude/skills/react-best-practices/SKILL.md

react-best-practices is a skill for Claude Code from ahonn/dotfiles. It costs 20 tokens per session (713 once invoked), scanned A, original, MIT.

A guide to React development practices covering rendering, data loading, effects, caching, state, and bundle size.

In plain words
What is it for?
Use it when reviewing or writing React components, debugging performance, reducing bundle size, or handling effects and state.
Why use it?
It helps avoid unnecessary browser work, slow loading, and common state-management problems in React applications.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions AGENTS.md.

This is ahonn/dotfiles's own configuration. It tells Claude Code how to work on dotfiles itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dotfiles configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ahonn/dotfiles. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ahonn/dotfiles/master/.claude/skills/react-best-practices/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ahonn/dotfiles

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 react-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/ahonn/dotfiles/react-best-practices/github.svg)](https://agentmods.dev/skills/ahonn/dotfiles/react-best-practices)
Your own site
<a href="https://agentmods.dev/skills/ahonn/dotfiles/react-best-practices"><img src="https://agentmods.dev/badge/skills/ahonn/dotfiles/react-best-practices/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-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/ahonn/dotfiles/react-best-practices"><img src="https://agentmods.dev/badge/skills/ahonn/dotfiles/react-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 713 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.00020 $0.00713
Opus 5.5 $0.00008 $0.00285
Sonnet 5.5 $0.00004 $0.00143
Haiku 4.5 $0.00002 $0.00071

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

Security

Grade A, and why

react-best-practices 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 20d 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.

.claude/skills/react-best-practices/SKILL.md · 42 lines

How it starts

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

React Performance and State Design

Start from the reported behavior and relevant implementation. Select only the references that address the task; the catalog is not a checklist to apply to every component.

Establish applicability

  • Inspect the installed React version, framework, target platform, build configuration, and existing compiler setup before proposing version-dependent changes.
  • Identify the bottleneck with a reproduction, profiler trace, bundle report, or concrete dependency path. If measurement is unavailable, label the diagnosis as a hypothesis and explain how to validate it.
  • Prefer a focused change with an observable benefit. Do not add or remove memoization, introduce caching, change build tooling, or preload resources without a reason tied to the task.
  • Follow the project's state, effect, and data-fetching conventions. Web rendering, SSR, and framework-specific examples do not automatically apply to React Native or a different framework.

Read by problem

Problem or decision Relevant references
Redundant state or synchronization bugs State structure, immutable updates, effect pitfalls
A specific hook lifecycle or API question Hooks guide
Requests wait on independent work Waterfall elimination, parallel requests
Bundle report shows costly imports or initial code Barrel imports, dynamic imports
Resource loading delays a likely user action Preload on intent
Profiler shows costly repeated rendering Memoization strategy, context splitting
Non-urgent rendering blocks an interaction Transitions
Compiler adoption or compilation behavior is in scope React Compiler
Repeated lookup cost is significant Set and Map lookups
List identity or unexpected remounts Key patterns
Expensive off-screen web content Content visibility
Server-rendered web content visibly changes on hydration Hydration flicker
Repeated static JSX creation is relevant to a measured cost Hoist static JSX
Repeated server work or cache correctness Server caching

Read the full file on GitHub · 42 lines

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. 20d ago Changed · -53 lines · -83 tokens per session 5d8860ef6e80
  2. 1mo ago First seen · 95 lines · 103 tokens per session scan A 9667b78b8abd

Subscribe to this mod's changes

react-best-practices is a skill published in the GitHub repository ahonn/dotfiles (63 stars, last pushed 6d ago), licensed MIT. It adds 20 tokens to every session and 713 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

coding

Principles for writing, changing, and testing code, covering readability at every scale, abstraction and naming, interfaces, comments and documentation, tests as maintained code, and standards of evidence for claims about code behavior.

ryota2357/dotfiles · 44 tokens

astropy

Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinates, FITS I/O, tables, time systems, WCS, and cosmology. Use when implementing or debugging astronomical data analysis code with Astropy.

magic3007/dotfiles · 56 tokens

benchling-integration

Benchling Python SDK and REST API integration for registry entities, inventory, ELN entries, workflows, Benchling Apps, and Data Warehouse queries. Use when automating lab data with benchling-sdk or the v2 API.

magic3007/dotfiles · 50 tokens

toil-offloading-pi

Orchestrate decomposable workloads with pi subagents (afang-subagent extension): the strong-but-slow root agent clarifies goals, cuts the work into contract-bearing subtasks, fans them out to cheap-and-fast subagents, grades delivery risk, runs an independent review where it pays, and accepts the result. Use when the…

magic3007/dotfiles · 111 tokens

mcp-notion-usage-guide

A usage guide for connecting AI agents to Notion databases through MCP. Notion is a workspace for documents and databases, while a database view is a saved way of displaying database records.

magic3007/dotfiles · 174 tokens

esm

Comprehensive toolkit for EvolutionaryScale protein language models including ESM3 (generative multimodal design across sequence, structure, and function) and ESM C (efficient embeddings). Use for protein sequence/structure/function tasks, inverse folding, embeddings, variant design, and ESMFold2 structure prediction…

magic3007/dotfiles · 96 tokens