/ravidsrk-agent-skills:knowledge-capturefrom ravidsrk-agent-skills
Save 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".
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.
One front door for getting content into a knowledge base. The caller should not have to choose between "put a page", "commit then sync", or "wait for an agent": they capture, and the capture lands as a markdown file with stable metadata, a predictable slug, and a dedupe key.
This skill works against a plain markdown tree ($KB_ROOT). If the gbrain CLI is installed, it can route through gbrain capture / gbrain ingest for semantic enrichment; the file contract stays the same.
export KB_ROOT="${KB_ROOT:-$HOME/brain}"
mkdir -p "$KB_ROOT/inbox"
Optional gbrain backend:
gbrain init
gbrain capture "a thought" --json
The generic script has no dependencies beyond bash and a SHA-256 tool:
bash scripts/capture.sh "the thought I want to remember"
--file PATH, or --stdin.$KB_ROOT, plus a receipt with the slug and path.| Input | Route | Why |
|---|---|---|
| A short thought | inbox/ | Triage later; do not over-file |
| A link/article | inbox/ first, then originals/ after enrichment | Preserve the source before summarizing |
| A meeting transcript | meetings/YYYY-MM-DD-<slug>/ | Attendees, decisions, action items |
| A voice note | voice-notes/ | Preserve exact phrasing; never paraphrase the original |
| A person/company fact | people/<slug>/ or companies/<slug>/ | Entity pages with backlinks |
| A durable idea | ideas/ or concepts/ | Reusable across projects |
| A personal reflection | personal/ | Private by default |
| A file archive | originals/ or archive/ | Keep the raw artifact, summarize separately |
When unsure, capture to inbox/. Filing is cheap; losing the thought is not.
# Inline
bash scripts/capture.sh "The pricing experiment should test annual-only first."
# File
bash scripts/capture.sh --file ./notes/today.md --type note
# Stdin
cat transcript.txt | bash scripts/capture.sh --stdin --type meeting --title "Pricing review"
# Explicit slug
bash scripts/capture.sh --file article.md --slug originals/2026-05-21-postgres-vs-sqlite
The script:
--title or the first non-empty line.After capture, add what the raw input does not carry:
type that matches the taxonomyDo not rewrite the original body. Put synthesis in a clearly marked section above or beside it.
Every entity mentioned in a durable page should have a backlink from the entity page. See references/backlinks.md.
Minimum:
- **2026-05-21** | Referenced in [Pricing review](meetings/2026-05-21-pricing-review.md) — annual-only experiment
---
title: "Pricing review"
type: "meeting"
slug: "meetings/2026-05-21-pricing-review"
captured_at: "2026-05-21T09:30:00Z"
captured_via: "capture.sh"
source: "https://example.com/pricing"
content_hash: "f3a7b9c0d1e2f3a4..."
tags: ['pricing', 'experiment']
---
Required: title, type, slug, captured_at, content_hash.
Recommended: source, tags, captured_via, provenance.
provenance is one of user, agent, external. An agent-derived belief must not be presented as user truth.
See references/frontmatter.md for YAML quoting traps and field definitions.
inbox/YYYY-MM-DD-<hash8>.<folder>/<YYYY-MM-DD>-<descriptive-slug>..., an absolute path, or a user-supplied path segment that escapes $KB_ROOT.The content hash is the identity. The same text captured twice should return the first page, not a duplicate. If the user wants a new version, edit the page (and update updated_at) or capture with a deliberate new slug.
Hash collisions across different content are extremely unlikely; if a slug exists with a different hash, append -2, -3, and so on.
See references/specialized-ingest.md.
| Gotcha | Fix |
|---|---|
| Trailing newlines removed from the body | Read from a file/stdin; do not echo through command substitution |
| Same capture creates duplicates | Compare content_hash before writing |
| YAML breaks on a title with quotes/colons | Use the quoting rules in references/frontmatter.md |
| Slug escapes the knowledge base | Reject .., absolute paths, and empty segments |
| Voice note paraphrased | Keep the verbatim transcript; summarize separately |
| Article summary replaces the source | Preserve the original body; add a summary section |
| Agent belief written as user fact | Set provenance: agent and label it |
| Capture includes a secret | Do not capture secrets; redact before writing |
references/routing.md — input type → destination treereferences/frontmatter.md — fields, YAML quoting, provenancereferences/backlinks.md — back-link law, link types, filing rulesreferences/specialized-ingest.md — media, meetings, voice notes, articles, archivesscripts/capture.sh — generic one-command captureREADME.md (opens in a new tab)assets/banner-prompt.txt (opens in a new tab)assets/banner.png (opens in a new tab)references/backlinks.md (opens in a new tab)references/frontmatter.md (opens in a new tab)references/routing.md (opens in a new tab)references/specialized-ingest.md (opens in a new tab)scripts/capture.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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.Other plugins' skills for the same job