agdex 0.2.0 → 0.3.1
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 +108 -2
- package/dist/cli/index.js +394 -92
- package/dist/index-4shp3mqh.js +1871 -0
- package/dist/index-57bfejpe.js +1357 -0
- package/dist/index-5h59833k.js +1270 -0
- package/dist/index-9gy9s47s.js +1366 -0
- package/dist/index-p0xjkwcp.js +1283 -0
- package/dist/index-zrmn6fd2.js +1903 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/lib/agents-md.d.ts.map +1 -1
- package/dist/lib/config.d.ts +13 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/providers/basedpyright.d.ts +3 -0
- package/dist/lib/providers/basedpyright.d.ts.map +1 -0
- package/dist/lib/providers/convex.d.ts +3 -0
- package/dist/lib/providers/convex.d.ts.map +1 -0
- package/dist/lib/providers/delta-rs.d.ts +3 -0
- package/dist/lib/providers/delta-rs.d.ts.map +1 -0
- package/dist/lib/providers/index.d.ts +8 -0
- package/dist/lib/providers/index.d.ts.map +1 -1
- package/dist/lib/providers/polars.d.ts +3 -0
- package/dist/lib/providers/polars.d.ts.map +1 -0
- package/dist/lib/providers/ruff.d.ts +3 -0
- package/dist/lib/providers/ruff.d.ts.map +1 -0
- package/dist/lib/providers/svelte.d.ts +3 -0
- package/dist/lib/providers/svelte.d.ts.map +1 -0
- package/dist/lib/providers/tailwind.d.ts +3 -0
- package/dist/lib/providers/tailwind.d.ts.map +1 -0
- package/dist/lib/providers/ty.d.ts +3 -0
- package/dist/lib/providers/ty.d.ts.map +1 -0
- package/dist/lib/skills.d.ts +5 -0
- package/dist/lib/skills.d.ts.map +1 -1
- package/dist/lib/types.d.ts +5 -1
- package/dist/lib/types.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -28,6 +28,41 @@ npm install -D agdex
|
|
|
28
28
|
npx agdex
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
+
## Configuration
|
|
32
|
+
|
|
33
|
+
You can configure agdex defaults using either `.agdexrc.json` or the `agdex` field in `package.json`.
|
|
34
|
+
|
|
35
|
+
### Using .agdexrc.json
|
|
36
|
+
|
|
37
|
+
Create a `.agdexrc.json` file in your project root:
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"output": "CLAUDE.md"
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Using package.json
|
|
46
|
+
|
|
47
|
+
Add an `agdex` field to your `package.json`:
|
|
48
|
+
|
|
49
|
+
```json
|
|
50
|
+
{
|
|
51
|
+
"name": "my-project",
|
|
52
|
+
"agdex": {
|
|
53
|
+
"output": "CLAUDE.md"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**Note:** `.agdexrc.json` takes priority over `package.json` if both are present.
|
|
59
|
+
|
|
60
|
+
### Configuration Options
|
|
61
|
+
|
|
62
|
+
| Option | Type | Default | Description |
|
|
63
|
+
|----------|--------|-------------|-------------|
|
|
64
|
+
| `output` | string | `CLAUDE.md` | Default output file for indexes |
|
|
65
|
+
|
|
31
66
|
## CLI Usage
|
|
32
67
|
|
|
33
68
|
### Interactive Mode
|
|
@@ -36,7 +71,17 @@ npx agdex
|
|
|
36
71
|
npx agdex
|
|
37
72
|
```
|
|
38
73
|
|
|
39
|
-
Prompts you
|
|
74
|
+
Prompts you with options to:
|
|
75
|
+
- Use a detected provider (if one is found in your project)
|
|
76
|
+
- Select a built-in provider
|
|
77
|
+
- Enter a GitHub repository URL or `owner/repo`
|
|
78
|
+
- Index a local directory
|
|
79
|
+
- Index Claude Code skills
|
|
80
|
+
|
|
81
|
+
When entering a GitHub URL, you can use various formats:
|
|
82
|
+
- `owner/repo` - indexes the detected docs directory
|
|
83
|
+
- `https://github.com/owner/repo` - same as above
|
|
84
|
+
- `https://github.com/owner/repo/tree/main/docs` - indexes a specific path
|
|
40
85
|
|
|
41
86
|
### Built-in Providers
|
|
42
87
|
|
|
@@ -58,6 +103,18 @@ npx agdex --provider pixi --fw-version 0.63.2 --output AGENTS.md
|
|
|
58
103
|
|
|
59
104
|
# Bun (auto-detects from bun.lockb or bunfig.toml)
|
|
60
105
|
npx agdex --provider bun --output AGENTS.md
|
|
106
|
+
|
|
107
|
+
# Add custom description to the index
|
|
108
|
+
npx agdex --provider nextjs --description "Project uses App Router only"
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
**Options:**
|
|
112
|
+
```bash
|
|
113
|
+
-p, --provider <name> Documentation provider (nextjs, react, etc.)
|
|
114
|
+
--fw-version <version> Framework version (auto-detected if not provided)
|
|
115
|
+
-o, --output <file> Target file (default: from config or CLAUDE.md)
|
|
116
|
+
-d, --description <text> Additional description to include in the index
|
|
117
|
+
-g, --global Store docs in global cache (~/.cache/agdex/)
|
|
61
118
|
```
|
|
62
119
|
|
|
63
120
|
### Custom GitHub Repository
|
|
@@ -74,6 +131,48 @@ Build an index from an existing local docs directory:
|
|
|
74
131
|
npx agdex local ./docs --name "My Framework" --output AGENTS.md
|
|
75
132
|
```
|
|
76
133
|
|
|
134
|
+
### Skills Indexing
|
|
135
|
+
|
|
136
|
+
Index Claude Code skills from your `.claude` directories and enabled plugins:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
# Index skills (auto-detects from all sources)
|
|
140
|
+
npx agdex skills embed
|
|
141
|
+
|
|
142
|
+
# List discovered skills
|
|
143
|
+
npx agdex skills list
|
|
144
|
+
|
|
145
|
+
# Index from a specific local path
|
|
146
|
+
npx agdex skills local ./my-skills --name "My Skills"
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
**Auto-detection sources:**
|
|
150
|
+
- **Enabled plugins** - Reads `~/.claude/settings.json` and `.claude/settings.json` to find enabled plugins, then indexes their skills from the plugin cache
|
|
151
|
+
- **User skills** - `~/.claude/skills` (shared across projects)
|
|
152
|
+
- **Project skills** - `.claude/skills` (project-specific)
|
|
153
|
+
|
|
154
|
+
**Options:**
|
|
155
|
+
```bash
|
|
156
|
+
--plugins Include enabled plugins from settings.json (default: true)
|
|
157
|
+
--no-plugins Exclude enabled plugins
|
|
158
|
+
--user Include ~/.claude/skills (default: true)
|
|
159
|
+
--no-user Exclude ~/.claude/skills
|
|
160
|
+
--project Include .claude/skills (default: true)
|
|
161
|
+
--no-project Exclude .claude/skills
|
|
162
|
+
--plugin <path> Additional plugin repo paths (with plugins/ structure)
|
|
163
|
+
-o, --output Target file (default: AGENTS.md)
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Skills are discovered by looking for `SKILL.md` files with YAML frontmatter:
|
|
167
|
+
```yaml
|
|
168
|
+
---
|
|
169
|
+
name: My Skill
|
|
170
|
+
description: What this skill does
|
|
171
|
+
---
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
The index includes skill names, descriptions, and all sibling files (recursively).
|
|
175
|
+
|
|
77
176
|
### List Available Providers
|
|
78
177
|
|
|
79
178
|
```bash
|
|
@@ -164,8 +263,15 @@ This format:
|
|
|
164
263
|
| Tauri | ✓ | tauri-apps/tauri-docs |
|
|
165
264
|
| conda-forge | ✓ | conda-forge/conda-forge.github.io |
|
|
166
265
|
| Bun | ✓ | oven-sh/bun |
|
|
266
|
+
| Svelte | ✓ | sveltejs/svelte |
|
|
267
|
+
| Tailwind CSS | ✓ | tailwindlabs/tailwindcss.com |
|
|
268
|
+
| Ruff | ✓ | astral-sh/ruff |
|
|
269
|
+
| ty | ✓ | astral-sh/ty |
|
|
270
|
+
| basedpyright | ✓ | DetachHead/basedpyright |
|
|
271
|
+
| Convex | ✓ | get-convex/convex-backend |
|
|
272
|
+
| Polars | ✓ | pola-rs/polars |
|
|
273
|
+
| delta-rs | ✓ | delta-io/delta-rs |
|
|
167
274
|
| Vue | ○ | Coming soon |
|
|
168
|
-
| Svelte | ○ | Coming soon |
|
|
169
275
|
| Astro | ○ | Coming soon |
|
|
170
276
|
|
|
171
277
|
## How It Works
|