Skip to content
Back to skills

Capture

ASecurity

Save any thought or content into the brain via one CLI command. The single human-facing entrypoint that replaces "page_put vs index-then-verify" decisions with one command that just works.

  • 11 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 28, 2026
ai-agentsrustgoshellbash

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned October 7, 2026

npx -y skills add timurgaleev/memex --skill capture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Capture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Capture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/timurgaleev-capture/badge)](https://www.skillsdirectory.com/skills/timurgaleev-capture)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: capture
description: Save any thought or content into the brain via one CLI command. The single human-facing entrypoint that replaces "page_put vs index-then-verify" decisions with one command that just works.
triggers:
  - "capture this"
  - "save this thought"
  - "remember this"
  - "ingest this into my brain"
  - "drop this in the inbox"
  - "save to brain"
tools:
  - page_put
  - search
  - query
writes_pages:
  - "inbox/*"
---

# capture — the single ingestion entrypoint

When the user wants to save a thought, an article snippet, a transcript
fragment, or any text into their brain, run `memrain capture`. Don't reach
for a raw `page_put` from the shell — `capture` is the front door and it
handles slugging, frontmatter, and the receipt for you.

## Contract

- **Input:** the content to save (inline arg, `--file PATH`, or `--stdin`).
- **Output:** a page in the brain DB. The brain is DB-canonical — the page
  IS the artifact; there is no companion file on disk. Receipt printed to
  stdout.
- **Side effect:** the page becomes immediately queryable via `query`,
  `search`, or any MCP-bound agent.
- **Idempotency:** same content → same `inbox/YYYY-MM-DD-<hash8>` slug.
  Content-hash dedup catches re-captures.
- **Trust:** all captures via this skill are local-CLI trust. Untrusted
  remote ingestion goes through the public MCP ingress with its own
  redaction and write-allowlist, not this verb.

## When to invoke

- "Capture this thought" / "save this" / "drop this into my brain" / "remember this"
- The user pastes content and asks to keep it
- After a meeting summary, a research note, or any synthesis that should land as a brain page

## What it does

`memrain capture` resolves to a `page_put` call against the brain. The page
lands in the DB in one move and is indexed for retrieval. The default slug
is `inbox/YYYY-MM-DD-<hash8>` so captures cluster in a predictable triage
location. From an MCP client (no shell), the equivalent is a direct
`page_put` with an `inbox/` slug and the same frontmatter stamps.

## How to use

```bash
memrain capture "the thought I want to remember"
memrain capture --file ./notes/today.md
echo "from a pipe" | memrain capture --stdin
memrain capture "..." --slug daily/2026-05-21
memrain capture "..." --type idea --source voice-whisper
memrain capture "..." --json         # structured output for agents
```

## Defaults

- **Slug:** `inbox/YYYY-MM-DD-<hash8>` (stable for same content; content-hash dedup catches re-captures).
- **Type:** `note` (override with `--type idea` etc.).
- **Frontmatter stamps:** `captured_via: capture-cli`, `captured_at: <ISO>`.
- **Title:** first non-empty line of the body, capped at 80 chars (truncation appends `…`).

## Output Format

Default prints a receipt:

```
captured:
  slug:          inbox/2026-05-21-abcdef12
  status:        created_or_updated
  content_hash:  f3a7b9c0d1e2f3a4…
  captured_at:   2026-05-21T04:15:00.000Z
```

`--json` prints structured output for downstream tools.

## Anti-Patterns

- **Don't hand-roll a `memrain call page_put` for a quick thought.** That's the
  raw per-page primitive; it doesn't know about default slug generation,
  content-type heuristics, or the receipt block. `capture` is the
  human-facing wrapper.
- **Don't try to bulk-import dozens of files by looping over `memrain capture`.**
  That's what `memrain index` is for. Capture is for single thoughts, single
  notes, single transcripts.
- **Don't pre-format the content yourself with frontmatter if you don't need to.**
  Capture wraps plain prose in sensible frontmatter (type + title +
  captured_via + captured_at). The body becomes `# Title\n\n<your prose>`.
  Pass `--file PATH` if you already have a fully-formatted markdown file.
- **Don't pass secrets as inline content.** Inline args land in shell
  history. Use `--file` or `--stdin` instead.

## When NOT to use this skill

- Bulk ingestion of many files → `skills/media-ingest/SKILL.md` or `memrain index` instead
- Article/link with author + publication metadata → `skills/idea-ingest/SKILL.md` (it knows to build the people page)
- Meeting transcripts → `skills/meeting-ingestion/SKILL.md` (attendee enrichment)

This skill is for the simple "I have a thought, save it" case. Specialized
ingestion paths handle their own slugging + cross-referencing.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.