create-page

create-page is a command for coding agents from armanzeroeight/fastagent-plugins. It costs 13 tokens per session (814 once invoked), scanned A, original, MIT.

A command for creating a new page in a Next.js application. It detects whether the project uses the App Router or the older Pages Router and creates the matching files.

In plain words
What is it for?
Use it to add ordinary or dynamic routes, create the required directories and page component, and choose server-side rendering, static generation, or incremental regeneration.
Why use it?
It removes repetitive setup work and helps new pages use an explicitly chosen rendering method.

Command

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 commands/armanzeroeight/fastagent-plugins/create-page
Clone the repo
git clone --depth 1 https://github.com/armanzeroeight/fastagent-plugins

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 create-page

README.md
[![agentmods](https://agentmods.dev/badge/commands/armanzeroeight/fastagent-plugins/create-page.svg)](https://agentmods.dev/commands/armanzeroeight/fastagent-plugins/create-page)
Your own site
<a href="https://agentmods.dev/commands/armanzeroeight/fastagent-plugins/create-page"><img src="https://agentmods.dev/badge/commands/armanzeroeight/fastagent-plugins/create-page.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 814 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.00013 $0.00814
Opus 5 $0.00006 $0.00407
Sonnet 5 $0.00003 $0.00163
Haiku 4.5 $0.00001 $0.00081

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

Security

Grade A, and why

create-page 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 2d 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.

plugins/nextjs-toolkit/commands/create-page.md · 132 lines

How it starts

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

Create Page

Generate a new Next.js page with the appropriate rendering strategy.

Context

  • Current directory: !pwd
  • Next.js version: !cat package.json | grep '"next"' || echo "Not found"
  • App Router: ![ -d "app" ] && echo "Yes" || echo "No"

Your Task

Create a new Next.js page with proper structure and rendering strategy.

Arguments

  • $1: Page path (e.g., "products/[id]", "blog", "dashboard")
  • $2: Optional flag for rendering strategy:
    • --ssr: Server-Side Rendering
    • --ssg: Static Site Generation
    • --isr: Incremental Static Regeneration
    • (default: SSG for App Router, SSG for Pages Router)

Steps

  1. Detect Next.js structure

    • Check if using App Router (app/ directory) or Pages Router (pages/ directory)
    • Determine Next.js version from package.json
  2. Parse page path

    • Extract route segments
    • Identify dynamic segments ([id], [...slug])
    • Determine if nested route
  3. Create directory structure

    • For App Router: app/<path>/page.tsx
    • For Pages Router: pages/<path>.tsx or pages/<path>/index.tsx
    • Create parent directories as needed
  4. Generate page component

    For App Router:

    • Server Component by default
    • Add 'use client' if interactive
    • Include metadata export
    • Add loading.tsx and error.tsx if appropriate

    For Pages Router:

    • Add getStaticProps for SSG/ISR
    • Add getServerSideProps for SSR
    • Add getStaticPaths for dynamic routes
  5. Add TypeScript types

    • Props interface
    • Params type for dynamic routes
    • Metadata type for App Router
  6. Provide usage instructions

    • How to navigate to the page
    • How to pass data
    • How to customize rendering
    • Next steps for implementation

Output Format

# Page Created: /<path>

## Files Created
- Page: app/<path>/page.tsx (or pages/<path>.tsx)
- Loading: app/<path>/loading.tsx (if App Router)
- Error: app/<path>/error.tsx (if App Router)

## Rendering Strategy
- Method: [SSG/SSR/ISR]
- Rationale: [Why this strategy was chosen]

## Usage

### Navigation
\`\`\`typescript
import Link from 'next/link';
<Link href="/<path>">Go to page</Link>
\`\`\`

### Data Fetching
[Instructions based on rendering strategy]

## Next Steps
1. Implement data fetching logic
2. Add UI components
3. Configure metadata/SEO
4. Test on development server
5. Optimize performance

Read the full file on GitHub · 132 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. 2d ago First seen · 132 lines · 13 tokens per session scan A 04f9ac2e68f3

Subscribe to this mod's changes

create-page is a command published in the GitHub repository armanzeroeight/fastagent-plugins (29 stars, last pushed 1mo ago), licensed MIT. It adds 13 tokens to every session and 814 once invoked, about $0.0001 per session on Opus 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.

Related

Other commands, from other repositories

react-test

Enforce TDD workflow for React. Write React Testing Library tests first (behavior-focused, accessibility-first), then implement components. Detects Vitest or Jest and verifies coverage targets.

DekaPrayoga/AurixAgent · 36 tokens

react-build

Fix React build failures (Vite, webpack, Next.js, CRA, Parcel, esbuild, Bun) incrementally — JSX/TSX compile errors, hydration mismatches, server/client component boundary failures, missing types. Invokes the react-build-resolver agent for minimal, surgical fixes.

DekaPrayoga/AurixAgent · 59 tokens

react-review

Comprehensive React/JSX code review for hook correctness, render performance, server/client component boundaries, accessibility, and React-specific security. Invokes the react-reviewer agent (and typescript-reviewer alongside on TSX/JSX changes).

DekaPrayoga/AurixAgent · 49 tokens

design-import

Scaffolds React components from a Claude Design handoff bundle and stops at files on disk: no stories, no tests, no pull request. Use when handed a claude.ai/design URL or a local bundle file; when that same scaffold should carry on through test generation, browser verification and an opened PR, run /ork:design-ship…

yonatangross/orchestkit · 74 tokens

tech-debt

Run bun run check:fix and then bunx knip and identify unused files and functions to refactor the project and simplify. Look at the deprecated features and confirm with the user to delete them. Look at the dependencies and remove the ones that are not needed based on knip results.

lobu-ai/lobu · 0 tokens

doctor

Diagnose installation health. Check Node, CDP bridge, rn-fast-runner (iOS), rn-android-runner (Android), maestro-runner, simulators, Metro, CDP, injected helpers, ffmpeg, physical devices, plugin version, Vercel rules sync. Reports what's missing — does NOT modify your project.

Lykhoyda/rn-dev-agent · 68 tokens