How this command is triggered — by the user, by Claude, or both
Slash command
/autowiki:reorganizeThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /wiki:reorganize - Evaluate and Reorganize Wiki Structure Analyze the current wiki structure and reorganize if beneficial. ## Pre-flight Checks 1. Verify `wiki/` directory exists 2. Load current structure from `wiki/.index.json` ## Process ### Step 1: Analyze Current Structure Gather metrics about the wiki: ### Step 2: Identify Reorganization Signals Check for these indicators that reorganization may help: **Split signals** (page too large/complex): - Page exceeds 500 lines - Page has more than 8 top-level sections - Page covers more than 10 source files - Page has "and" in the...
Analyze the current wiki structure and reorganize if beneficial.
wiki/ directory existswiki/.index.jsonGather metrics about the wiki:
For each page:
- Line count
- Number of sections (## headings)
- Number of wikilinks (outgoing)
- Number of incoming links (from other pages)
- Number of source files covered
- Last modified date
Check for these indicators that reorganization may help:
Split signals (page too large/complex):
Merge signals (pages too fragmented):
Restructure signals (hierarchy issues):
Based on analysis, generate specific recommendations:
## Reorganization Analysis
### Current State
- Total pages: 24
- Average page size: 180 lines
- Orphan pages: 2
- Oversized pages: 1
### Recommendations
#### 1. Split: authentication.md (HIGH priority)
Current: 650 lines, 12 sections
Suggested split:
- authentication/overview.md - Core auth concepts
- authentication/oauth.md - OAuth implementation
- authentication/jwt.md - Token handling
- authentication/middleware.md - Auth middleware
#### 2. Merge: utils-strings.md + utils-formatting.md (LOW priority)
Both under 40 lines, always referenced together
Suggested: Combine into utilities.md
#### 3. Archive: legacy-api.md (MEDIUM priority)
No incoming links, sources deleted
Suggested: Move to wiki/.archive/ or delete
### No Action Needed
The following were analyzed but don't require changes:
- database.md - 280 lines, well-structured
- api-routes.md - 150 lines, appropriate scope
Present recommendations and ask:
Reorganization analysis complete.
Found 3 recommendations:
1. [HIGH] Split authentication.md into 4 pages
2. [LOW] Merge utils-strings.md + utils-formatting.md
3. [MEDIUM] Archive legacy-api.md
Options:
A) Apply all recommendations
B) Apply high-priority only
C) Review each individually
D) Skip reorganization
What would you like to do?
For approved changes:
Splitting a page:
Merging pages:
Archiving:
After reorganization:
Reorganization complete!
Changes applied:
- Split authentication.md into 4 pages
- Merged 2 utility pages into utilities.md
- Archived 1 obsolete page
All wikilinks validated.
Run `npx autowiki` to browse the updated structure.
If analysis finds no issues:
Wiki structure analyzed - no reorganization needed.
Current state is healthy:
- 18 pages, average 150 lines
- No oversized or undersized pages
- No orphan pages
- Link structure is well-connected
No action taken.
npx claudepluginhub anyweez/autowiki --plugin autowiki/wiki-auditCheck wiki health — find broken links, stale content, contradictions, and auto-fix what it can
/lintRuns wiki health checks for structure, frontmatter, links, tags, coverage, stale content, inconsistencies. Supports --fix, --deep, --wiki <name>, --local.
/statsRuns wiki stats script to show size, shape, link density, scaling thresholds, oversized page warnings, and cross-referencing suggestions.
/wiki-evolveValidates an llm-wiki against the Karpathy pattern, identifies structural or ratio gaps, fixes issues via re-ingest, and logs results. Designed to run as a recurring loop.
/wiki-lintRuns health checks on compiled wiki detecting stale articles, orphan pages, missing cross-references, low coverage sections, contradictions, and schema drift. Outputs summary, fix suggestions, and logs results.