skills/working-with-notion-programmatically/SKILL.md
Use mcpc to interact with the Notion MCP server: connect sessions, search workspace content, fetch pages/databases, and run helper scripts for common Notion actions.
npx skillsauth add aufrank/agent-skills working-with-notion-programmaticallyInstall 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.
Drive the Notion MCP server via mcpc for search, fetch, comments, and follow-on Notion tools using deterministic scripts. This skill favors Code Mode patterns: auth preflight, dynamic schema caching, file-backed outputs, and small templates.
mcpc https://mcp.notion.com/mcp login --profile <name> manually, then retry.@notion as '@notion').mcpc on PATH; Python 3.12+ for scripts; jq optional for local inspection.references/, templates/, mcp_tools/, view script help, and run auth preflight that only reads profiles.mcpc call (network), connecting sessions, and all helper scripts (they call mcpc). Prompt the user to login in their own shell/browser if auth is missing.mcpc ... login.notion_common.ensure_auth) to ensure profile + connectivity; if it fails, instruct the user to login manually.mcp_tools/ (see instructions below).templates/plan.search.json or templates/plan.fetch.json; note expected outputs.results/ and keep stdout minimal.templates/: plan.*.json, results.*.json, progress.log skeleton.mcp_tools/: Cache of tool schemas pulled via mcpc --json … tools-get … to avoid large responses in context.references/: Minimal pointers for filters, tool names, and PowerShell quoting.results/ (JSON + snippets) so the model can re-open files instead of re-calling MCP.scripts/notion_search.py: search with filters; supports --pretty, --ids-only, --output. Writes parsed payload to results/search.json by default.scripts/notion_fetch.py: fetch page/database; --output writes raw JSON (default results/fetch.json).scripts/notion_fetch_plain.py: fetch + compact snippet; --output writes summary text (default results/fetch_snippet.txt) and payload JSON if requested.scripts/notion_comments.py: fetch comments, optional author filter; --output writes parsed comments (default results/comments.json).scripts/notion_pretty.py: pretty-printer for any mcpc --json output (no network).mcpc https://mcp.notion.com/mcp login --profile <name>default. Server override: set MCP_SERVER.~/.mcpc/profiles.json for the profile/server and then run a lightweight connectivity probe (tools-list). On failure they exit with clear instructions to login manually; they do not open a browser.results/ files before re-running network calls.progress.log. If interrupted, read existing outputs and continue from step 3 of the loop.results/ or mcp_tools/.scripts/notion_search_and_fetch.py: search + fetch in one run; outputs search payload + search IDs (results/search_and_fetch.search_ids.txt), fetch IDs (results/search_and_fetch.fetch_ids.txt), snippets, fetch JSON, optional payloads dir.scripts/notion_bulk_fetch.py: fetch IDs from --ids/--ids-file; outputs JSON, snippets, and results/bulk_fetch.ids.txt for downstream steps.scripts/notion_extract_mentions.py: scan payload JSONs (default results/payloads) for user://… mentions; outputs results/mentions.ids.txt and results/mentions.json (counts per file/total).scripts/notion_resolve_users.py: resolve user IDs via notion-get-user; outputs results/user_lookup.json and results/user_lookup.txt.notion_search_and_fetch.py --query "<text>" --payload-dir results/payloadsnotion_extract_mentions.py --payload-dir results/payloadsnotion_resolve_users.py --ids-file results/mentions.ids.txttools
Build and execute modular DAG workflows for long-context processing using slice/map/reduce/recurse/compact/filter operators. Use for one-shot batch jobs, standalone map-reduce pipelines, or when the context-dag plugin is not installed. Trigger when input exceeds the model's context window, when reproducible logged pipelines are needed, or when multi-level recursive processing is required. If context-dag is installed, the plugin's bundled dag_runner.py provides the same capability with persistent artifact storage.
documentation
Write in Austin Frank's voice and style. Use this skill whenever generating text that should sound like Austin — strategy docs, charters, proposals, business cases, vision documents, staffing requests, stakeholder updates, cover letters, mission statements, org design documents, or any professional prose where the user wants Austin's distinctive voice. Also use when the user asks to review, edit, or improve a draft for voice consistency, or when they reference "my style", "my voice", "write like me", or "Austin's style".
tools
Decide between a scripted workflow and an autonomous agent harness, then scaffold the chosen path. Use when scoping new agentic systems or tool integrations.
tools
Use mcpc CLI to interact with MCP servers - call tools, read resources, get prompts. Use when working with Model Context Protocol servers, calling MCP tools, or accessing MCP resources programmatically; prefer key:=value bindings over raw JSON bodies.