~ / rigs / Perchusha / docs-rag-lab

Perchusha/docs-rag-lab

Local RAG over the TypeScript and React docs: hybrid search, a retrieval inspector, answers from Claude with citations. Pre-registered evals with a calibrated LLM judge: RAG beat Claude's memory 9/10 to 2/10 on the newest React pages. Next.

↗ GitHub ★ 0 MIT updated 17d ago project Claude Code
share on X
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
CONTEXT TAX · EVERY TURN
~4.0k tokens
Moderate · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Protects secrets · Pre-tool screening hook · No YOLO mode · details
Quality 20/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit Perchusha/docs-rag-lab/.claude ./rig-docs-rag-lab  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ npx degit Perchusha/docs-rag-lab/.claude/skills/add-source .claude/skills/add-source
$ npx degit Perchusha/docs-rag-lab/.claude/skills/write-eval-questions .claude/skills/write-eval-questions
$ curl -fsSL --create-dirs -o .claude/agents/code-reviewer.md https://raw.githubusercontent.com/Perchusha/docs-rag-lab/main/.claude/agents/code-reviewer.md

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "permissions": {
    "deny": [
      "Read(/**/.env)",
      "Read(/**/.env.local)",
      "Read(/**/.env.*.local)",
      "Read(/**/.env.development)",
      "Read(/**/.env.production)",
      "Read(/**/.env.test)",
      "Edit(/data/**)",
      "Edit(/.cache/**)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Read|Edit|Write|MultiEdit|NotebookEdit|Grep|Glob|Bash|PowerShell",
        "hooks": [
          {
            "type": "command",
            "command": "node"
          }
        ]
      }
    ]
  }
}

Skills (2)

Subagents (1)

code-reviewerFresh-context review of the current branch against the architecture boundaries, ADRs, tests and the definition of done. Use before committing a milestone, or when asked to review changes.

Hooks (3)

eventmatcherruns
PreToolUseRead|Edit|Write|MultiEdit|NotebookEdit|Grep|Glob|Bash|PowerShellnode
PostToolUseEdit|Write|MultiEditnode
Stop*node

Permissions

deny (8)
Read(/**/.env)
Read(/**/.env.local)
Read(/**/.env.*.local)
Read(/**/.env.development)
Read(/**/.env.production)
Read(/**/.env.test)
Edit(/data/**)
Edit(/.cache/**)
ask (0)
—
allow (0)
—

Similar rigs

copied ✓