nuxt-agent-md 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # nuxt-agent-md
2
2
 
3
- Generate `AGENTS.md` with Nuxt documentation for AI coding agents.
3
+ Generate `AGENTS.md` with Nuxt documentation for AI coding agents (Cursor, Copilot, Claude, etc.).
4
4
 
5
- Inspired by [Vercel's blog post](https://vercel.com/blog/agents-md-outperforms-skills-in-our-agent-evals) showing that `AGENTS.md` with a documentation index achieves 100% success rate on agent evaluations.
5
+ Gives your AI assistant instant access to accurate Nuxt API references, reducing hallucinations and improving code quality.
6
6
 
7
7
  ## Usage
8
8
 
@@ -18,9 +18,15 @@ nuxt-agent-md
18
18
  ## What it does
19
19
 
20
20
  1. Detects your Nuxt version from `package.json`
21
- 2. Downloads the corresponding `@nuxt/docs` documentation
22
- 3. Generates a minified index of all documentation files
23
- 4. Creates/updates `AGENTS.md` with the index and key Nuxt patterns
21
+ 2. Downloads the corresponding `@nuxt/docs` documentation (~1.5 MB)
22
+ 3. Generates a minified index (~20 KB) of all documentation files
23
+ 4. Creates/updates `AGENTS.md` with the index
24
+
25
+ The index format is pipe-delimited for minimal token usage:
26
+
27
+ ```
28
+ CATEGORY|path/to/file.md|keyword1,keyword2,keyword3
29
+ ```
24
30
 
25
31
  ## Options
26
32
 
@@ -48,36 +54,22 @@ nuxt-agent-md --no-minify
48
54
 
49
55
  # Custom output paths
50
56
  nuxt-agent-md -d .docs -o CLAUDE.md
51
-
52
- # Preview changes without writing
53
- nuxt-agent-md --dry-run
54
57
  ```
55
58
 
56
59
  ## Output
57
60
 
58
61
  The tool generates:
59
62
 
60
- 1. `.nuxt-docs/` - Directory containing raw markdown documentation
63
+ 1. `.nuxt-docs/` - Directory containing markdown documentation (auto-added to `.gitignore`)
61
64
  2. `AGENTS.md` - File with minified index pointing to the docs
62
65
 
63
- The index format is pipe-delimited for minimal token usage:
64
-
65
- ```
66
- CATEGORY|path/to/file.md|keyword1,keyword2,keyword3
67
- ```
68
-
69
- ## Why this approach?
66
+ ## Why?
70
67
 
71
- From Vercel's research:
68
+ AI coding agents work better when they have access to accurate documentation rather than relying on training data that may be outdated. By providing a compact index in `AGENTS.md`, the agent can quickly find and read the relevant documentation files for any Nuxt API.
72
69
 
73
- | Approach | Success Rate |
74
- |----------|--------------|
75
- | Baseline (no docs) | 53% |
76
- | Skills | 53% |
77
- | Skills with explicit instructions | 79% |
78
- | **AGENTS.md with docs index** | **100%** |
70
+ ## Credits
79
71
 
80
- The key insight: providing a compressed index in `AGENTS.md` that points to detailed documentation files gives agents immediate access to accurate API information without decision overhead.
72
+ Inspired by [Vercel's research](https://vercel.com/blog/agents-md-outperforms-skills-in-our-agent-evals) showing that documentation indexes in `AGENTS.md` significantly improve agent accuracy.
81
73
 
82
74
  ## License
83
75
 
package/dist/cli.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- #!/usr/bin/env bun
1
+ #!/usr/bin/env node
2
2
  export {};