agentleFS
ignromanovignromanov/llm-obsidian-wiki/skills/capture/SKILL.md

capture

Skill17 starsChanged 6 months agoMITView on GitHub

This skill should be used when an agent needs to ingest a source (URL, YouTube, GitHub, PDF, clipboard, session log) into the vault. Triggers when wiki-scribe or wiki-researcher needs to "capture", "save source", "intake", "file URL", or "hash and store".

29 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use health, brief and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • genomewalkerSkill

    health

    Soul system health check with remediation

    Also in 3 projects that use this

  • AnthropicSkill

    brief

    Generate contextual briefings for legal work — daily summary, topic research, or incident response. Use when starting your day and need a scan of legal-relevant items across email, calendar, and contracts, when researching a specific legal question across internal sources, or when a developing situation (data breach, litigation threat, regulatory inquiry) needs rapid context.

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 7 projects that use this

  • SentrySkill

    onboard

    Onboard a service to sentry-options. Use when integrating a new service, creating schemas, or setting up the multi-repo sentry-options workflow.

    Also in 3 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 4 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 27 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If source <500 words: preserve full content as single claim

    line 51
  2. Distinctive:

    If 500–5000 words: top-5 verbatim quotes with anchors (paragraph index)

    line 52
  3. Distinctive:

    If >5000 words: top-10 quotes with anchors

    line 53
  4. Very specific:

    If all three fail, exit 3 and tell user to provide content via capture-text.sh (manual clipboard).

    line 70
  5. Distinctive:

    Every output has SHA-256 in frontmatter

    line 74
  6. Distinctive:

    DO NOT interpret content during capture (preserve verbatim)

    line 91
  7. Distinctive:

    DO NOT synthesize across sources (that's research's job)

    line 92
  8. Very specific:

    DO NOT edit existing wiki pages (only create raw/ + wiki/sources/)

    line 93

“Common” is measured: kept by at least 6 in 10 of the 27 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Capture — Universal Source Intake

Purpose

Ingest one source into raw/<type>/<slug>.<ext> (immutable, SHA-256 hashed) and create wiki/sources/<slug>.md (source-summary with key_claims[]).

Used by wiki-scribe (primary, passive intake) and wiki-researcher (via research workflow).

Trigger phrases (agent perspective)

  • "capture this URL"
  • "save this PDF"
  • "intake source"
  • "file clipboard"
  • "hash and store this"
  • "wiki-scribe should ingest X"

Inputs

One of:

  • URL (any https://)
  • YouTube link
  • GitHub link (issue / PR / repo)
  • PDF (path or URL)
  • Raw text (clipboard, session log, transcript)

Outputs

Two files per capture:

  1. raw/<type>/<slug>.<ext> — immutable, SHA-256 in frontmatter, full content
  2. wiki/sources/<slug>.md — source-summary with key_claims: [{quote, anchor, confidence}], quality, captured_by

Workflow

  1. Detect source type from URL or path:
    • *.pdf → capture-pdf.sh
    • youtube.com/* or youtu.be/* → capture-youtube.sh
    • github.com/*/issues/* or */pull/* → capture-github.sh
    • github.com/*/pulls → capture-prs.sh
    • text without URL → capture-text.sh
    • other URL → capture-url.sh
  2. Invoke the appropriate script with --vault $VAULT_PATH and --source $INPUT. Scripts handle SHA-256 and frontmatter.
  3. Extract key_claims for source-summary:
    • If source <500 words: preserve full content as single claim
    • If 500–5000 words: top-5 verbatim quotes with anchors (paragraph index)
    • If >5000 words: top-10 quotes with anchors
  4. Set quality field in source-summary:
    • high if extraction succeeded with >500 chars
    • medium if 200-500 chars (paywall preview, partial)
    • low if <200 chars or extraction errors
  5. Set captured_by to invoking agent name (wiki-scribe or wiki-researcher).

Web→MD stack (for capture-url.sh)

The script tries three extractors in order:

  1. defuddle (Node CLI, MIT, local) — primary
  2. trafilatura (Python CLI, Apache-2.0, local) — fallback if defuddle fails OR content <500 chars
  3. r.jina.ai (cloud) — opt-in via env WIKI_ALLOW_CLOUD=1

If all three fail, exit 3 and tell user to provide content via capture-text.sh (manual clipboard).

Quality gate

  • Every output has SHA-256 in frontmatter
  • wiki/sources/<slug>.md is in tier 4
  • key_claims is never empty for sources >500 words (if empty, log warning)
  • captured_by is set

Scripts used

  • ${CLAUDE_PLUGIN_ROOT}/scripts/capture-url.sh
  • ${CLAUDE_PLUGIN_ROOT}/scripts/capture-youtube.sh
  • ${CLAUDE_PLUGIN_ROOT}/scripts/capture-github.sh
  • ${CLAUDE_PLUGIN_ROOT}/scripts/capture-prs.sh
  • ${CLAUDE_PLUGIN_ROOT}/scripts/capture-pdf.sh
  • ${CLAUDE_PLUGIN_ROOT}/scripts/capture-text.sh
  • ${CLAUDE_PLUGIN_ROOT}/scripts/capture-git-log.sh

Anti-patterns

  • DO NOT interpret content during capture (preserve verbatim)
  • DO NOT synthesize across sources (that's research's job)
  • DO NOT edit existing wiki pages (only create raw/ + wiki/sources/)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.