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 soulcodex/agentic --skill next-application-structuregit clone --depth 1 https://github.com/soulcodex/agenticWrote 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/soulcodex/agentic/next-application-structure)<a href="https://agentmods.dev/skills/soulcodex/agentic/next-application-structure"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/next-application-structure/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/soulcodex/agentic/next-application-structure"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/next-application-structure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00064 | $0.00624 |
| Opus 5.5 | $0.00026 | $0.00250 |
| Sonnet 5.5 | $0.00013 | $0.00125 |
| Haiku 4.5 | $0.00006 | $0.00062 |
Grade A, and why
next-application-structure 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 1mo 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 — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Next Application Structure Skill
Step 1 — App Router Directory Layout
Organise by route segment and feature ownership:
src/
app/
(marketing)/
page.tsx
(app)/
dashboard/
page.tsx
loading.tsx
error.tsx
api/
auth/
route.ts
layout.tsx
features/
auth/
components/
server/
client/
auth.types.ts
components/
ui/
lib/
db/
auth/
validation/
Step 2 — Server and Client Boundaries
- Default to Server Components; add
'use client'only when interactivity or browser APIs are needed. - Keep data fetching and secrets in server modules/route handlers.
- Pass serialized data to client components via props.
- Avoid importing server-only modules into client components.
- Use alias imports for cross-directory modules and ESM
import/exportsyntax only.
Step 3 — Data Fetching and Mutations
- Read data in Server Components when possible.
- Use Route Handlers or Server Actions for mutations.
- Revalidate with
revalidatePath/revalidateTagafter mutations. - Centralize schema validation (for example Zod) at request boundaries.
Step 4 — State and Caching Strategy
- URL and route params: App Router primitives.
- Shared client interaction state: React context or local store in client layer.
- Remote data cache: Next fetch cache + query library only when client-side refetching is needed.
Step 5 — Testing Parity with React Stack
- Unit and component tests: Vitest + React Testing Library.
- E2E flows: Playwright.
- For Server Components and route handlers, test logic in extracted server utilities where possible.
Step 6 — Verify
- App Router segments contain
page.tsx/layout.tsxand special files only where needed - Server-first component model is respected, with minimal
'use client' - Secrets and privileged logic stay server-side
- Mutation flows trigger explicit revalidation
-
pnpm tsc --noEmitandpnpm testpass
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago First seen · 92 lines · 64 tokens per session scan A cc50c7a525fb
next-application-structure is a skill published in the GitHub repository soulcodex/agentic (10 stars, last pushed 29d ago), licensed MIT. It adds 64 tokens to every session and 624 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-31.
Other skills, from other repositories
compiler-commit
Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits with the [compiler] or [rust-compiler] prefix.
server-side-calls
Call tRPC procedures directly from server code using t.createCallerFactory() and router.createCaller(context) for integration testing, internal server logic, and custom API endpoints. Catch TRPCError and extract HTTP status with getHTTPStatusCodeFromError(). Error handling via onError option.
compiler-verify
Use when you need to run all compiler checks (tests, lint, format) before committing. Detects whether TS or Rust code changed and runs the appropriate checks.
qa-frontend
Internal PostHog developer frontend/browser QA skill. Use only when a PostHog developer explicitly asks to run frontend QA, browser-test a PR, verify a UI flow against the local PostHog stack, use qa-frontend, or QA current frontend changes with browser/runtime evidence, or to make a feature reel (see reel mode…
walkeros-understanding-development
Use when contributing to walkerOS, before writing code, or when unsure about project conventions. Covers build/test/lint workflow, XP principles, folder structure, and package usage.
check
Auto-fix lint and formatting, then report types and tests. Run before every commit.