skills/notion-publish/SKILL.md
Publish a local Markdown file to a Notion page using marknotion. Use when the user wants to push README, docs, changelogs, or any Markdown content to Notion, either updating an existing page or creating a new one under a parent page.
npx skillsauth add li3p/skills notion-publishInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Push a Markdown file to a Notion page via the md2notion CLI from the
marknotion PyPI package, invoked through uvx so no install is required.
uv is installed. If command -v uv fails, stop and instruct the user to
install it (curl -LsSf https://astral.sh/uv/install.sh | sh).NOTION_TOKEN is set in the environment. If unset, stop and instruct the
user to create an internal integration at
https://www.notion.so/my-integrations and export the token.Resolve from $ARGUMENTS or by asking the user:
file: path to the local Markdown file (required).--page <url-or-id>: update an existing Notion page in place.--parent <page-id> --title <title>: create a new page under that parent.Verify prerequisites above. Do not proceed if any check fails.
Confirm the Markdown file exists and is non-empty.
Show the user the exact command you are about to run, including which page
will be overwritten. Ask for confirmation before running if --page is
used, since updating a Notion page replaces its content.
Run the command:
# Update an existing page
uvx --from marknotion md2notion <file> --page "<url-or-id>"
# Or create a new page under a parent
uvx --from marknotion md2notion <file> --parent "<parent-id>" --title "<title>"
Report the returned page URL.
marknotion supports a Markdown subset: headings h1-h3, paragraphs, bold, italic, strikethrough, inline code, links, bullet and numbered lists, fenced code blocks with language, blockquotes, horizontal rules. Anything else (tables, images, callouts, toggles, h4+) is dropped or downgraded silently. If the source file uses unsupported features, warn the user before publishing.
Do not edit the Markdown file. Do not commit. Reporting only after the push.
documentation
Search Notion for pages or databases by query using marknotion. Use when the user references a Notion page by name rather than URL, when locating a page to publish to or pull from, or when discovering what trackers and docs exist in the connected workspace.
documentation
Export a Notion page to local Markdown using marknotion. Use when the user wants to pull a spec, design doc, meeting notes, or any Notion page into the repository as a Markdown file, or wants to read Notion content as context for a task.
testing
Generate tests that match an existing project's testing style. Use when adding coverage for a target file, function, bug fix, or edge case while preserving local conventions.
testing
Validate a branch and draft a pull request description from real commits and diffs. Use when preparing a PR, checking branch readiness, or writing reviewer-facing release context.