notion-as-code — Claude Code skill: what it does, how to install
This skill sets a prerequisite for Notion as Code work in an App: the agent must read the SDK skill before making changes. It also covers troubleshooting.
npx skills add makenotion/notion-cookbook --skill notion-as-code -a claude-codeWhat notion-as-code does
The skill guides work on Notion as Code in an App. The project description says this approach can declare Notion pages, databases, teamspaces, custom agents, and data sources used by syncs.
Before creating, editing, or troubleshooting this code, the agent must read node_modules/@notionhq/apps/skills/notion-as-code/SKILL.md, resolved from the App project root. If the file is missing, install the project dependencies. If it still cannot be found, update @notionhq/apps to a release that includes the SDK skill. Changes must wait until the instructions are readable. So this workflow depends on the SDK skill being present.
What it helps with
- Declare Notion pages in an App
- Define databases and teamspaces
- Add custom agents
- Specify data sources for syncs
Example prompts for the agent
- Review the Notion as Code in my App and follow the SDK skill.
- Add a Notion database declaration to the App using the skill instructions.
- Troubleshoot this Notion as Code implementation before changing it.
How to install notion-as-code
1Skills CLI (Vercel)
npx skills add makenotion/notion-cookbook --skill notion-as-code -a claude-code2Manually: put the files in place
~/.claude/skills/notion-as-code/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/notion-as-code/
1Skills CLI (Vercel)
npx skills add makenotion/notion-cookbook --skill notion-as-code -a codex2Manually: put the files in place
.agents/skills/notion-as-code/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add makenotion/notion-cookbook --skill notion-as-code -a cursor2Manually: put the files in place
.cursor/skills/notion-as-code/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install makenotion/notion-cookbook notion-as-code2Manually: put the files in place
.github/skills/notion-as-code/SKILL.md1Skills CLI (Vercel)
npx skills add makenotion/notion-cookbook --skill notion-as-code -a gemini-cli2Platform CLI
gemini skills install https://github.com/makenotion/notion-cookbook --path apps/agents/skills/notion-as-codeManually: put the files in place
.devin/skills/notion-as-code/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add makenotion/notion-cookbook --skill notion-as-code -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about notion-as-code
How do I install notion-as-code in Claude Code?
Run npx skills add makenotion/notion-cookbook --skill notion-as-code -a claude-code. The skill file is installed at ~/.claude/skills/notion-as-code/SKILL.md.
What does notion-as-code do?
It provides instructions for Notion as Code work in an App. The agent reads the SDK skill before creating, editing, or troubleshooting the code.
Which file must the agent read before changing Notion as Code?
It must read node_modules/@notionhq/apps/skills/notion-as-code/SKILL.md relative to the App project root. If the file is missing, install project dependencies; if it remains missing, update @notionhq/apps to a release that includes the skill.
Source text
SKILL.md · MIT
--- name: notion-as-code description: Declare Notion pages, databases, teamspaces, and custom agents in an App, including data sources used by syncs. user-invocable: false --- # Apps Notion as Code Before creating, modifying, or troubleshooting Notion as Code code, read `node_modules/@notionhq/apps/skills/notion-as-code/SKILL.md`. Resolve this path relative to the App project root. Follow the instructions in that file. If the file is missing, install the project dependencies. If it remains missing, update `@notionhq/apps` to a release that includes the skill. Do not continue with Notion as Code changes until you can read the SDK skill.
© makenotion · MIT · makenotion/notion-cookbook