wiki_admin
Administer and maintain a structured wiki: initialize workspace, validate manifest, rebuild indexes, run health checks, and generate evidence reports.
Instructions
Wiki administration and maintenance. Select action to control behavior:
init: Initialize a new knowledge base — creates wiki/, raw/, schemas/ directories and default templates.config: Show current workspace configuration: directories, lint settings, search settings, entity templates.format-check: Validate the portable OKF package manifest (agent-wiki.yaml), package inventory, and conformance findings against OKF v0.1.rebuild: Rebuild index.md, timeline.md, code knowledge graphs, and optionally the vector index (when search.hybrid is enabled). Set evidence_report=true to also regenerate the evidence report and persist it to wiki/evidence-report.md as part of the rebuild. Set okf_report=true to persist evidence/okf-report.json.lint: Run comprehensive health checks: contradictions, orphan pages, broken links, raw file integrity (SHA-256), synthesis page integrity. Set apply_fixes=true to auto-repair fixable issues.evidence-report: Aggregate evidence-first telemetry into a corpus-level Markdown report (source coverage, lineage diagnostics, 4-week write trend, Phase 2b readiness gates). Set write=true to also persist the report to wiki/evidence-report.md.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Administration action to perform | |
| path | No | [init] Config root — where .agent-wiki.yaml is created (default: current directory) | |
| workspace | No | [init] Separate workspace directory for wiki/, raw/, schemas/. If omitted, data goes in path. | |
| apply_fixes | No | [lint] If true, automatically fix auto-fixable issues (missing frontmatter → inject title/type/tags). Default: false. | |
| write | No | [evidence-report] If true, persist the report to wiki/evidence-report.md in addition to returning it. Default: false. | |
| evidence_report | No | [rebuild] If true, also regenerate the evidence report and persist it to wiki/evidence-report.md as part of the rebuild. Useful for keeping the dashboard fresh without a separate evidence-report call. Default: false. | |
| okf_report | No | [rebuild] If true, regenerate the OKF package inventory/conformance report and persist it to evidence/okf-report.json. Default: false. |