Use when you have a written implementation plan to execute in a separate session with review checkpoints
npx skills add kevinslin/notion-agent-skill
Or install specific skill: npx add-skill https://github.com/kevinslin/notion-agent-skill
# Description
This skill should be used when the user wants to do anything with notion. should always be used before calling notion mcp
# SKILL.md
name: notion
description: This skill should be used when the user wants to do anything with notion. should always be used before calling notion mcp
When to Use This Skill
Use this skill when the user wants to:
- Add entries to Notion databases
- Create new Notion pages with structured data
- Save content from Dendron notes to Notion
- Track daily stories, tasks, lessons, or other personal data in Notion
Using the CLI
Read ./scripts/notion/USAGE.md for usage guide
Setup
- Make sure that NOTION_TOKEN is set. If not, stop and tell user to set it.
- Check that $HOME/.notion-cache.production.json is accessible. If not, run `notion sync-meta and verify that the file is created
Shortcuts
add-block
- User will supply a database and a block. If this is missing or you're not sure, ask user to confirm before proceeding.
- Use CLI
parseBlockto extract strucutred output
Important: Default toprintfpipeline for parse operations in restricted shells, and validate parse output before reporting it - Use the CLI
createcommand with structured output to create a new entry
# README.md
Notion skill
Notion skill and CLI that let you create pages, sync notes, and manage database metadata in a Notion workspace.
It works by providing a Codex skill definition plus a Node CLI in scripts/notion that talks to the Notion API.
What it enables
- Create pages in Notion databases with structured properties and markdown bodies.
- Sync local notes into Notion using rule files.
- Cache database metadata for fast lookups.
- Parse markdown blocks into structured payloads for automation.
Quickstart
cd scripts/notion
npm install
export NOTION_TOKEN=secret_xxx
node notion.js list-db --limit 5 --format table
If you install the local bin, you can replace node notion.js with notion.
Setup
- Set
NOTION_TOKEN(orNOTION_API_KEY) in the environment or a.envfile. - Run
node notion.js sync-metaonce to create$HOME/.notion-cache.production.json.
Skill usage
Use this skill when you want to:
- Add entries to Notion databases.
- Create new Notion pages with structured data.
- Save content from Dendron notes to Notion.
- Track daily stories, tasks, lessons, or other personal data in Notion.
Common commands
# List databases
node notion.js list-db --limit 10 --format table
# Create a page
node notion.js create --database-id <db-id> --properties Name="Daily note" --properties Date=2026-01-29
# Sync metadata cache
node notion.js sync-meta
# Sync notes using rules
node notion.js sync --dry-run
Full CLI reference lives in scripts/notion/USAGE.md.
add-block shortcut
Create a database entry from a single markdown block.
- Confirm the target database and the block content.
- Parse the block into
{ title, properties, body }usingparse-block(preferprintfpiping). - Use
createwith the parsed output to create the entry.
printf "%s" "## Weekend grocery reminder
- time: 08:25
- source: SMS
Please pick up apples, oats, and milk on the way home." | node notion.js parse-block
Tests
cd scripts/notion
npm test
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.