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 lisbeth718/pseo-skills --skill pseo-performancegit clone --depth 1 https://github.com/lisbeth718/pseo-skillsWrote 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/lisbeth718/pseo-skills/pseo-performance)<a href="https://agentmods.dev/skills/lisbeth718/pseo-skills/pseo-performance"><img src="https://agentmods.dev/badge/skills/lisbeth718/pseo-skills/pseo-performance/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/lisbeth718/pseo-skills/pseo-performance"><img src="https://agentmods.dev/badge/skills/lisbeth718/pseo-skills/pseo-performance.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.00069 | $0.04380 |
| Opus 5.5 | $0.00028 | $0.01752 |
| Sonnet 5.5 | $0.00014 | $0.00876 |
| Haiku 4.5 | $0.00007 | $0.00438 |
Grade A, and why
pseo-performance 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 9d 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 — 339 lines — stays where its author put it; the contents beside it link to each section on GitHub.
pSEO Performance Optimization
Optimize the application for fast builds, excellent Core Web Vitals, and reliable performance at 1000+ page scale.
Scope parameter
| Value | Sections |
|---|---|
build |
1, 2, 7, 8 |
cwv |
3, 6, 9 |
bundle |
4 |
caching |
5 |
all |
everything |
Core Principles
- Static first: Pre-render as many pages as possible at build time
- Incremental where needed: Use ISR for pages that change frequently
- Minimal JavaScript: Pages should be functional with minimal client-side JS
- Image optimization: All images processed, sized, and lazy-loaded
- Cache aggressively: Cache data fetches, API calls, and rendered output
Optimization Areas
1. Static Generation Strategy
Choose the right rendering strategy for scale:
| Page Count | Strategy | Implementation |
|---|---|---|
| < 500 | Full SSG | Generate all pages at build time |
| 500-5000 | SSG + ISR | Generate high-traffic pages at build, ISR for rest |
| 5000+ | ISR + on-demand | Generate on first request, revalidate periodically |
Next.js App Router (without Cache Components, Next.js 15 style and still valid in 16):
// Generate most important pages at build time
export async function generateStaticParams() {
const topPages = await getTopPages(500);
return topPages.map((p) => ({ slug: p.slug }));
}
// ISR for the rest
export const revalidate = 86400; // 24 hours
Next.js 16.4.x (>= 16.4.1 for security fixes) with Cache Components (cacheComponents: true, enabled by default in create-next-app from 16.4, planned default in Next.js 17). Caching is opt-in via "use cache", and dynamic is the default:
import { cacheLife, cacheTag } from "next/cache";
import { notFound } from "next/navigation";
export async function generateStaticParams() {
// With Cache Components this MUST return at least one param.
// An empty array is a build error.
const topPages = await getTopPages(500);
return topPages.map((p) => ({ slug: p.slug }));
}
async function getPage(slug: string) {
"use cache";
cacheLife("days");
cacheTag(`page:${slug}`);
return fetchSinglePage(slug);
}
export default async function Page({ params }: { params: Promise<{ slug: string }> }) {
const { slug } = await params; // params is async-only in Next.js 16
const page = await getPage(slug);
if (!page) notFound(); // see "Status codes with streaming" below
return <PageView page={page} />;
}
- If you can't list any real params, return one placeholder param and call
notFound()for it (the documented workaround). ensureStatic(requirescacheComponents): only"navigation"adds build validation (the build fails if dynamic content sneaks in), and it requiresgenerateStaticParamsto return every param."shell"and"prefetch"add no build validation. With seeded params and on-demand rest, do not claimensureStaticvalidates anything. Details: https://github.com/lisbeth718/pseo-skills/blob/main/docs/research-2026-10.md (section 11.4).- Invalidate with
revalidateTag(tag, profile)(a cache-life profile is required in Next.js 16),updateTag(tag)for read-your-writes in Server Actions, orrefresh(). - Turbopack is the default bundler in Next.js 16.
next buildno longer runs lint, so run your linter in a pre-push or post-build step. - Next.js 16.3 added a better ISR path: URLs omitted from build-time prerendering can serve an instant loading shell to the first visitor. Mind the status-code caveat below.
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.
- 9d ago Changed · +43 lines 917f0c27703b
- 26d ago Changed · +43 lines 6b00c66e2ff3
- 2mo ago First seen · 253 lines · 69 tokens per session scan A 2d5f4f49677c
pseo-performance is a skill published in the GitHub repository lisbeth718/pseo-skills (55 stars, last pushed 9d ago), licensed MIT. It adds 69 tokens to every session and 4,380 once invoked, about $0.0003 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-08-30.
pseo-performance compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pseo-performancelisbeth718/pseo-skills | Skill | 55 | 9d ago | MIT | A | 69 | Claude Code |
| imagegenopenai/codex | Skill | 133k | yesterday | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 99k | yesterday | Apache-2.0 | A | 19 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 79k | 4d ago | MIT | A | 200 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 313k | 3d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | yesterday | MIT | A | 95 | Claude Code |
| next-partial-prefetching-adoptionvercel/next.js | Skill | 143k | yesterday | MIT | A | 103 | Claude Code |