本文へ移動
cccskills
無料GitHub で公開

wiki-rag

Use the project wiki as RAG knowledge source — search wiki pages to answer codebase questions before exploring raw files

インストール方法を見る

含まれるファイル(1)

  • SKILL.md6.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Wiki RAG Skill

Query the project wiki to answer questions about the codebase. The wiki is a pre-compiled knowledge base — searching it is faster and more accurate than exploring raw source files.

Usage

/omcustom:wiki-rag "how does orchestration work?"
/omcustom:wiki-rag "what agents handle database tasks?"
/omcustom:wiki-rag "explain the compilation metaphor"

Also triggered automatically by intent-detection when a user asks about project architecture, agent roles, skill purposes, or rule behavior.

Workflow

Step 1: Load Index

Read and parse wiki/index.yaml to get the full page catalog. If wiki/index.yaml does not exist, report:

[wiki-rag] Wiki not initialized. Run /omcustom:wiki first to create wiki/index.yaml.

Then abort.

Step 2: Identify Relevant Pages

From the question and the index, identify 3–7 most relevant wiki pages. Selection criteria:

CriterionDetail
Title/summary keyword matchDirect term overlap with the question
Category relevanceArchitecture questions → architecture/; agent questions → agents/
Cross-reference chainsFollow [[related]] links to surface adjacent context

Step 3: Read Pages (Parallel)

Read identified pages in parallel per R009. Extract sections relevant to the question; ignore unrelated sections to control context size (R013).

Step 4: Synthesize Answer

Compose a direct answer citing wiki pages inline:

[wiki/architecture/orchestration.md] 참조 — 메인 대화가 유일한 오케스트레이터...

Answer format:

  • Direct answer first (2–3 sentences)
  • Supporting details from wiki pages
  • Inline citations to specific wiki pages ([wiki/path/to/page.md])
  • "See also" links for further reading

Step 5: Evaluate Coverage

After synthesizing, assess whether the wiki alone was sufficient.

Coverage LevelConditionAction
FullWiki pages answer the question completelyReturn wiki-sourced answer
PartialWiki covers some aspects; gaps remainSupplement with raw codebase exploration (Read/Glob/Grep); offer to ingest
MissWiki has no relevant pagesFull raw exploration; offer to create wiki page

If raw file exploration was needed, offer to persist the new knowledge:

[wiki-rag] This answer required raw file exploration. Save findings to wiki? [Y/n]

If yes: delegate wiki page creation/update to the wiki-curator agent (R010 — orchestrator delegates all wiki writes).

Step 6: Log Query

Insert into wiki/log.duckdb:

duckdb wiki/log.duckdb "INSERT INTO wiki_log (operation, target, pages_consulted, coverage, details) VALUES ('query', '{question}', N, 'full/partial/miss', '{\"fallback\": false, \"new_page_created\": false}');"

Log writes are delegated to a subagent (R010).

Integration with Intent Detection

The following trigger patterns route user questions to wiki-rag automatically:

Trigger KeywordsLanguageConfidenceAction
"어떻게 작동", "how does X work"KO/EN85%wiki-rag
"무슨 에이전트", "which agent"KO/EN80%wiki-rag
"규칙", "rule R0XX"KO/EN75%wiki-rag
"아키텍처", "architecture"KO/EN90%wiki-rag
"워크플로우", "workflow"KO/EN85%wiki-rag

Patterns should be registered in .claude/skills/intent-detection/patterns/agent-triggers.yaml when that file is updated.

Fallback Strategy

Wiki CoverageAction
Full (answer from wiki alone)Return wiki-sourced answer
Partial (wiki + raw files needed)Supplement with raw exploration, offer to ingest findings
Miss (wiki has nothing relevant)Full raw exploration, offer to create new wiki page

For partial and miss cases: always acknowledge what the wiki covered before pivoting to raw exploration. Do not silently fall back.

Execution Rules

RuleRequirement
R000Answers to user in Korean; wiki content and citations reference English file paths
R009Parallel reads for identified wiki pages (Step 3)
R010All wiki write operations (log.duckdb, new pages) delegated to subagents
R013Ecomode: return concise answers when context pressure is high; suppress "See also" section

What Makes a Good Wiki-RAG Answer

  • Cites specific wiki pages — not vague "the wiki says..." but [wiki/agents/mgr-creator.md]
  • Provides actionable information — tells the user what to do, not just what exists
  • Links to related pages for readers who want to go deeper
  • Acknowledges gaps honestly — never hallucinate content not found in the wiki
  • Offers to improve wiki coverage when gaps are found — compounding the knowledge base over time

Integration with /omcustom:wiki

SkillRole
wikiBuilds and maintains the wiki (ingest, update, lint)
wiki-ragQueries the wiki as a RAG source; surfaces gaps; triggers ingest offers

wiki-rag is the read-path; wiki is the write-path. They share wiki/index.yaml and wiki/log.duckdb as the coordination layer.

Integration

Rule / SkillIntegration
R009Parallel page reads in Step 3
R010Log writes and wiki page creation delegated to subagents
R000Korean user responses; English wiki content and paths
R013Ecomode: suppress extended "See also" section; summary answer only
R015Intent detection routes architecture/agent/rule questions here at 75–90% confidence
wikiCounterpart write-path skill; wiki-rag triggers ingest offers to wiki when gaps found
intent-detectionRegisters trigger patterns for auto-routing user questions to wiki-rag

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Pre-action boundary checking — validates agent tool calls against declared capabilities and task contracts

日本語の概要は準備中です。原文の説明を表示しています。

baekenough/second-brain152026年10月8日 更新

Auto-detect project context and optimize harness — deactivate unused agents/skills, suggest missing experts, generate project profile

日本語の概要は準備中です。原文の説明を表示しています。

baekenough/second-brain152026年10月8日 更新

Adversarial code review using attacker mindset — trust boundary, attack surface, business logic, and defense evaluation

日本語の概要は準備中です。原文の説明を表示しています。

baekenough/second-brain152026年10月8日 更新

Apache Airflow best practices for DAG authoring, testing, and production deployment

日本語の概要は準備中です。原文の説明を表示しています。

baekenough/second-brain152026年10月8日 更新

Alembic migration patterns for naming conventions, safety checks, expand-contract, env.py configuration, and CI integration

日本語の概要は準備中です。原文の説明を表示しています。

baekenough/second-brain152026年10月8日 更新

Pre-routing ambiguity analysis — scores request clarity and asks clarifying questions when needed (inspired by ouroboros)

日本語の概要は準備中です。原文の説明を表示しています。

baekenough/second-brain152026年10月8日 更新

baekenough のスキルをすべて見る

このスキルの問題を報告する