Troubleshooting¶
Skills¶
OpenCode does not see a DocsForge skill¶
Check:
Requirements:
- the directory contains
SKILL.md; - frontmatter includes
description; - the skill ID matches the directory name.
Fix:
node ~/.documentation-toolkit/scripts/docs-toolkit.mjs sync --host opencode
node ~/.documentation-toolkit/scripts/docs-toolkit.mjs verify
OMP does not see a DocsForge skill¶
OMP validates skill names strictly:
namemust match the directory;- lowercase kebab-case;
- no consecutive hyphens;
- non-empty description ≤ 1024 characters.
Check:
Then:
Commands¶
A /docs-* command is missing¶
Check the host command directory:
Then run sync and verify.
Both hosts support markdown commands. If a host cannot expose a command, use the corresponding skill directly.
OpenWiki¶
OpenWiki MCP is missing¶
If a host is not-installed:
Inspect:
~/.config/opencode/opencode.jsonc~/.omp/agent/mcp.json
OpenWiki generation fails in CI¶
Interactive agent credentials are not available to unattended runners.
Set the provider secret and variables documented in CI automation.
openwiki_begin returns noop¶
The repository has no changes requiring a wiki update. Report that no update is required and stop.
Claims are stale¶
Recheck current source. Do not automatically retract:
- still true → confirm the Claim;
- changed → revise it with new evidence;
- removed → correct the prose and retract it.
An OpenWiki run was interrupted¶
.run.json remains. Resume the durable queue. Do not delete run state while a
run is active.
Screenshots¶
Authentication fails¶
- Use a dedicated test user.
- Set
DOCS_USER_EMAILandDOCS_USER_PASSWORD. - Save
storageStatein.documentation/screenshots/.auth/. - Do not use production credentials.
Screenshot is the wrong size¶
If you spread a Playwright device preset, set viewport after the spread:
Dynamic content changes every run¶
Mask timestamps, IDs, avatars, and counts:
await page.screenshot({
path: "...",
mask: [page.getByTestId("current-time"), page.getByTestId("user-avatar")],
maskColor: "#e5e7eb",
});
Screenshot references are broken¶
Run:
Check the inventory paths, guide image paths, and actual files.
Configuration¶
Config validation fails¶
Common causes:
codebase.engineis notopenwiki;screenshots.engineis notplaywright;- a path is absolute or escapes the repository;
versionis not1.
Windows¶
PowerShell blocks a wrapper¶
or:
OpenWiki native dependency fails¶
Install with npm or pnpm, not Bun. If better-sqlite3 has no matching prebuilt
binary, install Visual Studio Build Tools with the Desktop development with C++
workload.
Installation state¶
Hash drift after editing an installed file¶
Installed copies are generated artifacts. Put changes in the canonical toolkit, then:
An unmanaged file was skipped¶
DocsForge does not overwrite files it did not create. Re-run with --force to
back up and replace the file.
Wrong OMP profile¶
Check:
OMP_PROFILEPI_CODING_AGENT_DIR~/.omp/profiles/<name>/agent
Target a profile explicitly:
Logs¶
- OpenCode:
~/.local/share/opencode/log/opencode.log - OMP:
~/.omp/logs/
Do not delete databases, session state, or service registration while diagnosing.