agentleFS
HAOYI99HAOYI99/skills/notion-mcp/SKILL.md

notion-mcp

Skill1 starsChanged 10 days agoApache-2.0View on GitHub

Use for Notion MCP setup and operations: initialize Notion config, search Notion, create/update pages or tasks, sync tasks to Notion, add comments. Trigger on \"Notion\", \"setup Notion\", \"configure Notion\", \"sync to Notion\", \"create a Notion task\", \"update Notion\", or \"comment in Notion\".

  • Reads credentials
  • In this repository2 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

25 rules. About 0 are common, 16 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user explicitly wants a Notion read or write, or needs to initialize Notion config for the first time.

    line 8
  2. Very specific:

    Run when .env.local has no Notion values, or user asks to set up / reconfigure Notion.

    line 12
  3. Very specific:

    Use tool_search to probe for Notion MCP tools (search for notion).

    line 16
  4. Distinctive:

    Wait for user confirmation that MCP is connected before continuing.

    line 26
  5. Distinctive:

    Do you work with a single default Notion project, or pick a project per task?

    line 34
  6. Distinctive:

    Do you have any custom preferences for every row the agent creates?

    line 41
  7. Very specific:

    Always set a Source property to AI

    line 42
  8. Very specific:

    Always fill a Start Date property with today's date

    line 43
  9. Very specific:

    Always apply a Tags value of AI

    line 44
  10. Very specific:

    Use NOTION_CUSTOM_PROP_<PROPERTY_NAME>=__today__ for date fields the agent should fill automatically.

    line 47
  11. Distinctive:

    Do you want to review what will be written before the agent pushes to Notion?

    line 51
  12. Very specific:

    After all answers: write to .env.local (git-ignored), confirm what was saved.

    line 55
  13. Distinctive:

    Do not write to Notion unless the user asks.

    line 76
  14. Distinctive:

    Search for an existing matching page before creating a new one.

    line 77
  15. Distinctive:

    Use exact property names from the target data source schema.

    line 78
  16. Distinctive:

    Use Notion MCP when the user asks to:

    line 84
  17. Distinctive:

    create a Notion task, page, or database item

    line 86
  18. Distinctive:

    update a Notion page or task status

    line 87
  19. Distinctive:

    search Notion for an existing task or document

    line 88
  20. Distinctive:

    add or manage comments in Notion

    line 90
  21. Distinctive:

    Do not use Notion MCP for local-only updates or draft summaries with no Notion write.

    line 93
  22. Very specific:

    Load config: Read .env.local. Missing required values → run init interview before continuing.

    line 99
  23. Distinctive:

    Check for duplicates: Search Notion first. Reuse or update existing page when clearly the same item.

    line 102
  24. Very specific:

    If NOTION_REVIEW_BEFORE_WRITE=true: show a preview of all fields and values, wait for explicit user confirmation before writing.

    line 105
  25. Distinctive:

    No duplicate page created when a matching page already existed.

    line 113

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Use this skill when the user explicitly wants a Notion read or write, or needs to initialize Notion config for the first time.

Initialization (required once per workspace)

Run when .env.local has no Notion values, or user asks to set up / reconfigure Notion.

Step 1 — Check Notion MCP

Use tool_search to probe for Notion MCP tools (search for notion).

  • Tools found → MCP ready, proceed to interview.
  • No tools found → tell user:

    Notion MCP is not connected. Follow the official setup guide: https://developers.notion.com/guides/mcp/get-started-with-mcp

    Once done, reload your MCP tools and run setup again.

    Wait for user confirmation that MCP is connected before continuing.

Step 2 — Interview

Interview the user — one question at a time — until all values are captured. Then write to .env.local.

Interview sequence

  1. Do you work with a single default Notion project, or pick a project per task?
    • single → collect project page URL → NOTION_PROJECT_PAGE_URL, set NOTION_PROJECT_MODE=single.
    • prompt → set NOTION_PROJECT_MODE=prompt; ask project page at sync time.
  2. What is the Notion database / data source ID for your tasks? (format: collection://... or plain database ID)
    • Save as NOTION_TASKS_DATA_SOURCE_ID.
  3. Do you have any custom preferences for every row the agent creates? For example:
    • Always set a Source property to AI
    • Always fill a Start Date property with today's date
    • Always apply a Tags value of AI
    • Or any other field/value pair
    • Collect all stated preferences as NOTION_CUSTOM_PROP_<PROPERTY_NAME>=<value> pairs.
    • Use NOTION_CUSTOM_PROP_<PROPERTY_NAME>=__today__ for date fields the agent should fill automatically.
  4. Any other preferences? Keep asking until user says no.
  5. Do you want to review what will be written before the agent pushes to Notion?
    • yes → set NOTION_REVIEW_BEFORE_WRITE=true; agent shows a preview and waits for confirmation on every create/update.
    • no → set NOTION_REVIEW_BEFORE_WRITE=false; agent writes immediately.

After all answers: write to .env.local (git-ignored), confirm what was saved.

.env.local format:

# single = one default project | prompt = ask per task
NOTION_PROJECT_MODE=single
NOTION_PROJECT_PAGE_URL=https://www.notion.so/<your-project-page-id>
NOTION_TASKS_DATA_SOURCE_ID=collection://<your-data-source-id>

# true = show preview and wait for confirmation before every write
NOTION_REVIEW_BEFORE_WRITE=true

# Custom properties applied to every AI-created row
# NOTION_CUSTOM_PROP_Source=AI
# NOTION_CUSTOM_PROP_Tags=AI
# NOTION_CUSTOM_PROP_Start_Date=__today__

Core rules

  • Do not write to Notion unless the user asks.
  • Search for an existing matching page before creating a new one.
  • Use exact property names from the target data source schema.
  • Apply every NOTION_CUSTOM_PROP_* entry on each AI-created row. Skip silently only if the property does not exist in the schema — ask one question first to confirm.
  • Pass relation and multi-select values as JSON text strings, not raw arrays.

When to use Notion MCP

Use Notion MCP when the user asks to:

  • create a Notion task, page, or database item
  • update a Notion page or task status
  • search Notion for an existing task or document
  • sync a task record into Notion
  • add or manage comments in Notion
  • prepare a Notion-ready summary and then write it

Do not use Notion MCP for local-only updates or draft summaries with no Notion write.

Workflow

  1. Confirm outcome. Distinguish search / draft only / create / update / comment / sync.
  2. Load config. Read .env.local. Missing required values → run init interview before continuing.
    • NOTION_PROJECT_MODE=prompt → ask which project page for this task.
  3. Check for duplicates. Search Notion first. Reuse or update existing page when clearly the same item.
  4. Write to Notion.
    • If NOTION_REVIEW_BEFORE_WRITE=true: show a preview of all fields and values, wait for explicit user confirmation before writing.
    • Apply all NOTION_CUSTOM_PROP_* values. Resolve __today__ to current date.
  5. Report. State what changed in Notion.

Completion checks

  • Requested Notion action completed or specific blocker identified.
  • No duplicate page created when a matching page already existed.
  • All NOTION_CUSTOM_PROP_* entries applied to the created/updated row.
  • Report states exactly what changed.

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.