/ravidsrk-agent-skills:knowledge-queryfrom ravidsrk-agent-skills
Answer questions from a markdown knowledge base with grounded citations — keyword, semantic, and graph search; source precedence; gap flags; daily briefings; research synthesis. Use when the user asks "what do we know about X", "search my notes/brain", "who is X", "give me a briefing", "summarize what I know about Y", or needs an answer traceable to sources.
Ships in ravidsrk-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Answer from the knowledge base, not from vibes. Every claim traces to a page; every gap is stated; every conflict is surfaced instead of silently resolved.
This skill works on a plain markdown tree ($KB_ROOT). If gbrain is installed, its hybrid search and graph queries replace the keyword layer; the answer contract stays the same.
export KB_ROOT="${KB_ROOT:-$HOME/brain}"
rg --version
Optional gbrain:
gbrain query "what do we know about pricing?"
gbrain graph-query companies/acme --type works_at --direction in
[Source: <slug>, <section>, updated <date>].updated_at predates newer evidence.Break it into searchable parts:
| Question type | Strategy |
|---|---|
| Entity lookup ("who is Jane?") | Keyword + person page + backlinks |
| Topic recall ("what do we know about pricing?") | Keyword + concept pages + recent pages |
| Relationship ("how are Jane and Acme connected?") | Graph/backlinks + typed links |
| Timeline ("what happened last month?") | Date filters + meeting/timeline entries |
| Decision ("why did we choose X?") | Meeting notes + decision records + source docs |
| Gap ("do we have anything on Y?") | Keyword + semantic, then state the gap |
bash scripts/search.sh "pricing experiment" --limit 20
bash scripts/search.sh "Jane Doe" --type person
Use several query shapes: exact names, distinctive phrases, synonyms, and likely folder names. Search filenames and frontmatter, not just body text.
If gbrain or an MCP search tool is available:
gbrain query "why did we choose annual-only pricing?"
Otherwise expand the keyword search with synonyms and related terms. Do not claim semantic coverage you did not run.
For relationship questions, follow links:
rg -n '\[\[people/jane-doe' "$KB_ROOT" --glob '*.md'
rg -n 'works_at|founded|invested_in|advises' "$KB_ROOT" --glob '*.md'
With gbrain:
gbrain graph-query people/jane-doe --depth 2 --direction both
Jane is CTO of Acme [Source: people/jane-doe, updated 2026-04-01].
The annual-only pricing experiment was approved on 2026-05-21
[Source: meetings/2026-05-21-pricing-review, Decisions section].
Rules:
Gap: the knowledge base has no information on the enterprise contract renewal.
Stale: the pricing page was last updated 2026-01-10; newer meeting notes may supersede it.
Conflict: the 2026-03-02 note says monthly-first; the 2026-05-21 review says annual-only.
Never fill a gap with plausible-sounding detail.
## Answer
{Direct answer in 1–3 sentences.}
## Evidence
- {Claim} [Source: {slug}, {section}, updated {date}]
- ...
## Gaps and conflicts
- {What the base does not cover}
- {Conflicting sources, with both citations}
## Suggested next step
- {Capture the missing source / reconcile / read the full page}
A briefing is a query with a fixed shape:
See references/briefing.md for the query list and output template.
For "research this using my notes plus the web":
See references/research.md for academic verification, strategic reading, book mirroring, and concept synthesis.
| Gotcha | Fix |
|---|---|
| Answer sounds confident but has no citation | Treat it as a draft; go back to search |
| Search returns nothing because of wording | Try synonyms, folder names, and exact phrases |
| Two pages disagree | Show both; do not average them |
| Page is stale | Flag the date; prefer newer evidence |
| Full page is too large | Read chunks first; load sections on demand |
Search hits inbox/ triage noise | Filter by type or folder; triage the inbox |
| External research overwrites the base | Label external facts; capture the source separately |
| The base has no answer | Say so explicitly; offer to capture the missing source |
references/search.md — query templates, layers, ranking, token budgetreferences/citations.md — source precedence, citation format, staleness, conflictsreferences/briefing.md — daily briefing sections and queriesreferences/research.md — external research, academic verification, strategic reading, book mirror, concept synthesisscripts/search.sh — keyword search over $KB_ROOTREADME.md (opens in a new tab)assets/banner-prompt.txt (opens in a new tab)assets/banner.png (opens in a new tab)references/briefing.md (opens in a new tab)references/citations.md (opens in a new tab)references/research.md (opens in a new tab)references/search.md (opens in a new tab)scripts/search.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (ravidsrk/agent-skills) — no native marketplace selected
npx claudepluginhub p/ravidsrk-agent-skills12 skills in this plugin
/cloudflare-dnsMigrate DNS hosting from Namecheap to Cloudflare and manage records via API — handles zone creation, bulk record import, nameserver flip at the registrar (Namecheap-specific; other registrars need a manual flip), propagation watch, and rollback. Zone management works for any Cloudflare zone regardless of registrar. Use when the user wants to "move DNS to Cloudflare", "add a domain to Cloudflare", "manage Cloudflare DNS records", or "automate DNS setup for multiple sites"./deep-researchGeneric parallel multi-source deep-research orchestrator. Fans out across 8 data sources in parallel (X via monid/tikhub, Reddit via monid, Hacker News via Algolia, GitHub repos + issues, Polymarket Gamma, YouTube with transcripts via monid, Exa neural web search via monid) and dumps quotable evidence as JSON + human-readable markdown in a single command. Use whenever the user says "do deep research on X", "what's the discourse on Y", "research this topic", "give me a primer on Z", asks for cross-source validation of a thesis, or needs broad evidence before drafting any long-form piece (briefing, post, report, memo)./finish-lineDrives an AI-built product that has docs, specs or GitHub issues but was never finished to verified launch-readiness, fully autonomously — no questions or approvals mid-run. It learns what the product is only from the docs and the running app (every claim quotes its source; an independent verifier approves it), audits what works, freezes a hash-locked definition of done, then works it item by item with Playwright / Maestro visual checks, a verifier subagent and tamper checks against skipped or weakened tests, up to a release candidate on a preview. Every issue found is researched until fixed. Starts over cleanly when a run misread the product. Use when the user says "finish this product", "take it to launch", "do it autonomously", "don't ask me", "verify what actually works", "the AI says it's done but it isn't", "audit my half-built app", "test everything visually", "it misunderstood my product, start over", or has many unfinished AI-coded products and must pick one to ship./fly-to-aws-migrationEnd-to-end playbook for migrating a Fly.io project to AWS — handles Fly Postgres → Aurora Serverless v2, Fly Machines → ECS Fargate, Fly static sites → S3+CloudFront, secrets migration via Secrets Manager, DNS cutover via Cloudflare. Use when the user says "migrate from Fly to AWS", "move my Fly app to AWS", "leave Fly", "AWS migration", "ECS migration", "switch to AWS", or pastes a Fly project structure (apps/, fly.toml files) and asks to move it. Covers 7 phases (audit → foundation → code prep → secrets → API cutover → static sites → cache layer), with rollback paths preserved at every step. Battle-tested on a production migration (2026) — migrated API + 2 static sites + 87-table Postgres with 9 min total downtime./knowledge-captureSave a thought, article, meeting, transcript, or voice note into a markdown knowledge base with one command — route it to the right folder, generate stable frontmatter and a content-hash slug, dedupe re-captures, and preserve exact phrasing. Use when the user says "capture this", "save to my brain", "remember this", "ingest this article/meeting/voice note", or "drop this in my inbox"./knowledge-maintenanceAudit and repair a markdown knowledge base — missing or malformed frontmatter, broken wikilinks, orphan pages, stale pages, duplicate titles, oversized pages, and taxonomy drift. Use when the user asks to "check brain health", "audit my notes", "fix broken links", "find stale pages", "clean up my knowledge base", or after a large import.