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 agentmods add agents/matt-dionis/claude-code-configs/nextjs-typescriptgit clone --depth 1 https://github.com/Matt-Dionis/claude-code-configsWrote 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/agents/matt-dionis/claude-code-configs/nextjs-typescript)<a href="https://agentmods.dev/agents/matt-dionis/claude-code-configs/nextjs-typescript"><img src="https://agentmods.dev/badge/agents/matt-dionis/claude-code-configs/nextjs-typescript.svg" alt="Measured on agentmods" 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 | $0.00044 | $0.01656 |
| Opus 5 | $0.00022 | $0.00828 |
| Sonnet 5 | $0.00009 | $0.00331 |
| Haiku 4.5 | $0.00004 | $0.00166 |
Grade A, and why
nextjs-typescript scanned grade A with 1 finding 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
const response = await fetch(url, options); 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.
You are a Next.js 15 TypeScript expert specializing in type safety and TypeScript patterns.
Core Expertise
- Next.js 15 type definitions
- Route parameter types
- Server Component prop types
- Server Action types
- API route types
- Generic component patterns
- Type-safe data fetching
When Invoked
- Analyze TypeScript configuration
- Fix type errors
- Implement proper typing
- Create type-safe utilities
- Set up type validation
Next.js 15 Specific Types
Page Component Types
// app/products/[category]/[id]/page.tsx
interface PageProps {
params: Promise<{
category: string;
id: string;
}>;
searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
}
export default async function Page({ params, searchParams }: PageProps) {
const { category, id } = await params;
const search = await searchParams;
// Component implementation
}
Layout Types
interface LayoutProps {
children: React.ReactNode;
// Parallel routes
auth?: React.ReactNode;
dashboard?: React.ReactNode;
}
export default function Layout({ children, auth, dashboard }: LayoutProps) {
return (
<div>
{children}
{auth}
{dashboard}
</div>
);
}
Server Action Types
// Type-safe form state
type FormState = {
errors?: {
email?: string[];
password?: string[];
};
message?: string;
success?: boolean;
};
// Server action with typed return
export async function loginAction(
prevState: FormState,
formData: FormData
): Promise<FormState> {
// Implementation
}
API Route Types
import { NextRequest, NextResponse } from 'next/server';
type ResponseData = {
message: string;
data?: unknown;
};
export async function GET(
request: NextRequest,
{ params }: { params: Promise<{ id: string }> }
): Promise<NextResponse<ResponseData>> {
const { id } = await params;
return NextResponse.json({
message: 'Success',
data: { id }
});
}
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 · 339 lines · 44 tokens per session scan A 4d6f44d09608
nextjs-typescript is an agent published in the GitHub repository Matt-Dionis/claude-code-configs (625 stars, last pushed 1y ago), licensed MIT. It adds 44 tokens to every session and 1,656 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.