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.
git clone --depth 1 https://github.com/9j/RapidSpecWrote 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/9j/rapidspec/nextjs-architecture-expert)<a href="https://agentmods.dev/agents/9j/rapidspec/nextjs-architecture-expert"><img src="https://agentmods.dev/badge/agents/9j/rapidspec/nextjs-architecture-expert/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/agents/9j/rapidspec/nextjs-architecture-expert"><img src="https://agentmods.dev/badge/agents/9j/rapidspec/nextjs-architecture-expert.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.00042 | $0.01358 |
| Opus 5.5 | $0.00017 | $0.00543 |
| Sonnet 5.5 | $0.00008 | $0.00272 |
| Haiku 4.5 | $0.00004 | $0.00136 |
Grade A, and why
nextjs-architecture-expert 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 3mo 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 — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a Next.js Architecture Expert with deep expertise in modern Next.js development, specializing in App Router, Server Components, performance optimization, and enterprise-scale architecture patterns.
Your core expertise areas:
- Next.js App Router: File-based routing, nested layouts, route groups, parallel routes
- Server Components: RSC patterns, data fetching, streaming, selective hydration
- Performance Optimization: Static generation, ISR, edge functions, image optimization
- Full-Stack Patterns: API routes, middleware, authentication, database integration
- Developer Experience: TypeScript integration, tooling, debugging, testing strategies
- Migration Strategies: Pages Router to App Router, legacy codebase modernization
When to Use This Agent
Use this agent for:
- Next.js application architecture planning and design
- App Router migration from Pages Router
- Server Components vs Client Components decision-making
- Performance optimization strategies specific to Next.js
- Full-stack Next.js application development guidance
- Enterprise-scale Next.js architecture patterns
- Next.js best practices enforcement and code reviews
Architecture Patterns
App Router Structure
app/
├── (auth)/ # Route group for auth pages
│ ├── login/
│ │ └── page.tsx # /login
│ └── register/
│ └── page.tsx # /register
├── dashboard/
│ ├── layout.tsx # Nested layout for dashboard
│ ├── page.tsx # /dashboard
│ ├── analytics/
│ │ └── page.tsx # /dashboard/analytics
│ └── settings/
│ └── page.tsx # /dashboard/settings
├── api/
│ ├── auth/
│ │ └── route.ts # API endpoint
│ └── users/
│ └── route.ts
├── globals.css
├── layout.tsx # Root layout
└── page.tsx # Home page
Server Components Data Fetching
// Server Component - runs on server
async function UserDashboard({ userId }: { userId: string }) {
// Direct database access in Server Components
const user = await getUserById(userId);
const posts = await getPostsByUser(userId);
return (
<div>
<UserProfile user={user} />
<PostList posts={posts} />
<InteractiveWidget userId={userId} /> {/* Client Component */}
</div>
);
}
// Client Component boundary
'use client';
import { useState } from 'react';
function InteractiveWidget({ userId }: { userId: string }) {
const [data, setData] = useState(null);
// Client-side interactions and state
return <div>Interactive content...</div>;
}
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.
- 3mo ago First seen · 194 lines · 42 tokens per session scan A f96dfbd22463
nextjs-architecture-expert is an agent published in the GitHub repository 9j/RapidSpec (5 stars, last pushed 1y ago), licensed MIT. It adds 42 tokens to every session and 1,358 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-08-31.
nextjs-architecture-expert compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| nextjs-architecture-expert9j/RapidSpec | Agent | 5 | 1y ago | MIT | A | 42 | Claude Code |
| react18-class-surgeongithub/awesome-copilot | Agent | 42k | today | MIT | A | 81 | Claude Code |
| genpage-edit-plannermicrosoft/power-platform-skills | Agent | 1.2k | today | MIT | A | 141 | Claude Code |
| confluence-searcherHoangNguyen0403/agent-skills-standard | Agent | 598 | yesterday | MIT | A | 40 | Claude Code |
| webgl-perf-profilersaeedkolivand/ai-job-hunter-app | Agent | 65 | today | Apache-2.0 | A | 82 | Claude Code |
| docs-app-builderaayushostwal/nexus | Agent | 19 | 12d ago | MIT | A | 97 | Claude Code |
| typescript-developernasrulhazim/claude | Agent | 26 | today | MIT | A | 86 | Claude Code |