DocsForge¶
Universal documentation infrastructure for coding agents.
Install once. Document every repository. Keep engineering knowledge and customer help in sync with the code that actually ships.
DocsForge is a globally installed documentation toolkit for OpenCode and Oh My Pi (OMP). It gives every repository the same documentation workflow without forcing the same documentation framework on every project.
It deliberately separates two domains that usually get mixed together.
Two domains, one system¶
-
Codebase knowledge
Source-grounded architecture, schema, APIs, permissions, jobs, operations, security, and ADRs for engineers and coding agents.
Built with OpenWiki in
<repo>/openwiki/. -
Customer documentation
Task-based tutorials, navigation paths, prerequisites, permissions, expected results, and troubleshooting for the people who use the product.
Lives in the project's chosen Help Center framework.
-
Real screenshots
Playwright captures from the running application, with synthetic demo data, stable locators, and targeted regeneration. Never fabricated mockups.
-
Separated by design
Internal engineering knowledge never leaks into the public Help Center. One project's wiki is never used as evidence for another project.
Why DocsForge¶
Most documentation tooling assumes one project, one framework, and one audience. Real SaaS work has several repositories, several stacks, and at least two audiences.
DocsForge provides:
- One global installation for OpenCode and OMP skills, agents, and slash commands.
- Project-local documentation with its own config, wiki, guides, screenshots, and Git history.
- Source-grounded engineering docs through OpenWiki Claims and versioned source evidence — not generated prose from memory.
- Task-based customer guides verified against real UI labels, permissions, navigation, and results.
- Framework adapters for Next.js/Fumadocs, React, Python/MkDocs, static sites, existing Help Centers, and projects without a UI.
- Incremental sync that maps a Git diff to the pages and screenshots that actually changed.
- Independent audits that report evidence-backed findings before rewriting.
- Docs-only CI that opens a PR/MR, never auto-merges, and never edits application source.
How it works¶
flowchart TD
A[Global DocsForge toolkit] --> B[OpenCode skills, agents, commands]
A --> C[Oh My Pi skills, agents, commands]
A --> D[OpenWiki MCP]
B --> E[Target repository]
C --> E
D --> E
E --> F[.documentation/config.yml]
E --> G[openwiki/ engineering wiki]
E --> H[Customer Help Center]
E --> I[Playwright screenshot suite]
E --> J[AGENTS.md policy]
E --> K[CI: docs-only PR/MR]
Install¶
git clone https://github.com/saidrassai/docsforge.git ~/.documentation-toolkit
node ~/.documentation-toolkit/scripts/docs-toolkit.mjs install --host all
Then install OpenWiki and its host integrations:
Verify:
node ~/.documentation-toolkit/scripts/verify-hosts.mjs
node ~/.documentation-toolkit/scripts/self-test.mjs
Read the full installation guide Quick start in a repository
Commands¶
| Command | What it does |
|---|---|
/docs-init |
Initialize docs infrastructure for the current Git repository |
/docs-sync |
Update only docs affected by current implementation changes |
/docs-audit |
Full, engineering, customer, or screenshot audit |
/docs-code |
Work only on the OpenWiki engineering knowledge base |
/docs-user |
Work only on customer-facing Help Center guides |
/docs-screenshots |
Capture or regenerate real application screenshots |
Safety first¶
DocsForge backs up host configuration before overwriting managed files, skips unmanaged conflicts unless forced, validates project paths against the Git root, and never commits, pushes, publishes, deploys, or merges.