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.
npx skills add hmj1026/dhpk --skill dhpk-react-18-notesgit clone --depth 1 https://github.com/hmj1026/dhpkWrote 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.
[](https://agentmods.dev/skills/hmj1026/dhpk/dhpk-react-18-notes)<a href="https://agentmods.dev/skills/hmj1026/dhpk/dhpk-react-18-notes"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-react-18-notes/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.
<a href="https://agentmods.dev/skills/hmj1026/dhpk/dhpk-react-18-notes"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-react-18-notes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00109 | $0.01469 |
| Opus 5 | $0.00055 | $0.00734 |
| Sonnet 5 | $0.00022 | $0.00294 |
| Haiku 4.5 | $0.00011 | $0.00147 |
Grade A, and why
dhpk-react-18-notes 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React 18 — concurrent-rendering baseline
React 18 (March 2022) shipped the concurrent renderer. Its features are
opt-in per update, unlocked by adopting the new createRoot API.
Family routing and the React/Next compatibility matrix live in
docs/agent-guidance/frontend-framework-routing.md. This module owns standalone React 18 language guidance after the family is selected.
Signature features
createRoot / hydrateRoot (react-dom/client)
The new root API replaces ReactDOM.render and is what turns on all
React 18 features. ReactDOM.render still works but warns and runs in a
legacy (non-concurrent) mode.
// Before (React 17)
import { render } from 'react-dom'
render(<App />, document.getElementById('root'))
// React 18
import { createRoot } from 'react-dom/client'
const root = createRoot(document.getElementById('root'))
root.render(<App />)
SSR hydration moves from ReactDOM.hydrate to hydrateRoot.
Automatic batching
All state updates are now batched — including those inside promises,
setTimeout, and native event handlers, not just React event handlers.
Force a synchronous flush with flushSync when a DOM read must happen
between updates.
setTimeout(() => {
setCount(c => c + 1)
setFlag(f => !f)
// React 18: one re-render (batched); React 17: two re-renders
}, 1000)
Concurrent features (opt-in)
Enabled per update, not globally:
startTransition/useTransition— mark non-urgent updates so urgent ones (typing) stay responsive.useDeferredValue— defer re-rendering a value under load.
import { startTransition } from 'react'
setInputValue(input) // urgent
startTransition(() => {
setSearchQuery(input) // non-urgent transition
})
Streaming SSR + selective hydration
renderToPipeableStream (Node) / renderToReadableStream (web/edge)
replace renderToString for streaming; <Suspense> boundaries stream and
hydrate selectively.
New hooks
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.
- 4d ago First seen · 167 lines · 109 tokens per session scan A aca40f195d13
dhpk-react-18-notes is a skill published in the GitHub repository hmj1026/dhpk (2 stars, last pushed today), licensed MIT. It adds 109 tokens to every session and 1,469 once invoked, about $0.0005 per session on Opus 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-05.
Other skills, from other repositories
create-site
Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…
genpage
Creates, updates, and deploys Power Apps generative pages for model-driven apps using React v17, TypeScript, and Fluent UI V9. Orchestrates specialist agents for planning, entity creation, and code generation. Use it when user asks to build, retrieve, or update a page in an existing Microsoft Power Apps model-driven…
create-code-app
Creates Power Apps code apps using React and Vite. Use when building code apps, scaffolding projects, or deploying to Power Platform.
cloudflare-nextjs
Deploy Next.js to Cloudflare Workers via the OpenNext adapter (@opennextjs/cloudflare). Use for SSR/ISR/SSG/App or Pages Router, getCloudflareContext, bindings (D1/R2/KV/AI/Hyperdrive), caching tiers, skew protection, multi-worker, custom worker, env vars, or worker…
auto-animate
AutoAnimate (@formkit/auto-animate) zero-config animations for React. Use for list transitions, accordions, toasts, or encountering SSR errors, animation libraries complexity.
bun-nextjs
This skill should be used when the user asks about "Next.js with Bun", "Bun and Next", "running Next.js on Bun", "Next.js development with Bun", "create-next-app with Bun", or building Next.js applications using Bun as the runtime.