Agent skill

treido-audit-nextjs

Read-only Next.js 16 App Router auditor for Treido (RSC vs client, caching rules, proxy.ts, route boundaries). Returns structured payload for ORCH merge. Trigger: NEXTJS-AUDIT

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/treido-audit-nextjs

SKILL.md

Treido Next.js Auditor (Read-only)

Read-only specialist. Do not patch files. Do not edit TASKS.md. Contract: .claude/skills/treido-orchestrator/references/audit-payload.md

Focus (Treido)

  • Server Components by default; keep "use client" minimal.
  • Cached server code ('use cache'): always cacheLife() + cacheTag(); never cookies()/headers() inside cached functions.
  • Route boundaries: don’t import route-private code across route groups.
  • Request hook: proxy.ts (avoid reintroducing middleware patterns).

Audit Steps (Read-only)

bash
rg -n "\"use client\"" app components
rg -n "'use cache'|\"use cache\"" app lib
rg -n "\\b(cookies|headers)\\(" app lib
rg -n "\\b(cacheLife|cacheTag)\\b" app lib
rg -n "from ['\"]@/app/|from ['\"]\\.{1,2}/.*app/" components lib app
rg -n "\\bmiddleware\\.ts\\b|\\bproxy\\.ts\\b" .

Output (Required)

  • Header: ## NEXTJS
  • IDs: NEXTJS-001, NEXTJS-002, ...
  • Include acceptance checks: pnpm -s typecheck, and “no cookies()/headers() in cached functions”

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results