autowiki 1.2.1 → 1.2.3
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 +50 -138
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -1,183 +1,95 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="static/agent-wiki.png" alt="autowiki" width="400">
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
<h1 align="center">autowiki</h1>
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
<p align="center">
|
|
8
|
+
Auto-generated wiki documentation for your codebase, built by AI agents and browsable by humans.
|
|
9
|
+
<br><br>
|
|
10
|
+
<a href="https://www.npmjs.com/package/autowiki"><img src="https://img.shields.io/npm/v/autowiki" alt="npm version"></a>
|
|
11
|
+
</p>
|
|
6
12
|
|
|
7
|
-
|
|
8
|
-
- **`/agent-wiki:update`** - Update the wiki to reflect recent code changes
|
|
9
|
-
- **`/agent-wiki:reorganize`** - Analyze and restructure the wiki if needed
|
|
10
|
-
- **`/agent-wiki:serve`** - Start a local web server to browse the wiki
|
|
13
|
+
---
|
|
11
14
|
|
|
12
|
-
##
|
|
15
|
+
## How It Works
|
|
13
16
|
|
|
14
|
-
|
|
15
|
-
# In Claude Code, add the GitHub repo as a marketplace
|
|
16
|
-
/plugin marketplace add github:anyweez/agent-wiki
|
|
17
|
+
**autowiki** has two parts that work together:
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
/plugin install agent-wiki@anyweez/agent-wiki
|
|
20
|
-
```
|
|
19
|
+
1. **A Claude Code plugin** that builds and maintains a wiki for your repo. Run `/autowiki:init` and Claude explores your codebase, identifies key concepts, and writes structured markdown documentation in a `wiki/` directory. The wiki updates incrementally as your code changes — no need to regenerate from scratch.
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
2. **An npm package** (`npx autowiki`) that serves the wiki as a polished, searchable website. Dark mode, sidebar navigation, full-text search, wikilinks between pages — all running locally with zero configuration.
|
|
23
22
|
|
|
24
|
-
|
|
23
|
+
The generated wiki is immediately useful for AI agents as raw markdown (plus `llms.txt`), and just as useful for humans via the web UI.
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
# Clone this repository
|
|
28
|
-
git clone https://github.com/anyweez/agent-wiki.git
|
|
29
|
-
cd agent-wiki && npm install
|
|
25
|
+
## Getting Started
|
|
30
26
|
|
|
31
|
-
|
|
32
|
-
claude --plugin-dir /path/to/agent-wiki
|
|
27
|
+
### Install the Claude Code plugin
|
|
33
28
|
|
|
34
|
-
|
|
35
|
-
/plugin
|
|
36
|
-
/plugin install agent-wiki@agent-wiki-marketplace
|
|
29
|
+
```bash
|
|
30
|
+
/install-plugin github:anyweez/autowiki
|
|
37
31
|
```
|
|
38
32
|
|
|
39
|
-
|
|
33
|
+
### Generate your wiki
|
|
40
34
|
|
|
41
|
-
|
|
35
|
+
```
|
|
36
|
+
/autowiki:init
|
|
37
|
+
```
|
|
42
38
|
|
|
43
|
-
|
|
39
|
+
Claude will explore your codebase and create a `wiki/` directory with structured documentation.
|
|
44
40
|
|
|
45
|
-
|
|
41
|
+
### Browse it
|
|
46
42
|
|
|
47
|
-
```
|
|
48
|
-
|
|
43
|
+
```bash
|
|
44
|
+
npx autowiki
|
|
49
45
|
```
|
|
50
46
|
|
|
51
|
-
|
|
52
|
-
1. Explore your codebase with parallel sub-agents
|
|
53
|
-
2. Identify key concepts, components, and patterns
|
|
54
|
-
3. Create wiki pages in the `wiki/` directory
|
|
55
|
-
4. Generate `llms.txt` for AI discoverability
|
|
47
|
+
Open http://localhost:3000 and you're in.
|
|
56
48
|
|
|
57
|
-
|
|
49
|
+
## Plugin Commands
|
|
58
50
|
|
|
59
|
-
|
|
51
|
+
| Command | Description |
|
|
52
|
+
|---------|-------------|
|
|
53
|
+
| `/autowiki:init` | Generate a wiki from scratch by exploring the codebase |
|
|
54
|
+
| `/autowiki:update` | Update the wiki to reflect recent code changes |
|
|
55
|
+
| `/autowiki:reorganize` | Analyze wiki structure and suggest improvements |
|
|
60
56
|
|
|
61
|
-
|
|
62
|
-
/agent-wiki:update
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
By default, the wiki auto-updates after agent tasks complete. Disable this in `wiki/.config.yml`:
|
|
57
|
+
The wiki also auto-updates after Claude Code tasks complete. Disable this in `wiki/.config.yml`:
|
|
66
58
|
|
|
67
59
|
```yaml
|
|
68
60
|
auto_update: false
|
|
69
61
|
```
|
|
70
62
|
|
|
71
|
-
|
|
63
|
+
## Web Server Options
|
|
72
64
|
|
|
73
|
-
Start the local web server:
|
|
74
|
-
|
|
75
|
-
```
|
|
76
|
-
/agent-wiki:serve
|
|
77
65
|
```
|
|
66
|
+
npx autowiki [options]
|
|
78
67
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
```
|
|
86
|
-
/agent-wiki:reorganize
|
|
68
|
+
--port <number> Port to listen on (default: 3000)
|
|
69
|
+
--wiki-dir <path> Wiki directory (default: auto-detect)
|
|
70
|
+
--export Export static HTML files
|
|
71
|
+
--output <path> Export directory (default: wiki-html/)
|
|
72
|
+
--open Open browser automatically
|
|
87
73
|
```
|
|
88
74
|
|
|
89
|
-
|
|
75
|
+
## Wiki Format
|
|
90
76
|
|
|
91
|
-
|
|
77
|
+
Pages are markdown files with YAML frontmatter, organized by type:
|
|
92
78
|
|
|
93
79
|
```
|
|
94
80
|
wiki/
|
|
95
|
-
├── .config.yml # Configuration
|
|
96
|
-
├── .index.json # Page index for fast lookups
|
|
97
|
-
├── .last-update # Git commit of last update
|
|
98
|
-
├── llms.txt # AI-friendly index
|
|
99
|
-
├── llms-full.txt # Complete content dump
|
|
100
81
|
├── overview.md # Repository overview
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
## Page Format
|
|
105
|
-
|
|
106
|
-
Each wiki page uses YAML frontmatter:
|
|
107
|
-
|
|
108
|
-
```markdown
|
|
109
|
-
---
|
|
110
|
-
title: Authentication System
|
|
111
|
-
type: concept
|
|
112
|
-
tags: [auth, security]
|
|
113
|
-
related:
|
|
114
|
-
- "[[User Session]]"
|
|
115
|
-
- "[[API Gateway]]"
|
|
116
|
-
sources:
|
|
117
|
-
- src/auth/
|
|
118
|
-
- src/middleware/auth.ts
|
|
119
|
-
---
|
|
120
|
-
|
|
121
|
-
# Authentication System
|
|
122
|
-
|
|
123
|
-
Description and documentation...
|
|
124
|
-
|
|
125
|
-
## Code References
|
|
126
|
-
|
|
127
|
-
- `src/auth/index.ts:15` - Main entry point
|
|
128
|
-
- `src/auth/jwt.ts:42-78` - Token validation
|
|
82
|
+
├── concepts/ # Architecture, design patterns
|
|
83
|
+
├── guides/ # How-to documentation
|
|
84
|
+
└── reference/ # API and config reference
|
|
129
85
|
```
|
|
130
86
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
Pages are connected using `[[wikilinks]]`:
|
|
134
|
-
|
|
135
|
-
- `[[Page Name]]` - Links by title
|
|
136
|
-
- `[[page-name]]` - Links by slug
|
|
137
|
-
- `[[Page Name|display text]]` - Custom display text
|
|
138
|
-
- `[[subdir/page]]` - Explicit path for disambiguation
|
|
139
|
-
|
|
140
|
-
Resolution order:
|
|
141
|
-
1. Exact title match
|
|
142
|
-
2. Aliases in frontmatter
|
|
143
|
-
3. Slugified filename
|
|
144
|
-
|
|
145
|
-
## Configuration
|
|
146
|
-
|
|
147
|
-
Edit `wiki/.config.yml`:
|
|
148
|
-
|
|
149
|
-
```yaml
|
|
150
|
-
# Auto-update after tasks (default: true)
|
|
151
|
-
auto_update: true
|
|
152
|
-
|
|
153
|
-
# Page organization strategy
|
|
154
|
-
page_granularity: concept # concept | directory | module
|
|
155
|
-
|
|
156
|
-
# Paths to exclude
|
|
157
|
-
exclude:
|
|
158
|
-
- node_modules/
|
|
159
|
-
- dist/
|
|
160
|
-
- "*.min.js"
|
|
161
|
-
|
|
162
|
-
# Custom concept groupings
|
|
163
|
-
concepts:
|
|
164
|
-
authentication:
|
|
165
|
-
- src/auth/
|
|
166
|
-
- src/middleware/auth*
|
|
167
|
-
```
|
|
87
|
+
Pages link to each other with `[[wikilinks]]` and track which source files they document, so the wiki knows what to update when code changes.
|
|
168
88
|
|
|
169
89
|
## Requirements
|
|
170
90
|
|
|
171
|
-
-
|
|
172
|
-
- Node.js 16+ (for web server)
|
|
173
|
-
- PyYAML (`pip install pyyaml`)
|
|
174
|
-
|
|
175
|
-
## How It Works
|
|
176
|
-
|
|
177
|
-
1. **Exploration**: Sub-agents partition the codebase and explore in parallel
|
|
178
|
-
2. **Coordination**: A coordinator agent synthesizes findings into wiki pages
|
|
179
|
-
3. **Updates**: Git-based change detection identifies what needs updating
|
|
180
|
-
4. **Auto-trigger**: Optional hook updates wiki after task completion
|
|
91
|
+
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) (for the plugin)
|
|
92
|
+
- Node.js 16+ (for the web server)
|
|
181
93
|
|
|
182
94
|
## License
|
|
183
95
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autowiki",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Browse auto-generated wiki documentation in your browser",
|
|
5
5
|
"bin": {
|
|
6
6
|
"autowiki": "./bin/autowiki.js"
|
|
@@ -22,5 +22,10 @@
|
|
|
22
22
|
"markdown",
|
|
23
23
|
"codebase"
|
|
24
24
|
],
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://github.com/anyweez/autowiki.git"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/anyweez/autowiki",
|
|
25
30
|
"license": "MIT"
|
|
26
31
|
}
|