reports
它能做什么
这项技能会为报告加上日期和时间保存,方便之后查找。它可以加载某个类别中最新的报告,例如晨间简报或会议摘要。
适用场景
- ✓当定时任务生成了一份你想带时间戳保存的报告时。
- ✓当你想获取某个类别中最新的报告,例如晨间简报或会议同步时。
- ✓当你想在报告发送前确认其中的链接仍然有效时。
技能链接
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-daily/skills/reports/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请给我看最新的晨间简报,并确保其中所有链接仍然有效。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会按类别把每份报告保存在一个文件夹中,文件名包含日期和时间。当你按关键词搜索时,它会把该词对应到正确的类别,并加载最新的文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Reports Skill
Contract
This skill guarantees:
- Reports saved with timestamped filenames and frontmatter
- Keyword routing: query → report category mapping
- Latest report loadable by category name
- Reports are searchable via gbrain search/query
- Outbound reports pass the Actionability Gate (below) before delivery
Phases
- Save report. Write to
reports/{category}/{YYYY-MM-DD-HHMM}.mdwith frontmatter:--- title: {report title} type: note # a type the default pack declares; `report` is undeclared report_type: {category name} category: {category name} date: {YYYY-MM-DD} time: {HH:MM PT} --- - Load latest. Given a category, find the most recent report file.
- Keyword routing. Map common queries to report categories:
- "email" / "inbox" → ea-inbox-sweep
- "social" / "mentions" → social-mentions
- "briefing" / "morning" → morning-briefing
- "meeting" → meeting-sync
- Custom mappings configurable
Output Format
Saved: reports/{category}/{YYYY-MM-DD-HHMM}.md
Loaded: full report content with metadata.
Actionability Gate
Before any report reaches the user — a morning briefing, a meeting digest, a
research report — every link must answer one question: can the user click
this and immediately act? The link canon (deterministic, never-guessed URLs)
lives in skills/_output-rules.md under Deterministic Links; this gate adds
the delivery-time failure taxonomy and the retry loop.
Four failure modes
| Mode | What it means | Example |
|---|---|---|
| Broken | Link is fake or a placeholder | https://example.com, TODO-find-link |
| Dead | Link to a brain page that isn't committed/pushed | Page written but not pushed — the link 404s |
| Indirect | Link goes somewhere, but not the right place | x.com/alice-example (profile) instead of x.com/alice-example/status/<id> (the specific post) |
| Missing | Actionable item mentioned with no link at all | "the clip making the rounds (~800K views)" with no URL |
Broken, Dead, and Indirect block delivery. Missing is a warning — flag it, don't block. A missing link is honest. An indirect link is a broken promise.
Blocked vs warning
| Pattern | Status | Why it fails |
|---|---|---|
x.com/<handle> |
Blocked | Profile ≠ post. Link to x.com/<handle>/status/<id> |
| Bare publication domain | Blocked | Homepage ≠ article. Add the article path |
youtube.com/@channel |
Blocked | Channel ≠ video. Link to youtube.com/watch?v=... |
| Brain-page link, file uncommitted | Blocked | Link 404s until committed + pushed |
example.com / TODO placeholder |
Blocked | Not a real link |
google.com/search?q=... |
Warning | Search ≠ source. Link to the actual result |
| Actionable bullet with no URL | Warning | Where? Link it or describe how to find it |
The retry loop (agent-run checks)
There is no enforcement script. The agent runs these checks itself before delivering any report with links:
- Compose the report.
- Scan every link against the failure modes above:
- Brain-page links: run
git statusin the brain repo — an uncommitted page behind a link is a Dead link; commit + push first.gbrain get <slug>confirms the page exists at all. - External links: a profile, homepage, or channel URL standing in for specific content is Indirect.
- Brain-page links: run
- If a check fails, fix the link:
- Have the direct URL (post ID, article path, filing page)? Use it.
- Don't have it? Search the source for the specific item.
- Can't find it? Remove the link and describe the content instead: "clip on @alice-example's timeline, ~800K views — search there." Never leave a profile link as a substitute for a content link.
- Re-check.
- Max 2 retries → deliver with an explicit warning flag if Missing-class warnings remain. Broken, Dead, and Indirect links never ship.
LLM-prompt gate snippet
Paste into any report-generating prompt (subagent digests, research summaries, cron report jobs):
ACTIONABILITY GATE: Before finishing, verify every link answers "can the user
click this and act immediately?"
- Every X link → https://x.com/{user}/status/{post_id} — NEVER a profile link
- Every article → full URL with path — NEVER a bare domain
- Every brain-page link → committed + pushed, or don't link it
- If you don't have the direct URL → describe the content WITHOUT a link
- A mis
常见问题
它如何找到正确的报告?
它会把邮件(email)、社交(social)、简报(briefing)或会议(meeting)等常用词对应到相应的类别。
报告发送前会检查链接吗?
会。它的链接检查会在报告发送前确认每个链接都有效且有用。
我能搜索已保存的报告吗?
能。可以使用知识库的搜索工具查找已保存的报告。
详情
作者的原始描述
Save and load timestamped reports. Keyword routing for fast lookup. Cron jobs save output as reports; the agent or user queries them by keyword. Includes the Actionability Gate: delivery-time link checks (Broken/Dead/Indirect/ Missing) for briefings, meeting digests, and research reports.
repo: garrytan/gbrain
热度
- GitHub 星标
- 31k
- 排名
- #9280
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …