Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add glide-the/im-dream --skill notion-sessiongit clone --depth 1 https://github.com/glide-the/im-dreamWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/glide-the/im-dream/notion-session)<a href="https://agentmods.dev/skills/glide-the/im-dream/notion-session"><img src="https://agentmods.dev/badge/skills/glide-the/im-dream/notion-session/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/glide-the/im-dream/notion-session"><img src="https://agentmods.dev/badge/skills/glide-the/im-dream/notion-session.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00072 | $0.00830 |
| Opus 5.5 | $0.00029 | $0.00332 |
| Sonnet 5.5 | $0.00014 | $0.00166 |
| Haiku 4.5 | $0.00007 | $0.00083 |
Grade A, and why
notion-session scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- 不运行 `ntn`、Bash、curl 或自定义脚本访问 Notion。 What it actually says
Notion 工作空间助手
边界
- 只读搜索、页面读取和数据库查询。
- 不运行
ntn、Bash、curl 或自定义脚本访问 Notion。 - 不读取
.notion-home、NOTION_HOME、auth.json、环境变量或任何 token。 .notion/只保存已挂载资源的 ID 和紧凑元数据,不保存页面正文。- 读取
.notion/pages/<page_id>.json时,Runtime hook 会校验 ID 属于当前 thread 索引,再按需返回当前 Markdown。
工作流
使用内置 Read 读取快照、索引和页面时,file_path 填写当前工作区内的完整文件路径,省略 PDF 专用的 pages 字段。需要分段读取较大的索引时,使用 offset 和 limit 指定起始行与行数。
- 先读
.notion/connector.json确认连接和选择范围。 - 未指定页面 ID 时读
.notion/index.json;只关心一个数据库时读.notion/databases/<database_id>.json。 - 只有用户确实需要某页正文时,才读
.notion/pages/<page_id>.json;不要批量遍历页面正文。 - Read 返回
ok:false时,按code和nextAction给出可操作反馈;Notion 局部失败不阻断其他回答。
工具选择
| 用户目标 | Read 路径 | 数据来源 |
|---|---|---|
| 搜索已挂载页面 | .notion/index.json |
定时更新的轻量索引 |
| 浏览数据库记录 ID | .notion/databases/<database_id>.json |
定时更新的轻量索引 |
| 读取一个页面正文 | .notion/pages/<page_id>.json |
Runtime hook 按需读取当前 Markdown |
参考文档
references/notion-search.md:在已挂载索引中按标题、ID 或 URL 定位。references/notion-page-read.md:按需 Markdown 正文、索引元信息和 snapshot identity。references/notion-db-query.md:浏览已挂载 database 的页面 ID 清单。
错误处理
NOTION_AUTH_REQUIRED:告诉用户前往“设置 → 资源链接 → Notion”连接或重新连接,然后重试。NOTION_PERMISSION_DENIED:告诉用户在 Notion 中向该连接授予目标页面/数据库权限,或重新连接。NOTION_CAPABILITY_UNAVAILABLE/NOTION_REQUEST_FAILED:说明服务暂不可用并建议稍后重试;继续回答不依赖 Notion 的部分。NOTION_RESOURCE_NOT_SELECTED:说明该 ID 不在当前已挂载索引中,引导用户在资源链接中选择并同步。
Notion Read hook 局部失败不等于整个 Agent 对话失败。不得猜测页面内容、伪造成功或要求用户粘贴 token。
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago Changed · +6 lines e0d32b01b109
- 1mo ago First seen · 46 lines · 72 tokens per session scan A 946418508cbf
notion-session is a skill published in the GitHub repository glide-the/im-dream (0 stars, last pushed 3d ago), licensed MIT. It adds 72 tokens to every session and 830 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.
notion-session compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| notion-sessionglide-the/im-dream | Skill | 0 | 3d ago | MIT | A | 72 | Claude Code, Codex |
| orbit-notionnexu-io/open-design | Skill | 110k | today | Apache-2.0 | A | 117 | Claude Code, Codex |
| instrument-data-to-allotropeanthropics/knowledge-work-plugins | Skill | 37k | 4d ago | Apache-2.0 | A | 123 | Claude Code |
| report-to-pdfasgeirtj/system_prompts_leaks | Skill | 74k | yesterday | CC0-1.0 | A | 17 | Claude Code, Codex |
| legal-holdanthropics/claude-for-legal | Skill | 10k | 6d ago | Apache-2.0 | A | 68 | Claude Code |
| artifact-template-minimal-letterheadasgeirtj/system_prompts_leaks | Skill | 74k | yesterday | CC0-1.0 | A | 54 | Claude Code, Codex |
| feishuHmbown/CodeWhale | Skill | 41k | yesterday | MIT | A | 33 | Claude Code, Codex |