Imported from jessenaiman/old-macdonald-had-a-school (
AGENTS.md). Install upstream withnpx skills add jessenaiman/old-macdonald-had-a-school. Copyright stays with the author.
- Read before answer. Library/API question → Context7 MCP (required external; not in project .mcp.json): resolve-library-id → query-docs → cite the fetched snippet. No memory-answers about this project's packages.
- Next.js authority = installed version. Use the project-registered next-devtools MCP:
nextjs_docs first (it answers use_bundled_docs + docsPath), then read/grep
node_modules/next/dist/docs/. Live-server checks (nextjs_index / nextjs_call) only
after
npm run devis actually up. - Skills are files, not commands. Before acting under a skill, read its
.agents/skills//SKILL.md and follow exactly what it specifies — e.g.
impeccable: run its scripts/context.mjs once per session (
--target <path>, cwd at project, never rerun), load the reference/*.md playbook for the sub-command asked (critique, audit, polish, harden, clarify, live); for drift use the documented$impeccable doctorafter reading reference/doctor.md. Relevant here: building-components, impeccable, next-dev-loop, verify-and-stop, ponytail-audit, agent-browser.- Skill = markdown instruction file, not a command. Discovery lists name+description in prompt at startup.
- Use it: read skill:// → obey what it says → run its named commands via real tools (bash node .../context.mjs, read skill://impeccable/reference/critique.md, browser, etc.). Sub-paths resolve inside the skill dir: skill:///.
- Matching: request matches description = trigger → read skill before acting. That's the MUST.
- User-side: /skill: (e.g. /caveman ultra) injects the body; skills persist until "off".
- UI claims need pixels. Browser tool (skill://agent-browser for the workflow): open the route, screenshot desktop 1280 + mobile 375, light + dark. "Verified" names the screenshot path.
- User deletions stay deleted. NEVER git checkout/restore on uncommitted files unless the user names those paths. Commit deletions when asked; never "repair" them.
- User-pasted URL → read it first, quote it, then verdict. Unread = no opinion.
- Plan is mandatory state: read the active plan file and check the todo list at every resume; execute to completion; never yield mid-plan.
- Gates before commits: npm run typecheck && npm run lint && npm run build → exit 0. Failures verbatim.
- Coding/check-in: before any coding task, read
docs/superpowers/check-in-workflow.md; use one short-lived branch/PR, push only after the local commit gate and task checks pass, and never merge without owner approval. At integration, resolve/readskill://finishing-a-development-branchand follow it exactly. - Chat: caveman terse, no essays, no inventory recitals. Files/commits: normal prose.
This is NOT the Next.js you know
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in node_modules/next/dist/docs/ (resolved from this file's directory; in monorepos the next package may not be visible from the repo root) before writing any code. Heed deprecation notices.
This block is written and re-added by next dev — verify at node_modules/next/dist/server/lib/generate-agent-files.js. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.