Skip to content
Agent Memory
Skill

/article-enrichment

Transform raw article text dumps in the brain into structured pages with executive summary, verbatim quotes, key insights, why-it-matters, and cross-references. Replaces walls-of-text with quotable, actionable brain pages.

From plugin
gbrain
32k79 skills

Claude Code

$ npx -y skills add garrytan/gbrain --skill article-enrichment --agent claude-code

SKILL.md

article-enrichment.SKILL.md
name: article-enrichment
version: 0.1.0
description: Transform raw article text dumps in the brain into structured pages with executive summary, verbatim quotes, key insights, why-it-matters, and cross-references. Replaces walls-of-text with quotable, actionable brain pages.
triggers:
  - "enrich this article"
  - "enrich the article"
  - "enriching the article"
  - "enrich brain pages"
  - "batch enrich"
  - "enrich pass"
  - "make brain pages useful"
mutating: true
writes_pages: true
writes_to:
  - media/articles/

article-enrichment — From Raw Dumps to Useful Brain Pages

> **Convention:** see [conventions/quality.md](../conventions/quality.md) for > citation rules, verbatim-quote requirements, and back-link enforcement. > > **Convention:** see [_brain-filing-rules.md](../_brain-filing-rules.md) for > filing rules. Article pages live under `media/articles/` for raw ingest; > personalized one-of-one synthesis output uses the sanctioned > `media/articles/<slug>-personalized.md` exception.

What this does

Takes an article brain page that's a wall of raw extracted text and rewrites it as a structured page with:

  • **Executive Summary** — 2-3 sentences, the ONE thing worth remembering
  • **Why It Matters** — connects to the user's specific projects + interests

(read from brain context, not assumed)

  • **Quotable Lines** — 3-5 VERBATIM quotes worth referencing in essays
  • **Key Insights** — actual insights, not topic labels
  • **Surprising or Counterintuitive** — what makes this content unique
  • **See Also** — standard markdown links to related brain pages

Raw source content is preserved in a collapsed `<details>` section so the original is never lost.

When to invoke

  • New article page lands in the brain via media-ingest with `needs_enrichment: true`
  • Existing article page is a wall of text under a `## Content` header with

no synthesis

  • User says a brain page is useless, boring, or a dump
  • An LLM-judge brain-quality eval fails on quotability or actionability for

an article page

The pipeline

1. READ      → Open the article brain page; parse frontmatter + body.
2. SCAN      → Look for ## Content (raw dump) and absence of ## Executive Summary.
3. CONTEXT   → gbrain query the article's key entities to ground "Why It Matters".
4. ENRICH    → Sonnet (default) or Opus (for high-value content) restructures.
5. WRITE     → Replace ## Content with the structured sections; preserve raw
               source in <details>; clear needs_enrichment in frontmatter.
6. CROSS-LINK→ Add back-links from referenced people/companies pages
               (Iron Law per conventions/quality.md).

Invocation

The skill itself is markdown instructions to the agent. It does NOT ship a deterministic CLI command in v0.25.1. The agent uses gbrain's existing operations:

# 1. Find candidate pages
gbrain query "needs_enrichment: true type:article" --limit 50

# 2. For each candidate, read the page
gbrain get media/articles/<slug>

# 3. Enrich via the agent's LLM (Sonnet by default; Opus for high-value)
#    The agent reads the raw content + brain context + writes the structured page.

# 4. Write the enriched page
#    Use the put_page operation with the new structured markdown body.

# 5. Cross-link entities
#    For every person/company mentioned, add a timeline back-link.

Quality bar

An enriched page passes if it has:

  • ✅ `## Executive Summary` (2-3 sentences)
  • ✅ `## Quotable Lines` with ≥3 verbatim quotes (literal quotes, not paraphrase)
  • ✅ `## Key Insights` with ≥3 bullets (insights, not topic labels)
  • ✅ `## Why It Matters` connecting to specific brain context (not generic)
  • ✅ `## See Also` with standard markdown links (NOT `[[wiki-links]]`)
  • ✅ `<details>` block preserving the raw source content

Model selection

| Model | Use when | Quote accuracy | |-------|----------|----------------| | **Sonnet** (default) | Bulk enrichment, most articles | Good — occasionally paraphrases | | **Opus** | High-value content, original-thinking pieces, longreads | Excellent — respects "verbatim" instruction |

Rule: for bulk enrichment, do a Sonnet draft pass and spot-check 5 with the LLM-judge brain-quality eval. If quotes are paraphrased, switch to Opus for that batch.

Link convention

All cross-references use standard markdown links: `[Title](relative/path.md)`. NEVER use `[[wiki-links]]` — they don't render on GitHub.

When it fails

Follow the [agent operator protocol](../conventions/agent-operator-protocol.md) for any gbrain error `code`, exit code, `[AGENT]` block or notice block. Specific to this skill:

  • `get_page` returns `page_not_found`: the raw dump moved or the slug is wrong; search for the title before reporting the article missing.
  • The rewrite returns `revision_conflict`: someone else edited the page since you read it. Re-read, re-apply the enrichment to the new text, and save with the new revision; never overwrite blind.
  • `write_pending` (exit 10): poll `gbrain write-request <request_id>`; only report the page enriched once the receipt commits.

Anti-Patterns

  • ❌ Paraphrasing quotes ("the author argues that…"). Quotes are verbatim

or they're not quotes.

  • ❌ Generic "Why It Matters" ("this is important because innovation").

Tie to specific brain context or remove the section.

  • ❌ Inventing topic labels and calling them insights. An insight is a

thing the article says that you didn't already know.

  • ❌ Discarding the raw source. Always wrap it in `<details>`.
  • ❌ Re-enriching non-idempotently — check the `needs_enrichment` flag in

frontmatter; skip if already false.

Related skills

  • `skills/media-ingest/SKILL.md` — creates the raw article pages this skill enriches
  • `skills/idea-ingest/SKILL.md` — link/article ingestion with author people-page enforcement
  • `skills/conventions/quality.md` — citation + back-link rules

Contract

This skill guarantees:

  • Routing matches the canonical triggers in the frontmatter.
  • Output writt
Read more
@garrytan
Ships withgbrain

Garry's Opinionated OpenClaw/Hermes Agent Brain

Stars on GitHub

Momentum

stars in total
32.3k
Star history of garrytan/gbrain on GitHub, a chart by star-history.com

Other skills on gbrain.

brain-ingest-gate

brain-ingest-gate

Pre-write quality gate for content entering the brain. No raw copies: a bare cp/mv into the brain repo is a bug. Before any new…

@garrytan@garrytanInstall Skill
brain-link-discipline

brain-link-discipline

When you report a brain page to the user — created, edited, committed, or relayed from a subagent — a working link is part of the…

@garrytan@garrytanInstall Skill
brain-ops

brain-ops

Brain knowledge base operations. The core read/write cycle: brain-first lookup, read-enrich-write loop, source attribution,…

@garrytan@garrytanInstall Skill
concept-synthesis

concept-synthesis

Deduplicate and synthesize raw concept stubs into a tiered intellectual map (T1 Canon to T4 Riff), tracing idea evolution across…

@garrytan@garrytanInstall Skill
context-audit

context-audit

Token-hygiene audit of the always-loaded context stack — CLAUDE.md, AGENTS.md, auto-memory MEMORY.md, and the bootstrap-rendered…

@garrytan@garrytanInstall Skill
correction-pipeline

correction-pipeline

When the user corrects a factual error, root-cause it immediately. Don't just note the correction — trace the error to its…

@garrytan@garrytanInstall Skill

More skills from other plugins.

agent-cost-report

agent-cost-report

Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…

@thedotmack@thedotmackInstall Skill
bot-handoff

bot-handoff

Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…

@vectorize-io@vectorize-ioInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

mempalace13d60k
@mempalace@mempalaceInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

mempalace13d60k
@milla-jovovich@milla-jovovichInstall Skill

Questions about article-enrichment.

Which coding agents can use article-enrichment?
article-enrichment installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.