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.5 | $0.00016 | $0.00220 |
| Sonnet 5.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 1mo 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.
- 1mo 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 4d ago), licensed MIT. It adds 41 tokens to every session and 551 once invoked, about $0.0002 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.
Other skills, from other repositories
typescript
TypeScript coding conventions, best practices, and patterns for writing clean, maintainable code.
design-to-code
Mockup-to-component pipeline using Google Stitch, 21st.dev, and Storybook MCP. Accepts a screenshot, a description, or a URL and produces production-ready React components, checking existing Storybook components before generating anything new. Use when implementing UI from a mockup or screenshot. To call the MCP tool…
ai-ui-generation
AI-assisted UI generation patterns for json-render, v0.app, Google Stitch, Bolt Cloud, and Cursor workflows. Covers prompt engineering for component and full-stack app generation, review checklists for AI-generated code, design token injection, refactoring for design system conformance, and CI gates for quality…
i18n-date-patterns
Implements internationalization (i18n) in React applications. Covers user-facing strings, date/time handling, locale-aware formatting, ICU MessageFormat, and RTL support. Use when building multilingual UIs or formatting dates/currency.
responsive-patterns
Responsive design with Container Queries, fluid typography, cqi/cqb units, subgrid, intrinsic layouts, foldable devices, and mobile-first patterns for React applications. Use when building responsive layouts or container queries.
storybook-mcp-integration
Reference for the Storybook MCP server itself (@storybook/addon-mcp): 6 tools across 3 toolsets (dev, docs, testing), availability detection, and per-agent toolset filtering. Use when setting up the server or calling these tools directly against components that already exist. For the end-to-end pipeline that turns a…