/wiki command analyzes your repository and generates structured documentation covering architecture, modules, APIs, and conventions. The resulting wiki is uploaded to Factory cloud and optionally synced to your GitHub wiki tab.
Quick start
Run the wiki command
droid-wiki/ folder in your project directory. Once generation is
complete, it uploads the contents to Factory cloud.View the result
After upload completes, Droid prints a link to your wiki:Open the link to browse your documentation, or visit
app.factory.ai/wiki to see all your
wikis.
What happens during generation
When you run/wiki, Droid performs several steps:
- Codebase analysis — Reads source files, configuration, tests, and documentation to understand the project structure
- Page generation — Produces a set of structured markdown files organized by topic (architecture, modules, APIs, setup, etc.)
- Visual screenshots — If the repository has a QA skill installed, Droid launches the application and captures screenshots of web UIs and TUIs to include in the wiki. Run
/install-qato set one up if your repo doesn’t have one yet. - Upload to Factory cloud — Sends the pages and images to Factory’s API
- GitHub wiki sync — For GitHub repos, flattens pages and pushes to the repo’s wiki tab
Wiki generation uses your current branch and working directory state.
For the most accurate documentation, run
/wiki from a clean checkout
of your default branch.GitHub wiki sync
After uploading to Factory cloud, the CLI automatically syncs the generated wiki to GitHub’s built-in wiki tab for GitHub-hosted repositories. The sync:- Flattens the hierarchical page tree into GitHub’s flat wiki format (e.g.,
overview/architecture.mdbecomesoverview--architecture.md) - Rewrites internal links to use the flat filenames
- Generates
_Sidebar.mdwith a navigable table of contents - Generates
Home.mdfrom your wiki’s root page - Clones
{repo}.wiki.git, replaces all content, and pushes
Prerequisites for GitHub sync
- Your repository must be hosted on GitHub
- The wiki tab must be initialized — if you’ve never used it, create the first page at
https://github.com/{owner}/{repo}/wiki - Your Git credentials must have push access to the wiki repository
- Wiki Cloud Sync must not be disabled for your organization
Versioning
Each wiki generation creates a new wiki run with metadata including:- Commit hash and branch name
- Whether there were local uncommitted changes
- Droid CLI version used
- Timestamp
See also
- Set up auto-refresh — Keep your wiki current with a CI action
- Browse your wiki — Read, search, and export from the web
- Wiki overview — How all the pieces fit together
