/integrations:notion-publish-generated-markdownfrom integrations
Gotchas when publishing AI/subagent-drafted Notion-flavored markdown via the Notion MCP (notion-create-pages / notion-update-page) — especially design-phase artifacts with callouts, <table> blocks, and mermaid diagrams. Use when: (1) a published Notion page shows literal "<callout" / "<table" / "&" instead of rendered blocks; (2) a subagent returns drafted markdown with HTML entities escaped (< > &) that you are about to pass to notion-create-pages; (3) a mermaid diagram silently fails to render and a subgraph/node id is a reserved word such as `graph`, `end`, or `subgraph`; (4) you fanned out drafters to publish pages and need to confirm the pages actually landed.
Ships in integrations. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When you delegate Notion page drafting to a subagent and then publish the result, two failure modes are common and both render as broken pages:
<, >,
&). Passed verbatim to notion-create-pages, Notion stores the literal
text <callout ...> and <table> instead of rendering callouts and
tables.graph; also end, subgraph, class,
style, click).<result>) shows
<callout, <table, <br>, or & where literal < / > / &
are intended.<callout> / <table> text instead of
blocks, or a mermaid block renders as nothing / errors out.subgraph graph["..."] or a node id named graph silently breaks the
render.Entity unescape, done between draft and publish:
sed -i '' -e 's/</</g' -e 's/>/>/g' -e 's/&/\&/g' <file>
(GNU sed: drop the '' after -i.)grep -c '<\|>\|&' <file> returns 0, and
grep -c '<callout\|<table' <file> returns greater than 0.notion-create-pages (content = cleaned body).Prefer instructing drafters to BOTH emit literal characters AND run the sed pass as a safety net before publishing — belt and suspenders, since models intermittently re-escape.
Mermaid reserved-word collision: never use graph (or end, subgraph, class,
style, click) as a node or subgraph id; rename, e.g. graph -> graphPkg.
Also quote any node label containing parentheses, and use <br> not \n for line
breaks in labels.
Verify, do not trust self-reports: after a publish fan-out, fetch the PARENT page and confirm each child appears in its child list, rather than trusting each drafter's "published successfully" message.
grep for entities returns 0; for <callout / <table returns greater than 0.Publishing a C4 design doc whose drafter returned <callout icon="🎯" ...> and
a subgraph graph["graph"]:
<callout> / <table> / <br> / -->.graph subgraph id to graphPkg.design-phase-artifacts and plan-mode-orchestrator-write-deadlock
skills: keep Notion reads/writes in the main session, but delegating the
draft-and-clean to a subagent keeps the large content off the orchestrator's
context./mcp — there is no agent-side auth tool.What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/grafana-dashboard-datasource-uid-mismatchFix for Grafana dashboard panels silently showing "No data" even though
Prometheus (or any other datasource) has the data and the same query
works in Prometheus's own UI. Use when: (1) a freshly-imported or
provisioned Grafana dashboard shows "No data" on every panel; (2) the
metric exists in Prometheus's `/api/v1/query` response but doesn't
render in any Grafana panel; (3) you set up Grafana via Docker
provisioning (`provisioning/datasources/*.yml` +
`provisioning/dashboards/*.json`) and the dashboard doesn't bind to
the datasource; (4) bringing up a stack on a fresh `grafana_data`
volume causes the dashboard to break even though it worked before;
(5) Grafana logs show
`level=error msg="Failed to provision data sources" error="Datasource provisioning error: data source not found"`
after adding `uid:` to a datasource YAML and restarting. Root cause is
a datasource UID mismatch between the dashboard JSON's hardcoded
`"uid": "prometheus"` and the auto-generated UID Grafana gives an
unpinned datasource.
/mcp-file-upload-base64-transport-limitWhy you cannot upload a real file (>~15 KB) through content-MCP tools that
take base64 inline — Google Drive `create_file`, similar Notion/media MCPs —
and what to do instead. Use when: (1) `create_file` (or any MCP upload) fails
with "Request contains an invalid argument" on a .pptx/.pdf/.png/.zip; (2) an
upload subagent loops for many minutes / hours retrying the same file;
(3) you Read a base64 file to feed a tool and it truncates (e.g. "returned
only the first 22,377 of 124,988 characters", 25K-token cap, one unbreakable
line); (4) you're about to push a binary to Drive/Notion via an MCP and the
file is more than ~11 KB; (5) you need to embed a deck/file in Notion (Notion
MCP is URL/text-only — no binary upload). Also records that Office files
(.pptx/.docx/.xlsx) DO auto-convert to native Google editor types on
create_file by default.
Other plugins' skills for the same job
npx claudepluginhub cajias/claude-skills --plugin integrations