📄 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 (
<details>), 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 <repo>/.codex/hooks.json):
{
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit|apply_patch",
"hooks": [
{
"type": "command",
"command": "/path/to/agent-notion-template-docs/hooks/notion-doc-lint.py"
}
]
}
]
}
}
The script reads the tool payload on stdin and takes no arguments. It
understands both payload shapes — Claude Code's file_path and Codex's
apply_patch body.
Claude Code
/plugin marketplace add heyman333/agent-notion-template-docs
/plugin install notion-doc@agent-notion-template-docs
Choosing an install scope
By default the plugin is installed at the user scope — it applies to all of your projects and never touches the repo, so teammates are unaffected.
To narrow or widen that, pass --scope on the CLI:
# just me, just this project (.claude/settings.local.json — auto-gitignored)
claude plugin marketplace add heyman333/agent-notion-template-docs --scope local
claude plugin install notion-doc@agent-notion-template-docs --scope local
# the whole team on this project (.claude/settings.json — commit it)
claude plugin marketplace add heyman333/agent-notion-template-docs --scope project
claude plugin install notion-doc@agent-notion-template-docs --scope project
With project scope, teammates get an install prompt on their next session after pulling. With local scope, nothing you install shows up in git.
Updating
New versions ship through this marketplace repo, so refresh the marketplace first, then update the plugin:
/plugin marketplace update agent-notion-template-docs
/plugin update notion-doc@agent-notion-template-docs
Or from the CLI, passing the scope you installed at:
claude plugin marketplace update agent-notion-template-docs
claude plugin update notion-doc@agent-notion-template-docs --scope user # or local / project