
让你的AI代理编写像Notion这样的文档——Claude代码技能,锁定文档结构和Notion视觉风格
概览
让你的AI代理像Notion那样写文档——而不是像AI一样。 让AI代理创建文档,你通常会得到类似的输出:紫色渐变的英雄、充满表情符号的标题、带有阴影的卡片。 是一项代理技能,赋予这些文档类似Notion的视觉风格。 它不决定文档内容或结构。内容和大纲仍由你的代理人处理。Notion-doc只负责演示。 该技能提供了一组 Notion 中常用的 HTML 模块: - 表情页面图标、标签包、元线和面包屑 - 五种颜色的标注:蓝色(关键点)、灰色(备注)、绿色(已完成)、黄色(注意)和红色(警告) - 目录、简单表格、两列布局和按钮 - 切换功能( )、带删除线、引号和书签卡的检查列表 - 使用棱镜高亮的代码块,具有明暗主题 - 内联代码 - Notion风格文本颜色:蓝色、红色、橙色、绿色和紫色 - 韩语识别行......
概述(AI 翻译)
让你的AI代理像Notion那样写文档——而不是像AI一样。
한국어
让AI代理创建文档,你通常会得到类似的输出:紫色渐变的英雄、充满表情符号的标题、带有阴影的卡片。
notion-doc 是代理技能,赋予这些文档类似 Notion 的视觉风格。
它不决定文档内容或结构。内容和大纲仍由你的代理人处理。Notion-doc只负责演示。
| 没有 notion-doc | 带有 notion-doc |
|---|---|
内容
该技能提供了一组 Notion 中常用的 HTML 模块:
- 表情页面图标、标签丸、元线条和面包屑
- 五种颜色的呼喊:蓝色(关键点)、灰色(注)、绿色(完成)、黄色(注意)和红色(警告)
- 目录、简单表格、两列布局和按钮
- 切换(
),包含删除线、引言和书签卡的检查表 - 使用棱镜的语法高亮代码块,具有明暗主题
- 内联代码
- Notion风格文本颜色:蓝色、红色、橙色、绿色和紫色
- 韩语识别断线(
word-break: keep-all) - 带有[[T2]的打印/PDF布局]
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
📄 notion-doc
Make your AI agent write documents like Notion — not like an AI.
Ask an AI agent to create a document and you’ll often get the same kind of output: a purple gradient hero, emoji-heavy headings, cards with drop shadows.
notion-doc is an agent skill that gives those documents a Notion-like visual style.
It doesn’t decide what goes into your document or how it’s structured. Your agent still handles the content and outline. notion-doc only handles the presentation.
| Without notion-doc | With notion-doc |
|---|---|
What it includes
The skill provides a set of HTML blocks commonly used in Notion:
- Emoji page icons, tag pills, meta lines, and breadcrumbs
- Callouts in 5 colors: blue (key point), gray (note), green (done), yellow (caution), and red (warning)
- Table of contents, simple tables, 2-column layouts, and buttons
- Toggles (``), checklists with strikethrough, quotes, and bookmark cards
- Syntax-highlighted code blocks using Prism, with light and dark themes
- Inline code
- Notion-style text colors: blue, red, orange, green, and purple
- Korean-aware line breaking (
word-break: keep-all) - Print/PDF layout with
@media print
One template for the visual style
The agent doesn’t generate CSS for each document. It copies template.html and fills in the content.
The template defines a 720px content width, #2C2C2B text color, and Notion’s light and dark color palettes as CSS tokens.
Dark mode follows the viewer’s theme. When printed or exported to PDF, it switches back to the light palette.
| Light | Dark |
|---|---|
Install
notion-doc ships as a portable Agent Plugin — one
plugin.json, one skills/ directory, one hook. Codex and Claude Code install
the same files.
Codex
Install it as a plugin:
codex plugin marketplace add heyman333/agent-notion-template-docs
Then pick notion-doc in the plugin browser:
/plugins
Or drop the skill in by hand — it is a directory, nothing to build:
# this repo only
mkdir -p .agents/skills && cp -r skills/notion-doc .agents/skills/
# every project
mkdir -p ~/.agents/skills && cp -r skills/notion-doc ~/.agents/skills/
Codex picks it up on the next session. Ask for a document and it applies on its
own; to force it, type $notion-doc.
If you install by hand rather than as a plugin, the lint hook does not come
along. Wire it up once in ~/.codex/hooks.json (or /.codex/hooks.json):
{
"hooks": {
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add heyman333/agent-notion-template-docs