rag-context
Dynamically fetch and inject relevant context from files, codebases, docs, or external sources.
소스 정보
- 저장소
- glayph/Agent
- 최근 소스 활동
- 2026년 9월 19일 22:39
- 감지된 SKILL.md 언어
- 영어
- 스타
- 0
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- name
- rag-context
- description
- Dynamically fetch and inject relevant context from files, codebases, docs, or external sources.
- version
- 1.0.0
- author
- Miki
- license
- MIT
- platforms
- ["linux","macos","windows"]
- metadata
- {"Miki":{"tags":["rag","retrieval","context-injection","knowledge-base"],"related_skills":["semantic-summarization","memory-management"]}}
# Retrieval-Augmented Context (Dynamic RAG)
## Trigger conditions
- User mentions RAG, retrieval, context injection, knowledge base
- Task requires info not in active conversation (code reference, API docs, config)
- User asks "check X" or "look up Y"
## Retrieval strategy (ordered by cost)
### 1. Exact match (fastest)
- Grep/RG for known symbols, filenames, error strings
- Use glob for file patterns
### 2. Semantic (codebase)
- Read file headers, imports, exports, type signatures
- Grep for function/class definitions matching intent
### 3. Structural (docs/config)
- Read README, package.json, tsconfig, config YAML
- Scan directory tree for relevant paths
### 4. External (web)
- Fetch docs URLs, search web for API references
- Fetch GitHub raw content for library source
## Context injection rules
- **Prefer excerpts over whole files** — extract 5-20 relevant lines
- **Tag source origin**: `[src/path.ts:42]` or `[web: docs.url]`
- **Summarize what you found** before quoting
- **If nothing found**: say so immediately — don't fabricate
## Multi-turn RAG
- Track what's already retrieved in-session
- Don't re-fetch same content unless explicitly asked
- On ambiguity: retrieve top 2-3 candidates, present choices
GitHub에서 보기