AIToday
Large Language ModelsZenn AI/MLPublished: Dec 6, 2026, 10:01 JST

Wiki specs to Markdown: traceable AI answers via wiki_id

Send on LINE
Wiki specs to Markdown: traceable AI answers via wiki_id

3 Key Points

  1. What happened

    The author converted wiki spec pages into local Markdown, keeping frontmatter with title, wiki_id and updated so answers can be traced back to original pages.

  2. Why it matters

    Keeping page IDs and update dates in each file lets people reopen the source page and check how old a specification is, which may reduce the risk of acting on unsupported answers.

Ask AI

Ask the AI about this article. Questions and answers are published on this page

Context & Analysis

The starting problem is scale: specifications live in an internal wiki across three families — screen, server, and admin-console pages — so answering a question like 'how does a feature work' means reading across all three. Asking an AI did not solve it, because in the author's experience it sometimes filled gaps with plausible but unstated detail, and a wrong answer about specifications can lead to bad implementation or operations decisions. The design response was to pull the entire wiki into local Markdown through a read-only retrieval script, shape it with a formatting script, and point the agent at starting pages through AGENTS.md.

The choice of Markdown and AGENTS.md rests on practical fit rather than benchmarking: the files are readable by AI agents directly, AGENTS.md is a format multiple agents support (Claude Code reads the same instructions through a symbolic link), Git tracks changes, and no extra search infrastructure is needed. The author explicitly says other approaches such as having the AI read the wiki directly or vector-search RAG were not compared, so the setup is positioned as a lightweight option rather than a validated best practice.

Two operating details carry most of the reliability story. First, frontmatter records the wiki page ID and update time, which is what lets a person reopen the source page and judge its freshness. Second, the instructions separate which source to trust by question type — wiki for intended specifications, source code for current implementation, runtime data for current state and configuration, release notes for change history — and treat mismatches as differences to surface rather than to resolve by assumption. The author also flags open gaps: deletions and renames are not automated, the formatting script is not idempotent (running it twice adds a second table of contents), and the response format does not yet require the agent to list the files it referenced.

FAQ
How can someone check the source of an AI answer?
By opening the file used for the answer and reading its frontmatter: the page ID leads back to the original wiki page, and the updated date shows how old the specification is.
Does the setup guarantee the AI will not guess?
No. The author states that writing instructions in AGENTS.md does not guarantee the AI will follow them, and that the 'suppress' and 'make easier to find' wording does not ensure those outcomes.
What happens when a wiki page is deleted or renamed?
Deletions are not detected, so the local file remains. Renames are imported as a new file under the new name and the old file stays; the author currently sorts these out manually using page IDs.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Related Articles

Next articleMicron ranks 6th among 10 undervalued stocks with 129.31% upside