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 perniemann/pnCore --skill pn-react-next-perfgit clone --depth 1 https://github.com/perniemann/pnCoreWrote 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/perniemann/pncore/pn-react-next-perf)<a href="https://agentmods.dev/skills/perniemann/pncore/pn-react-next-perf"><img src="https://agentmods.dev/badge/skills/perniemann/pncore/pn-react-next-perf/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/perniemann/pncore/pn-react-next-perf"><img src="https://agentmods.dev/badge/skills/perniemann/pncore/pn-react-next-perf.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.00041 | $0.00551 |
| Opus 5 | $0.00020 | $0.00275 |
| Sonnet 5 | $0.00008 | $0.00110 |
| Haiku 4.5 | $0.00004 | $0.00055 |
Grade A, and why
pn-react-next-perf 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 5d 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 — 38 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React / Next.js performance
When to use
- Adding data fetching or new pages in React or Next.js
- Reviewing for performance (slow page, large bundle, layout shift)
- Choosing between server and client rendering
Critical checks
-
INP (Interaction to Next Paint): Keep INP ≤200ms. Avoid long tasks that block the main thread (e.g. large synchronous work, excessive re-renders). Defer non-critical JS; use
requestIdleCallbackor similar for background work. Per best practices (pn-core://reference/best-practices.md) — Core Web Vitals. -
No request waterfalls: Avoid sequential client fetches that block render. Prefer server-side data in one place (e.g. Next.js server component or single load function) or parallel fetches. Do not fetch in parent then pass to child if the child could fetch in parallel or on the server.
-
Loading and error boundaries: For async routes or components, provide
loading.tsx/loading.jsx(or Suspense) anderror.tsx/error.boundaryso users see skeletons or errors instead of blank or crashed UI. -
Bundle size: Prefer server components (Next App Router) or code-splitting for heavy UI. Use dynamic import for below-fold or conditional components. Avoid pulling large libs into client bundle for one feature.
-
Re-renders: For client components, avoid passing new object/array literals as props every render (useMemo/useCallback or stable refs where it matters). Keep client components small and focused.
Next-specific
- Use server components by default; add "use client" only where needed (interactivity, hooks, browser APIs).
- Colocate
loading.tsxanderror.tsxwith async pages/layouts. - After Server Action mutations that affect displayed data, call
revalidatePath()orrevalidateTag()so the UI updates.
Output
- Specific changes (file, pattern) to remove waterfalls or add boundaries.
- No generic advice; point to the exact place and suggest the minimal fix.
Guardrails
- pn-frontend-scaffolding — Use when adding new pages or components; use this skill when optimizing data loading and boundaries for existing or new routes.
- pn-frontend-design-philosophy — Performance budget and loading/error boundaries align with philosophy rules.
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.
- 5d ago First seen · 38 lines · 41 tokens per session scan A 7d0b01f1b1af
pn-react-next-perf is a skill published in the GitHub repository perniemann/pnCore (0 stars, last pushed 2d ago), licensed MIT. It adds 41 tokens to every session and 551 once invoked, about $0.0002 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-03.
Other skills, from other repositories
decocms-ui
Build or style React UI with the decocms product design system (@decocms/ui). Use when creating interfaces, pages, or components in a project that should look like decocms products, when the user mentions "design system", "@decocms/ui", "decocms style", or asks to make UI consistent with Studio. Covers installation…
deepseek-harness
Use when building AI agent applications with a plugin-based architecture — Web UI, CLI, Python SDK, Cordis plugin system, multi-model orchestration. DeepSeek Harness (dsh): open-source agent harness by DeepSeek AI where everything is a plugin, powered by Cordis for spatiotemporal composability.
react-change-review
Review recent React, Next.js, or TypeScript UI code changes for hardening before merge or commit. Use when asked to review recent React code changes, audit a React diff, harden a feature, check a PR or branch for React issues, or produce a stack-ranked list of nonredundant findings and a recommended fix plan using…
cali
Use when working in the Cali repository or when you need to run, extend, or debug the Cali CLI for mobile React Native and Expo workflows. Covers Cali commands (qa, review, perf-review, dev), the shared cali-context.json contract, local mode selection, required local CLIs, provider setup, and CI integration patterns.
react-best-practices
React development guidelines with hooks, component patterns, state management, and performance optimization.
expo-app-design
Build beautiful cross-platform mobile apps with Expo Router, NativeWind, and React Native.