بنقرة واحدة
rag
Scaffold a RAG pipeline — embedding service, vector store, retrieval service, chunking, and evaluation tests.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Scaffold a RAG pipeline — embedding service, vector store, retrieval service, chunking, and evaluation tests.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Switch model mid-session preserving thinking blocks. Used by /model command and by BRD §6.2 failover when the primary provider rate-limits or fails.
Six-phase ReAct loop (pre-check, thinking, self-critique, action, tool, post). Activates per-workflow via the thinking_level knob in config/workflows.yaml. Replaces standard ReAct for workflows where independent verification of the reasoning improves outcomes.
Mines completed sessions for repeating {tool sequence → outcome} tuples. Scores by frequency × success_rate × novelty. High-scoring tuples become "instincts" — candidate skill seeds — in instincts/pending/.
Walk-back algorithm for the Spec-Auditor subagent. Given a failure at phase N, identifies the earliest phase whose spec, if tightened, would have prevented the failure. Proposes a surgical amendment.
Sessions stored as trees (not lists). /fork creates a branch from any point; /tree navigates; /branch labels a path; /export produces HTML for review. All branches live in one session file under sessions/<project>/<session_id>.json.
Progressive context refinement for subagents. Don't dump everything; retrieve in passes. Start with a list of file paths and one-line abstracts; load full content only when the abstract proves insufficient.
| name | rag |
| description | Scaffold a RAG pipeline — embedding service, vector store, retrieval service, chunking, and evaluation tests. |
Scaffold a complete Retrieval-Augmented Generation pipeline based on the architect's design decisions.
/rag
Also invoked by the architect when the BRD describes knowledge base or search requirements.
project-manifest.json exists with stack section populated.specs/design/.Read architect's design documents for:
Generate src/services/embedding.py:
Generate src/repositories/vector_store.py:
Generate src/services/retrieval.py:
Generate src/services/chunking.py:
Generate tests/test_retrieval.py:
Update or generate API endpoints that use the retrieval service:
| File | Description |
|---|---|
src/services/embedding.py | Embedding model client |
src/services/retrieval.py | Query + search + rerank pipeline |
src/services/chunking.py | Document chunking logic |
src/repositories/vector_store.py | Vector database client |
tests/test_retrieval.py | RAG evaluation tests |
.claude/skills/rag-patterns/SKILL.md — patterns and anti-patterns for RAG implementations