article-enrichment
它能做什么
这项技能改进知识库中那些只是一大段原始文字的文章页面。它会为这些页面重写摘要、逐字引语、关键洞见,并链接到相关页面。
适用场景
- ✓当知识库中的某篇文章只是一大段没有摘要的原始文字时。
- ✓当你想从已保存的文章中提取可引用的句子和洞见时。
- ✓当你说已保存的文章页面不好用,需要重写时。
技能链接
https://github.com/garrytan/gbrain/blob/master/plugin/skills/article-enrichment/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我知识库里的这篇文章页面只是一大段文字。请帮我重写,加上摘要、关键引语,以及它对我为什么重要。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会读取原始文字,写出摘要、一段基于你项目的关于它为何对你重要的说明,以及三到五条逐字引语。原文会保留在一个折叠的部分中,因此不会丢失任何内容。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
article-enrichment — From Raw Dumps to Useful Brain Pages
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.
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
## Contentheader 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 Lineswith ≥3 verbatim quotes (literal quotes, not paraphrase) - ✅
## Key Insightswith ≥3 bullets (insights, not topic labels) - ✅
## Why It Mattersconnecting to specific brain context (not generic) - ✅
## See Alsowith 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 for any gbrain error code, exit code, [AGENT] block or notice block. Specific to this skill:
get_pagereturnspage_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): pollgbrain write-request <request_id>; onl
常见问题
引语准确吗?
准确。技能使用文章中的逐字引语,并注明出处。
原文会被删除吗?
不会。原文会保留在页面中一个折叠的部分里。
它会猜测对我重要的内容吗?
不会。它会读取你知识库中的项目和兴趣,而不是自行假设。
详情
作者的原始描述
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.
repo: garrytan/gbrain
热度
- GitHub 星标
- 31k
- 排名
- #9286
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …