| name | mini-wiki |
|---|---|
| description | Automatically generate structured project Wiki from documentation, code, design files, and images. Use when: - User requests "generate wiki", "create docs", "create documentation" - User requests "update wiki", "rebuild wiki" - User requests "list plugins", "install plugin", "manage plugins" - Project needs automated documentation generation Features: - Smart project structure and tech stack analysis - Incremental updates (only changed files) - Auto-generate Mermaid architecture diagrams - Code blocks link to source files - Multi-language support (zh/en) - **Plugin system for plugins** For Chinese instructions, see references/SKILL.zh.md |
Generate structured project Wiki to .mini-wiki/ directory.
.mini-wiki/
├── config.yaml # Configuration
├── meta.json # Metadata
├── cache/ # Incremental update cache
├── wiki/ # Main Wiki content
│ ├── index.md
│ ├── architecture.md
│ ├── getting-started.md
│ ├── modules/
│ ├── api/
│ └── assets/
└── i18n/ # Multi-language versions
├── en/
└── zh/
CRITICAL: As an AI executing this skill, you MUST follow this protocol to activate installed plugins.
- Load Registry: Read
plugins/_registry.yamlto see enabled plugins. - Read Manifests: For each enabled plugin, read its
PLUGIN.mdto understand its Hooks and Instructions. - Execute Hooks:
- Pre-Analysis: If plugin has
on_init, follow its instructions before starting. - Post-Analysis: If plugin has
after_analyze, apply its logic after analyzing structure. - Pre-Generation: If plugin has
before_generate, modify your generation plan/prompts. - Post-Generation: If plugin has
after_generateoron_export, execute those tasks after wiki creation.
- Pre-Analysis: If plugin has
Example: If
api-doc-enhanceris enabled, you MUST read itsPLUGIN.mdand follow its specific rules for generating API docs.
Check if .mini-wiki/ exists:
- Not exists: Run
scripts/init_wiki.pyto create directory structure - Exists: Read
config.yamland cache, perform incremental update
Check plugins/ directory for installed plugins:
- Read
plugins/_registry.yamlfor enabled plugins - For each enabled plugin, read
PLUGIN.mdmanifest - Register hooks:
on_init,after_analyze,before_generate,after_generate
Run scripts/analyze_project.py or analyze manually:
- Identify tech stack: Check package.json, requirements.txt, etc.
- Find entry points: src/index.ts, main.py, etc.
- Identify modules: Scan src/ directory structure
- Find existing docs: README.md, CHANGELOG.md, etc.
- Execute
after_analyzehooks from plugins
Save structure to cache/structure.json.
Run scripts/detect_changes.py to compare file checksums:
- New files → Generate docs
- Modified files → Update docs
- Deleted files → Mark obsolete
Execute before_generate hooks from plugins, then:
- Homepage: Project overview, navigation, statistics
- Architecture doc: Mermaid diagrams, tech stack, module descriptions
- Module docs: Overview, public interfaces, usage examples
- API docs: Function signatures, parameters, returns, code links
Execute after_generate hooks from plugins.
Add source links to code blocks:
### `functionName` [📄](file:///path/to/file.ts#L42)- Write wiki files to
.mini-wiki/wiki/ - Update
cache/checksums.json - Update
meta.jsontimestamp
| Command | Usage |
|---|---|
list plugins |
Show installed plugins |
install plugin <path/url> |
Install from path or URL |
update plugin <name> |
Update plugin to latest version |
enable plugin <name> |
Enable plugin |
disable plugin <name> |
Disable plugin |
uninstall plugin <name> |
Remove plugin |
Installation Sources:
- Local:
/path/to/plugin - GitHub:
owner/repo(e.g.,trsoliu/mini-wiki-extras) - Skills.sh: Any compatible skill repo
- URL:
https://example.com/plugin.zip
Note: Generic skills (SKILL.md) will be automatically wrapped as plugins.
python scripts/plugin_manager.py list
python scripts/plugin_manager.py install owner/repo
python scripts/plugin_manager.py install ./my-pluginSee references/plugin-template.md for plugin format.
Plugins support hooks:
on_init- Run on initializationafter_analyze- Add analysis databefore_generate- Modify promptsafter_generate- Post-process outputon_export- Convert formats
| Script | Usage |
|---|---|
scripts/init_wiki.py <path> |
Initialize .mini-wiki directory |
scripts/analyze_project.py <path> |
Analyze project structure |
scripts/detect_changes.py <path> |
Detect file changes |
scripts/generate_diagram.py <wiki-dir> |
Generate Mermaid diagrams |
scripts/extract_docs.py <file> |
Extract code comments |
scripts/generate_toc.py <wiki-dir> |
Generate table of contents |
scripts/plugin_manager.py <cmd> |
Manage plugins (install/list/etc) |
See references/ directory for detailed templates and prompts:
- prompts.md: AI prompt templates
- templates.md: Wiki page templates
- plugin-template.md: Plugin format
.mini-wiki/config.yaml format:
generation:
language: en # zh / en / both
include_diagrams: true
include_examples: true
link_to_source: true
exclude:
- node_modules
- dist
- "*.test.ts"