npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

nuxt-agent-md

v0.5.0

Published

Generate AGENTS.md with Nuxt documentation for AI coding agents

Downloads

112

Readme

nuxt-agent-md

Generate AGENTS.md and CLAUDE.md with Nuxt documentation for AI coding agents (Cursor, Copilot, Claude Code, etc.).

Gives your AI assistant instant access to accurate Nuxt API references, reducing hallucinations and improving code quality.

Usage

# Run directly with bunx
bunx nuxt-agent-md

# Or install globally
bun add -g nuxt-agent-md
nuxt-agent-md

What it does

  1. Detects your Nuxt version from package.json
  2. Downloads the corresponding @nuxt/docs documentation (~1.5 MB) to .nuxt-docs/
  3. Generates a compact pipe-delimited index pointing to the downloaded docs
  4. Creates/updates AGENTS.md with a directive instruction and the index
  5. Creates CLAUDE.md that references @AGENTS.md

The generated AGENTS.md is intentionally minimal — a short directive telling the agent to read the docs, followed by a file index. No inline API summaries or pattern guides are included, so the agent is forced to consult the actual documentation files rather than relying on stale training data.

This follows Vercel's finding that passive context with retrieval-led reasoning outperforms both skills and inline knowledge.

Options

-d, --docs-dir <path>      Directory to store docs (default: .nuxt-docs)
-o, --output <path>        Output AGENTS.md path (default: AGENTS.md)
-v, --nuxt-version <ver>   Nuxt docs version (auto-detected from package.json)
    --minify               Generate minified index (default: true)
    --no-minify            Generate full index instead of minified
    --dry-run              Show what would be done without making changes
-h, --help                 Show this help message

Examples

# Auto-detect Nuxt version from package.json
nuxt-agent-md

# Use specific Nuxt version
nuxt-agent-md -v 4.0.0

# Generate full (non-minified) index
nuxt-agent-md --no-minify

# Custom output paths
nuxt-agent-md -d .docs -o CLAUDE.md

Output

The tool generates:

  1. .nuxt-docs/ - Directory containing markdown documentation (auto-added to .gitignore)
  2. AGENTS.md - File with documentation index (wrapped in <!-- BEGIN:nuxt-agent-rules --> markers)
  3. CLAUDE.md - File that references @AGENTS.md for Claude Code/Cursor compatibility

How it works

The key insight from Vercel's research is that agents perform best when given a directive to read docs rather than inline knowledge they can use as a shortcut. The generated AGENTS.md contains:

# Nuxt: ALWAYS read docs before coding

This project uses Nuxt v4.x.x. Before any Nuxt work, find and read
the relevant doc in `.nuxt-docs/`. Your training data may be outdated
— the docs are the source of truth.

Followed by a compact index mapping categories to doc file paths. The agent sees the index, knows where to find specific docs, and reads the actual files when needed.

License

MIT