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
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'): alwayscacheLife()+cacheTag(); nevercookies()/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)
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”
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?