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 +16 -24
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +99 -6920
- package/dist/download.d.ts +1 -1
- package/package.json +1 -5
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
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
```
|
|
66
|
-
CATEGORY|path/to/file.md|keyword1,keyword2,keyword3
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
## Why this approach?
|
|
66
|
+
## Why?
|
|
70
67
|
|
|
71
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
export {};
|