Skip to content

docs(wiki): initial wiki build — 2 articles#1

Open
prakashUXtech wants to merge 2 commits intomainfrom
docs/wiki-full-rebuild-2026-04-24
Open

docs(wiki): initial wiki build — 2 articles#1
prakashUXtech wants to merge 2 commits intomainfrom
docs/wiki-full-rebuild-2026-04-24

Conversation

@prakashUXtech
Copy link
Copy Markdown
Contributor

What

First wiki pass for c4-gen — two articles under docs/wiki/ covering c4.go and c4_test.go. Adds guardrail README, auto-generated index.md + index.json table of contents, and a .last-indexed-sha baseline for future incremental rebuilds.

How

Compiled via kb-go prepare + one Sonnet sub-agent (no API spend). Part of the workspace-wide wiki rebuild on 2026-04-24 — c4-gen is the smallest scope, just the single-file CLI plus its test suite.

Going forward

Future rebuilds flow through docs/scripts/wiki-sync.sh (workspace-level) — incremental from .last-indexed-sha, triggered by the Stop hook or the weekly cron. Full rebuilds stay a manual make wiki-c4-gen away.

What's in the PR

  • docs/wiki/*.md — 2 compiled articles (auto-generated, do not hand-edit)
  • docs/wiki/README.md — guardrail + how to fix an article (kb recompile <id>)
  • docs/wiki/index.md + index.json — auto-generated ToC
  • docs/wiki/.last-indexed-sha — baseline sha for incremental rebuilds

First wiki pass for c4-gen — 2 articles (c4.go + c4_test.go) compiled via
kb-go prepare + one Sonnet sub-agent. Adds guardrail README, auto-generated
index.md + index.json, and .last-indexed-sha baseline.

This repo has no git remote yet, so no PR — commit lives on local branch
docs/wiki-full-rebuild-2026-04-24. If/when a remote is added, this branch
can be pushed and a PR opened.
Top-level README:
- Links every kb-go mention to https://github.com/qbtrix/kb-go
- Documents the --format=mermaid flag on `views`
- Documents agent-mode refine (--prepare / --accept)
- Notes that kb-go is optional — scan/refine/views/show/stats work alone;
  only `c4 link` reads kb-go's wiki dir

Wiki README (docs/wiki/README.md):
- Rewrites for external readers — drops workspace-relative paths
  (../../docs/how-to/..., ../../kb-go/) that only resolved inside my
  local workspace
- Shows plain kb-go commands anyone can run after installing it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant