| English | 中文 |
A document-driven AI workflow protocol.
In agile development, requirements “grow” — a simple feature becomes a mini-system through iterations, testing, and new branches. Along the way, documentation gets lost and falls out of sync with code.
WikiFlow drives AI development through documentation. You manage docs, AI manages code.
current/ always reflects the latest implementationWikiFlow supports document repository separated from code repository mode:
.wikiflow/ and docs/wiki/, managed by team/individuals (core assets).wikiflow/config.jsonTeam Collaboration: Resolve path conflicts via environment variables. Each team member configures their own code paths, no conflicts in config.json.
# .env file (not committed to repository)
WIKIFLOW_BACKEND_ROOT=/path/to/my/backend
WIKIFLOW_FRONTEND_ROOT=/path/to/my/frontend
WikiFlow skills use unified versioning (see frontmatter of each skill.md):
metadata.version field in each skill.md marks the version (e.g., 1.0.0)Update skills: Run /wf-update to update all installed skills to latest version.
Install wikiflow, guide: https://liqunx.github.io/wikiflow/install.md
Copy the command above and paste it into your AI chat. One-click install includes all core skills.
WikiFlow skills come in two categories:
| Extension | Purpose | Install Command |
|---|---|---|
| wf-migrate-openspec | Migrate from OpenSpec to WikiFlow | Install wikiflow extension wf-migrate-openspec, source: https://github.com/liqunx/wikiflow/tree/main/skills/wf-migrate-openspec |
| wf-lint | Check Wiki document quality (errors, contradictions, orphan pages, etc.) | Install wikiflow extension wf-lint, source: https://github.com/liqunx/wikiflow/tree/main/skills/wf-lint |
| wf-update | Update installed WikiFlow skills to latest version | Install wikiflow extension wf-update, source: https://github.com/liqunx/wikiflow/tree/main/skills/wf-update |
/wf-plan → Create plan (auto-search Wiki, generate spec.md + tasks.md)
↓
/wf-do → AI executes development
↓
/wf-fix → Fix & improve (bug or requirement, auto-update docs)
↓
/wf-finish → Compile Wiki (auto-handle history, deprecation, lint)
Tip:
/wf-searchcan be used at any stage to browse the Wiki./wf-plancalls search automatically, but if you’ve already run/wf-search,/wf-planwill reuse the existing context.
/wf-plan cannot be skipped (/wf-do checks automatically)/wf-plan must reference a related Wiki (otherwise /wf-search is enforced)/wf-plan (simplified flow, but not omitted)/wf-plan "Fix login button style" # Auto-match Wiki → simplified inquiry
/wf-do # Execute fix
/wf-finish # Compile Wiki
/wf-search "Login feature" # Understand current implementation
/wf-plan "Add registration" # Detailed inquiry → generate plan
/wf-do # Execute development
/wf-fix "Should auto-login after registration" # Improvement → update docs
/wf-do # Continue development
/wf-finish # Compile Wiki
wikiflow/
├── README.md ← This file
├── install.md ← AI install guide
└── skills/
├── wf-init/ ← Core
│ ├── skill.md
│ └── references/config.schema.json
├── wf-search/ ← Core
│ └── skill.md
├── wf-plan/ ← Core
│ ├── skill.md
│ └── references/{spec.md, tasks.md}
├── wf-do/ ← Core
│ └── skill.md
├── wf-fix/ ← Core
│ ├── skill.md
│ └── references/decisions.md
├── wf-finish/ ← Core
│ ├── skill.md
│ └── references/{docs.schema.json, current-wiki.md, ...}
└── wf-migrate-openspec/ ← Extension (install on demand)
└── skill.md
After /wf-init, the user’s project will have:
your-project/
├── .wikiflow/
│ └── config.json ← WikiFlow config
├── docs/
│ ├── wiki/ ← Knowledge base (AI maintained)
│ │ ├── current/ ← ⭐ Current implementation
│ │ ├── history/ ← Historical versions
│ │ ├── deprecated/ ← Deprecated features
│ │ ├── decisions/ ← Decision logs
│ │ ├── index.md ← Main index
│ │ └── log.md ← Changelog
│ ├── raw/ ← Raw documents (legacy)
│ └── changes/ ← Working directory
│ └── active/ ← Active changes (auto-cleaned after compile)
└── src/ ← User code (AI locates via config)
MIT