본문으로 건너뛰기
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

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

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의 스킬 모두 보기

이 스킬의 문제 신고