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.
73%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./plugin/skills/article-enrichment/SKILL.mdThe canonical home for this skill is article-enrichment in garrytan/gbrain
Convention: see conventions/quality.md for citation rules, verbatim-quote requirements, and back-link enforcement.
Convention: see _brain-filing-rules.md for filing rules. Article pages live under
media/articles/for raw ingest; personalized one-of-one synthesis output uses the sanctionedmedia/articles/<slug>-personalized.mdexception.
Takes an article brain page that's a wall of raw extracted text and rewrites it as a structured page with:
Raw source content is preserved in a collapsed <details> section so the
original is never lost.
needs_enrichment: true## Content header with
no synthesis1. 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).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.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 | 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.
All cross-references use standard markdown links: [Title](relative/path.md).
NEVER use [[wiki-links]] — they don't render on GitHub.
Follow the agent operator protocol 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.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.<details>.needs_enrichment flag in
frontmatter; skip if already false.skills/media-ingest/SKILL.md — creates the raw article pages this skill enrichesskills/idea-ingest/SKILL.md — link/article ingestion with author people-page enforcementskills/conventions/quality.md — citation + back-link rulesThis skill guarantees:
writes_to: (when applicable).quality.md, brain-first.md, _brain-filing-rules.md) are followed.The full behavior contract is documented in the body sections above; this section exists for the conformance test.
The skill's output shape is documented inline in the body sections above (see "Output", "Brain page format", or equivalent). The literal section header here exists for the conformance test (test/skills-conformance.test.ts).
garrytan/gbrain
c3e8fd2
Canonical home
since Jul 24, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.