Skip to content
Dashboard

AGENTS.md outperforms skills in our agent evals

Software Engineer, Next.js

Copy link to headingThe problem we were trying to solve

Copy link to headingTwo approaches for teaching agents framework knowledge

Copy link to headingWe started by betting on skills

Copy link to headingSkills weren't being triggered reliably

Copy link to headingExplicit instructions helped, but wording was fragile

Before writing code, first explore the project structure,
then invoke the nextjs-doc skill for documentation.

Example instruction added to AGENTS.md to trigger skill usage.

Copy link to headingBuilding evals we could trust

Copy link to headingThe hunch that paid off

IMPORTANT: Prefer retrieval-led reasoning over pre-training-led reasoning
for any Next.js tasks.

Key instruction embedded in the docs index

Copy link to headingThe results surprised us

Eval results across all four configurations. AGENTS.md (third column) achieved 100% across Build, Lint, and Test
Eval results across all four configurations. AGENTS.md (third column) achieved 100% across Build, Lint, and Test

Copy link to headingAddressing the context bloat concern

[Next.js Docs Index]|root: ./.next-docs
|IMPORTANT: Prefer retrieval-led reasoning over pre-training-led reasoning
|01-app/01-getting-started:{01-installation.mdx,02-project-structure.mdx,...}
|01-app/02-building-your-application/01-routing:{01-defining-routes.mdx,...}

Minified docs in AGENTS.md

The full compressed docs index. Each line maps a directory path to the doc files it contains
The full compressed docs index. Each line maps a directory path to the doc files it contains

Copy link to headingTry it yourself

Copy link to headingWhat this means for framework authors

Ready to deploy?