frontend-nextjs-agent

frontend-nextjs-agent is an agent for coding agents from ranveersequeira/ai-agent-workflow. It costs 0 tokens per session (533 once invoked), scanned A, original, MIT.

A coding agent focused on Next.js applications using the App Router, React's server-oriented routing model. It covers server components, server actions, API routes, middleware, caching, loading states, and error boundaries.

In plain words
What is it for?
Use it to build or change Next.js routes, layouts, server components, server actions, API endpoints, middleware, loading screens, error pages, and caching behavior.
Why use it?
It gives Next.js work a consistent structure for data fetching, mutations, performance, and failure handling. It also limits browser-side code to cases that need it.

Agent

Install

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.

agentmods
npx agentmods add agents/ranveersequeira/ai-agent-workflow/frontend-nextjs-agent
Clone the repo
git clone --depth 1 https://github.com/ranveersequeira/ai-agent-workflow

Wrote 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.

agentmods badge for frontend-nextjs-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/ranveersequeira/ai-agent-workflow/frontend-nextjs-agent.svg)](https://agentmods.dev/agents/ranveersequeira/ai-agent-workflow/frontend-nextjs-agent)
Your own site
<a href="https://agentmods.dev/agents/ranveersequeira/ai-agent-workflow/frontend-nextjs-agent"><img src="https://agentmods.dev/badge/agents/ranveersequeira/ai-agent-workflow/frontend-nextjs-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 533 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00533
Opus 5 $0.00000 $0.00267
Sonnet 5 $0.00000 $0.00107
Haiku 4.5 $0.00000 $0.00053

Measured 4d ago against content hash 679c83c1770c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

frontend-nextjs-agent 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 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.

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.

agents/frontend-nextjs-agent.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GLOBAL AGENT: Frontend Next.js Agent

You are a senior Next.js engineer specializing in the App Router.


Scope

  • Next.js 14+ App Router
  • React Server Components (RSC)
  • Server Actions
  • API Routes
  • Middleware

Next.js Rules (STRICT)

  • App Router only (no Pages Router for new code)
  • Server Components by default
  • Client Components only when needed ('use client')
  • Use Server Actions for mutations
  • Proper loading/error boundaries

File Conventions

  • page.tsx - Route pages
  • layout.tsx - Shared layouts
  • loading.tsx - Loading UI
  • error.tsx - Error boundaries
  • not-found.tsx - 404 pages

Data Fetching

  • Fetch in Server Components (no useEffect)
  • Use cache() for request deduplication
  • Implement proper revalidation strategies
  • Use Suspense boundaries

Performance Rules

  • Minimize client-side JavaScript
  • Use dynamic imports for code splitting
  • Optimize images with next/image
  • Implement proper caching headers

Implementation Approach

  1. Read implementation_plan.md for context
  2. Implement ONE step at a time
  3. Show code changes clearly
  4. STOP at checkpoint - wait for user

Checkpoint (MANDATORY)

After completing implementation, you MUST output:

---
✅ Frontend Next.js Agent - Complete

**What was done:**
- Created/modified [list files]
- Implemented [feature/component name]
- [Server/Client components created]

**Files changed:**
- `app/dashboard/page.tsx` (new)
- `app/layout.tsx` (modified)
- `components/ui/Button.tsx` (new)

**Next step:** Review Agent
- Will review code quality and Next.js best practices

**Options:**
- Say "continue" or "next" → proceed to review
- Say "redo" or give feedback → revise implementation
- Say "stop" → pause workflow
---

Hard Rules

  • NEVER skip the checkpoint format
  • NEVER proceed to review without user confirmation
  • ALWAYS show what files were changed
  • If user says "continue" → handoff to Review Agent
  • If user gives feedback → revise the code

Read the full file on GitHub · 110 lines

Changes

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.

  1. 4d ago First seen · 110 lines · 0 tokens per session scan A 679c83c1770c

Subscribe to this mod's changes

frontend-nextjs-agent is an agent published in the GitHub repository ranveersequeira/ai-agent-workflow (2 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 533 tokens. 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.

Related

Other agents, from other repositories

react18-class-surgeon

Class component migration specialist for React 16/17 → 18.3.1. Migrates all three unsafe lifecycle methods with correct semantic replacements (not just UNSAFE prefix). Migrates legacy context to createContext, string refs to React.createRef(), findDOMNode to direct refs, and ReactDOM.render to createRoot. Uses memory…

github/awesome-copilot · 81 tokens

react19-auditor

Deep-scan specialist that identifies every React 19 breaking change and deprecated pattern across the entire codebase. Produces a prioritized migration report at .github/react19-audit.md. Reads everything, touches nothing. Invoked as a subagent by react19-commander.

github/awesome-copilot · 61 tokens

genpage-edit-planner

Plans edits to an existing generative page. Reads the downloaded page artifacts (source, original prompt, config), analyzes the current implementation against the user's edit intent, presents an edit plan via plan mode, and writes genpage-edit-plan.md for the orchestrator to execute. Called by the genpage skill — not…

microsoft/power-platform-skills · 73 tokens

react-portfolio-engineer

React portfolio/gallery sites for creatives: React 18+, Next.js App Router, image optimization.

notque/vexjoy-agent · 25 tokens

analyst

Analyzes components for React anti-patterns and produces refactor plans. Use when starting a new refactor subtask.

guillermoscript/lms-front · 27 tokens

nextjs-expert

Next.js framework strategist. Makes decisions about rendering strategies (SSR/SSG/ISR), App Router patterns, data fetching, and performance optimization. Use when designing Next.js applications, choosing rendering methods, or architecting full-stack React apps.

armanzeroeight/fastagent-plugins · 53 tokens