Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

wiki query interface

Aryan Iyappan edited this page Apr 28, 2026 · 2 revisions

title: Wiki Query Interface category: concepts tags: [harness, wiki, search, claude-obsidian, layer-8, query] status: developing created: 2026年04月28日 updated: 2026年04月28日 sources:


Wiki Query Interface (claude-obsidian Skills)

Origin Principle

The project wiki is the single source of truth. ADR-009 replaces the custom WikiKnowledgeBase + Vectra search stack with claude-obsidian skills operating in GitHub Mode B. Every layer reads the wiki; this interface makes those reads efficient.

Architecture

Agent / Human
 ├── wiki-query (read) ──→ .pi/skills/wiki/ ──→ wiki/hot.md → index.md → pages
 ├── wiki-ingest (write) ──→ .pi/skills/wiki/ ──→ wiki/ (create/update pages)
 └── wiki-lint (health) ──→ .pi/skills/wiki/ ──→ orphan/contradiction checks

Query Operations (wiki-query skill)

Three Depth Modes

Mode Trigger Reads Cost Best For
Quick query quick: or simple Q hot.md + index.md ~1,500 tokens "Did we decide X?"
Standard default hot.md → index → 3-5 pages ~3,000 tokens Most harness decisions
Deep query deep: or "thorough" Full wiki + optional web ~8,000+ tokens Synthesis, gap analysis

Quick Mode Workflow

  1. Read hot.md. If answered, respond immediately.
  2. If not, read index.md. Scan for answer.
  3. If found, respond. If not, suggest standard mode.

Standard Mode Workflow

  1. Read hot.md
  2. Read index.md to find relevant pages
  3. Read 3-5 pages, follow wikilinks to depth-2
  4. Synthesize answer, cite with [[Page Name]]
  5. Offer to file as concept/question if valuable

Deep Mode Workflow

  1. Read hot.md and index.md
  2. Identify ALL relevant pages
  3. Read every relevant page
  4. If wiki coverage is thin, offer web search supplement
  5. Synthesize with citations, file result as new wiki page

Ingest Operations (wiki-ingest skill)

Every harness event maps to a wiki write:

Event Wiki Write Frontmatter
spec_hardened decisions/ADR-<N>.md type: decision, decision_type: spec
plan_approved flows/PLAN-<id>.md type: flow, plan_status: approved
subtask_completed Append to log.md Operation log entry
subtask_verified modules/<name>.md type: module, status: mature
subtask_failed modules/<name>.md type: module, status: deprecated + > [!contradiction]
turn_end (auto) decisions/DEC-<id>.md type: decision, auto-generated

Lint Operations (wiki-lint skill)

After every 10-15 wiki writes:

  1. Orphan pages (no inbound wikilinks)
  2. Dead links (wikilinks to non-existent pages)
  3. Stale claims (contradicted by newer sources)
  4. Missing pages (mentioned but no page exists)
  5. Frontmatter gaps
  6. Empty sections
  7. Stale index entries

Output: wiki/meta/lint-report-YYYY-MM-DD.md

Extension Event Hooks

Event Action Mode
session_start Read hot.md, scaffold wiki if needed QUERY (quick)
session_shutdown Update hot.md, append to log.md INGEST
turn_end Auto-capture decision rationale INGEST (decision)
spec_hardened Store spec as decision INGEST (decision)
plan_approved Store plan as flow INGEST (flow)
subtask_verified Store success pattern INGEST (module)
subtask_failed Store failure pattern + contradiction callout INGEST (module)

Dependencies

  • 24 obsidian-wiki skills (npx skills add Ar9av/obsidian-wiki --yes)
  • 5 obsidian-skills (npx skills add kepano/obsidian-skills --yes)
  • Optional: ollama + nomic-embed-text for DragonScale semantic tiling (>10k entries)
  • Removed: ~87MB (Vectra + transformers + model)

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /