agentleFS
kv0906kv0906/pm-kit/.claude/skills/notion/SKILL.md

notion

Skill138 starsChanged 8 months agoMITView on GitHub

Bridge PM-Kit vault with Notion workspace — search, sync, publish, and link vault notes to Notion pages. Use when the user says "/notion", "notion sync", "publish to notion", "notion search", "sync from notion", "push to notion", "notion setup", mentions Notion in any project management context, wants to share vault content with stakeholders via Notion, or needs to pull Notion content into their vault. Also triggers when user needs to set up or connect Notion MCP.

61 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use voice-call, bear-notes and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • seedprodSkill

    voice-call

    Start voice calls via the OpenClaw voice-call plugin.

    Also in 5 projects that use this

  • seedprodSkill

    bear-notes

    Create, search, and manage Bear notes via grizzly CLI.

    Also in 7 projects that use this

  • braxtonROSE4Skill

    github-repo-management

    Clone, create, fork, configure, and manage GitHub repositories. Manage remotes, secrets, releases, and workflows. Works with gh CLI or falls back to git + GitHub REST API via curl.

    Also in 10 projects that use this

  • +9 more from seedprod

The file

Show its rules and text

We split this skill into the rules it gives an agent

27 rules. 0 are common, 10 are distinctive, and 17 are very specific to this project.

  • 0

    Common

    Most of the 58 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 17

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before any sub-command (except setup), verify Notion MCP is available:

    line 39
  2. Distinctive:

    If the tool call fails or Notion tools are not available:

    line 42
  3. Distinctive:

    After presenting, ask if the user wants help running these commands now.

    line 87
  4. Very specific:

    If the user confirms, run the claude mcp add command via Bash, then inform them they need to run /mcp themselves (it requires interactive …

    line 89
  5. Very specific:

    If --parent provided, use that Notion page/database

    line 150
  6. Very specific:

    If note has notion: in frontmatter, update existing page instead

    line 151
  7. Distinctive:

    Confirm with user: before creating:

    line 153
  8. Very specific:

    If the user provides a glob pattern or folder (e.g., /notion publish docs/my-project/), iterate over matching files and publish each one.

    line 176
  9. Very specific:

    Add notion: {page-url} to frontmatter for linking back

    line 199
  10. Very specific:

    Add ## Links section with project backlink

    line 201
  11. Distinctive:

    Keep a vault note and its linked Notion page in sync.

    line 215
  12. Very specific:

    If no Notion link exists, ask: "This note isn't linked to Notion yet.

    line 220
  13. Distinctive:

    Vault → Notion: Update the Notion page with vault content

    line 242
  14. Distinctive:

    Notion → Vault: Update the vault note with Notion content

    line 243
  15. Distinctive:

    Create a bidirectional reference between a vault note and a Notion page without syncing content.

    line 250
  16. Very specific:

    Add notion: {page-url} to frontmatter

    line 263
  17. Very specific:

    Add Notion: {page-title} to ## Links > ### Related

    line 264
  18. Very specific:

    Use mcp__claude_ai_Notion__search with data_source_url to query

    line 293
  19. Distinctive:

    When called with no arguments, show a quick status:

    line 310
  20. Distinctive:

    Verify Notion MCP connection

    line 312
  21. Very specific:

    Use the right tool for each operation.

    line 333
  22. Very specific:

    Always fetch before update: Call fetch to get current page content/schema before using notion-update-page.

    line 352
  23. Very specific:

    Checkbox properties: Use __YES__ / __NO__, not true/false.

    line 356
  24. Very specific:

    All sub-commands output to terminal.

    line 361
  25. Distinctive:

    When modifying vault files, follow all vault conventions:

    line 363
  26. Very specific:

    Use [[wikilinks]] for internal references

    line 364
  27. Very specific:

    Always use templates from _templates/ when creating new notes

    line 367

“Common” is measured: kept by at least 6 in 10 of the 58 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/notion — Notion Integration

Bridge your PM-Kit vault with Notion. Search, publish, sync, and link vault notes to Notion pages so you can share with stakeholders who live in Notion.

Context

Today's date: !date +%Y-%m-%d Config: @_core/config.yaml Active projects: !ls 01-index/*.md 2>/dev/null | sed 's|01-index/||;s|\.md||'

Input

User input: $ARGUMENTS

Sub-commands

Parse the first word of $ARGUMENTS to determine the sub-command:

Input starts withSub-commandPurpose
setupSetupGuide MCP connection + auth
search or a questionSearchFind Notion pages/databases
publishPublishPush vault note(s) to Notion
pullPullImport Notion page into vault
syncSyncTwo-way sync between vault note and Notion page
linkLinkConnect vault note <-> Notion page
dbDatabaseQuery or create Notion databases
(empty)StatusShow connection status + workspace overview

Step 0: Connection Check

Before any sub-command (except setup), verify Notion MCP is available:

  1. Try calling mcp__claude_ai_Notion__search with a simple query
  2. If the tool call fails or Notion tools are not available:
Notion MCP is not connected yet.

Run `/notion setup` to connect — it takes about 30 seconds.

Then stop. Don't attempt other operations without a working connection.


setup — Connect Notion MCP

Guide the user through connecting Notion's remote MCP server to Claude Code.

Steps to present to user:

## Notion MCP Setup

Notion's MCP server is hosted by Notion — no local install needed.

### Step 1: Add the server
Run this in your terminal:

  claude mcp add --transport http notion https://mcp.notion.com/mcp

### Step 2: Authenticate
In a Claude Code session, run:

  /mcp

Then follow the OAuth flow — it'll open your browser to authorize Notion access.

### Step 3: Verify
Once authenticated, try:

  /notion

You should see your Notion workspace overview.

Optional enrichment: Mention the Notion plugin for Claude Code which bundles pre-built skills for common Notion workflows.

After presenting, ask if the user wants help running these commands now.

If the user confirms, run the claude mcp add command via Bash, then inform them they need to run /mcp themselves (it requires interactive browser auth that can't be automated).

Scope options

Explain scope if the user asks:

  • --scope local (default): Available only in the current project
  • --scope project: Shared with team via .mcp.json file (already configured in this vault)
  • --scope user: Available across all projects

search — Search Notion

Find pages, databases, or content across the user's Notion workspace.

Processing

  1. Parse query from $ARGUMENTS (everything after "search")
  2. Search via Notion MCP — Use mcp__claude_ai_Notion__search with the query
  3. Present results in a scannable format:
## Notion Search: "{query}"

Found {count} results:

| Title | Type | Last Edited | URL |
|-------|------|-------------|-----|
| {title} | {page/database} | {date} | {url} |
  1. Offer actions: "Want to /notion pull any of these into the vault, or /notion link one to an existing note?"

Flags

  • --type page|database — Filter by content type
  • --team {name} — Filter by teamspace
  • --since YYYY-MM-DD — Filter by creation date

publish — Push Vault Note to Notion

Convert a vault note to a Notion page so stakeholders can read it in Notion.

Input

Expects: /notion publish {vault-note-path-or-wikilink} with optional --parent {notion-page-url}

Processing

  1. Resolve vault note — Find the note by path, wikilink, or fuzzy search
  2. Read the note and extract:
    • Title from H1 or frontmatter
    • Body content (convert [[wikilinks]] to plain text or Notion links if targets are also published)
    • Frontmatter metadata for Notion page properties
  3. Convert markdown to Notion format:
    • Vault [[wikilinks]] → plain text (or Notion page links if linked pages exist)
    • Preserve headings, lists, tables, code blocks
    • Convert frontmatter to a metadata callout at the top
  4. Determine parent:
    • If --parent provided, use that Notion page/database
    • If note has notion: in frontmatter, update existing page instead
    • Otherwise, create as workspace-level page and ask user where to move it
  5. Confirm with user before creating:
Publishing to Notion:
  Source: {vault-path}
  Title: {title}
  Parent: {parent-page or "workspace root"}

Proceed? (y/n)
  1. Create/update the Notion page via mcp__claude_ai_Notion__notion-create-pages or mcp__claude_ai_Notion__notion-update-page
  2. Link back — Add the Notion URL to the vault note's frontmatter:
    notion: {notion-page-url}
    And add to ## Links > ### Related:
    - [Notion: {title}]({url}) — Published to Notion

Batch publish

If the user provides a glob pattern or folder (e.g., /notion publish docs/my-project/), iterate over matching files and publish each one. Show progress via session tasks.


pull — Import Notion Page into Vault

Bring a Notion page's content into the vault as a properly formatted note.

Input

Expects: /notion pull {notion-url-or-page-id} with optional --type {doc|decision|blocker|meeting|inbox} and --project {project-id}

Processing

  1. Fetch the Notion page via mcp__claude_ai_Notion__fetch
  2. Determine note type — from --type flag, or infer from content/properties:
    • Has "Decision" or "ADR" → decision
    • Has task/blocker properties → blocker
    • Has meeting date/attendees → meeting
    • Default → doc
  3. Determine project — from --project flag, or infer from Notion page location/tags, or ask
  4. Convert to vault format:
    • Generate proper frontmatter (type, project, status, date, tags)
    • Add notion: {page-url} to frontmatter for linking back
    • Convert Notion-specific elements to standard markdown
    • Add ## Links section with project backlink
  5. Generate filename following naming conventions:
    • Docs: docs/{project}/{slug}.md
    • Decisions: decisions/{project}/{date}-{slug}.md
    • Blockers: blockers/{project}/{date}-{slug}.md
    • Meetings: meetings/{project}/{date}-{slug}.md
    • Inbox: 00-inbox/{date}-{slug}.md
  6. Write the note using the appropriate template from _templates/
  7. Confirm: Show the created file path and a summary

sync — Two-way Sync

Keep a vault note and its linked Notion page in sync.

Processing

  1. Resolve the vault note and check for notion: in frontmatter
  2. If no Notion link exists, ask: "This note isn't linked to Notion yet. Want to /notion publish it first?"
  3. Fetch both versions:
    • Read vault note
    • Fetch Notion page via mcp__claude_ai_Notion__fetch
  4. Compare and show differences:
## Sync: {note-title}

Vault version: last modified {vault-date}
Notion version: last edited {notion-date}

### Differences found:
- Section "Requirements" differs
- Notion has additional section "Stakeholder Feedback"
- Vault has updated "Timeline" section

### Recommended action:
{newer-source} is more recent. Sync {direction}?
  1. Apply sync based on user choice:
    • Vault → Notion: Update the Notion page with vault content
    • Notion → Vault: Update the vault note with Notion content
    • Manual merge: Show both versions side-by-side and let user choose per section

link — Connect Vault Note <-> Notion Page

Create a bidirectional reference between a vault note and a Notion page without syncing content.

Input

Expects: /notion link {vault-note} {notion-url-or-page-id}

Either argument can be omitted — prompt for missing info.

Processing

  1. Resolve vault note — Find by path, wikilink, or fuzzy search
  2. Resolve Notion page — By URL, page ID, or search
  3. Update vault note:
    • Add notion: {page-url} to frontmatter
    • Add [Notion: {page-title}]({url}) to ## Links > ### Related
  4. Comment on Notion page (optional, ask user):
    • Post a comment: "Linked to vault note: {note-title}"
  5. Confirm:
Linked:
  Vault: {note-path}
  Notion: {page-title} ({url})

db — Database Operations

Query or interact with Notion databases.

Sub-commands

InputAction
db listList databases the user has access to
db query {name-or-url}Query a database and display results
db create {name}Create a new database in Notion
db export {name-or-url}Export database rows as vault notes

db query

  1. Fetch the database via mcp__claude_ai_Notion__fetch to get its schema
  2. Use mcp__claude_ai_Notion__search with data_source_url to query
  3. Present results as a formatted table
  4. Offer: "Want to pull any of these into the vault?"

db export

Export each row of a Notion database as individual vault notes. Useful for importing a project tracker, meeting log, or decision register from Notion into the vault.

  1. Fetch the database and all rows
  2. For each row, create a vault note using the appropriate template
  3. Link each note back to its Notion source
  4. Show summary of created files

(empty) — Status Overview

When called with no arguments, show a quick status:

  1. Verify Notion MCP connection
  2. Show workspace info (teams, user)
  3. Show count of vault notes linked to Notion:
    grep -rl "^notion:" --include="*.md" | wc -l
## Notion Status

Connected as: {user-name}
Workspace: {workspace-name}
Vault links: {linked-count} notes linked to Notion

### Recently Linked
- {note-path} → {notion-page-title}
  ...

Available Notion MCP Tools

Use the right tool for each operation. The tool name prefix is mcp__claude_ai_Notion__.

ToolWhen to Use
searchFind pages, databases, or content across workspace + connected sources (Slack, Drive, Jira, Linear). Supports date/creator/teamspace filters. Rate limited to 30 req/min.
fetchGet full content of a page, database schema, or data source by URL/ID. Use collection:// URLs for data sources. Returns enhanced Markdown + templates. Always fetch before updating.
notion-create-pagesCreate one or more pages. Parent can be page, database, or data source. Supports templates via template_id. Omit parent for workspace-level private page.
notion-update-pageUpdate properties (update_properties), patch content (update_content with old_str/new_str), replace content (replace_content), apply templates (apply_template), or verify pages (update_verification). Always fetch first to get current content.
notion-create-databaseCreate a new database with custom properties/schema.
notion-update-data-sourceAdd/modify properties on an existing data source (add columns, change field types).
notion-move-pagesMove pages or databases to a new parent.
notion-duplicate-pageDuplicate a page (async — content appears shortly after).
notion-create-commentComment on a page, specific block, or reply to existing discussion.
notion-get-commentsList all comments/discussions on a page, including resolved threads.
notion-get-teamsList teamspaces — useful for filtering searches by team.
notion-get-usersList workspace users — useful for looking up assignees/owners.

Key patterns

  • Always fetch before update: Call fetch to get current page content/schema before using notion-update-page. The update_content command needs exact old_str matches.
  • Database workflow: Fetch database → get data source URLs (collection://...) → use data source ID for creating pages or querying.
  • Templates: Fetch a database to see available templates in <templates> section. Pass template_id when creating pages — don't include content when using a template.
  • Date properties: Split into date:{prop}:start, date:{prop}:end, date:{prop}:is_datetime.
  • Checkbox properties: Use __YES__ / __NO__, not true/false.
  • Rate limits: 180 requests/min general, 30/min for search. Avoid parallel searches.

Output

All sub-commands output to terminal. Only publish, pull, sync, and link modify vault files.

When modifying vault files, follow all vault conventions:

  • Use [[wikilinks]] for internal references
  • Maintain ## Links sections per linking rules
  • Respect frontmatter format per markdown standards
  • Always use templates from _templates/ when creating new notes

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.