Logo vun Notion Export

Notion Export

Organisatioun
ai-analyst-lab
notion-export

Export analysis results to a Notion page with structure, embedded charts, data stamps, and provenance toggles. Trigger on "/export notion", "export to Notion", "create a Notion page", "share this in Notion", "put this in Notion", "send to Notion", or mentions of the Analysis Gallery database. Handles the Notion connector check, chart hosting, and toggle-block fallback.

Iwwersiicht

Editeurai-analyst-lab
Repositoryai-analyst-plugin
Skill-Nummnotion-export
Stären
34
Forks
13
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum ai-analyst-lab op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Notion Export an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/ai-analyst-lab/ai-analyst-plugin/tree/main/ai-analyst-plus/skills/notion-export
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst-plugin.git /tmp/ai-analyst-plugin
mkdir -p .claude/skills
cp -r /tmp/ai-analyst-plugin/ai-analyst-plus/skills/notion-export .claude/skills/notion-export
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Notion Export an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Notion Export automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Notion Export net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Skill: Notion Export

Requires the Notion connector enabled in Cowork.

Purpose

Export analysis results to Notion as a well-structured page with charts, data stamps, and provenance. Supports both standalone pages and Analysis Gallery database entries.

Invocation

/export notion — export the latest analysis to Notion

Instructions

Step 0: Check Notion Connector Availability

Exact tool names differ by environment, so never hardcode them: discover the Notion connector's actual tools from the session's available tools. You need two capabilities at minimum: search (find pages/databases in the workspace) and create pages. A read/fetch capability is needed for the Step 7 self-check. Read each discovered tool's own schema before calling it; the parameter shapes below are described by capability, and the tool's schema is the authority.

  1. Look for Notion tools among the available tools; attempt the search capability with a test query
  2. If tools available: Proceed to Step 1
  3. If tools unavailable: "The Notion connector is not configured. Set up the Notion integration first." Hard stop; never fake the export or route the content elsewhere.

Step 1: Find Source Material

Same as the main export skill — find the latest narrative, charts, validation, and close-the-loop outputs. Also gather:

  • Provenance blocks (assembled from the cross-verification YAML, query log, and each finding's data stamp)
  • Query log (for receipt-level detail)
  • Confidence grade and score

Step 2: Auto-Detect Analysis Gallery

Search for an "Analysis Gallery" database in the user's Notion workspace using the connector's search capability, with a plain query ("Analysis Gallery"). Do not assume an object-type filter parameter exists: current connectors filter by things like creator or date, if at all, not by "database". Search plainly and inspect the results yourself for a database (or data source) named "Analysis Gallery".

If found:

  • Create a new page within the database
  • Set properties: Title, Date, Dataset, Confidence Grade, Status
  • Use the database's property schema for structured metadata

If not found:

  • Create a standalone page
  • Inform the user: "No Analysis Gallery database found. Creating a standalone page. To organize analyses, create a Notion database called 'Analysis Gallery' with properties: Title (title), Date (date), Dataset (text), Confidence (select: A/B/C/D/F), Status (select: Draft/Final)."

Step 3: Build Page Structure

Page Title

{Analysis Title} — {Dataset} ({Date})

Page Icon

Use the confidence grade as the icon:

  • A: green circle
  • B: yellow circle
  • C: orange circle
  • D/F: red circle
  • No confidence artifact for this run (common for a quick brief): skip the icon and the confidence callout entirely
Content Structure
Callout block: Confidence badge
  "Confidence: {grade} ({score}/100) — {interpretation}"

H2: Executive Summary
  Paragraph: 3-5 sentence overview
  Bulleted list: Key findings (max 3)

H2: Finding 1 — {title}
  Callout block (gray): Data stamp
    "{row_count} rows | {date_range} | {primary_table} | {grade} ({score})"
  Paragraph: Insight and evidence
  Image block: Chart (if available)
  Toggle block: "Show methodology & SQL"
    Paragraph: Methodology details
    Code block (sql): Full SQL query
    Paragraph: Cross-verification result

H2: Finding 2 — {title}
  ... (repeat pattern)

H2: Recommendations
  Numbered list: Action items

H2: Data Quality & Limitations
  Paragraph: Validation summary
  Bulleted list: Caveats

Divider

H3: Provenance
  Toggle block: "Full provenance for F1"
    ... (full provenance block content)
  Toggle block: "Full provenance for F2"
    ...

H3: Analysis Receipt
  Paragraph: "Full audit trail available at: outputs/analysis_receipt_{DATASET}_{DATE}.md"

Step 4: Toggle Block Detection

Before building the page, check if toggle blocks work:

  1. Create a test page with one toggle block via the connector's create-pages capability
  2. If it succeeds: use toggle blocks for provenance sections
  3. If it fails or toggles aren't supported:
    • Fallback: Use H3 headings instead of toggle blocks
    • Provenance details go under H3 subheadings (always visible)
    • Add a note: "Toggle blocks not available — provenance shown inline"

Step 5: Chart Image Hosting

Charts must be hosted at a URL Notion can embed. Charts go only to the user's own Google Drive through the connector, private by default with just enough link access for the embed. Never upload charts or data to public file hosts.

Workflow:

  1. Check if the Google Drive tools are available
  2. If yes: upload each chart to Drive, use the shareable link
  3. If no: skip embedding; note in the page "Chart not embedded (Drive unavailable); saved locally at {path}"
  4. Insert image blocks using the hosted URL

Step 6: Create the Page

Use the connector's create-pages capability with the structured content.

Write the page content as Notion-flavored Markdown in the tool's content string, not as block JSON. (Old Notion public-API integrations built pages from heading_2 / paragraph / callout block objects; current connectors take markdown instead. If the discovered tool's description points at a markdown spec resource, read that spec first and follow it.)

Map the structure from Step 3 to markdown:

  • ## for section headings, ### for subsections
  • plain paragraphs for body text
  • - bullets and 1. numbered lists
  • fenced code blocks tagged sql for SQL
  • --- for dividers
  • callouts (data stamps, confidence badge) and toggles (provenance sections) use the Notion-flavored extensions defined in the connector's markdown spec; do not guess the syntax from memory. If the spec offers no toggle syntax, or the Step 4 test failed, use the H3 fallback.

Connector boundary, honestly: the exact markdown extensions supported cannot be verified without the live connector, which is why the spec-resource read and the Step 4 toggle test exist.

Step 7: Self-Check (6 Points)

After creating the page, read it back and verify:

  1. Title correct — page title matches expected format
  2. All findings present — count H2 sections matches finding count
  3. Charts embedded — image blocks present for each chart
  4. Data stamps present — callout blocks with data stamp text
  5. Provenance sections exist — toggle or H3 blocks for each finding
  6. No empty sections — no heading followed immediately by another heading

If any check fails, attempt one fix iteration (max 1 retry).

Step 8: Report

Analysis exported to Notion:
  URL: {page_url}
  Location: {Analysis Gallery / Standalone page}
  Findings: {N}
  Charts: {N} embedded
  Provenance: {toggle blocks / H3 sections}
  Self-check: {PASS / PASS with {N} fixes / {N} issues flagged}

Rules

  1. Never duplicate content. If an Analysis Gallery entry already exists for this dataset + date, ask before creating a duplicate.
  2. Data stamps on every finding. Even if provenance toggle blocks fail, the callout data stamps must be present.
  3. Chart URLs must be accessible. Verify the image URL works before embedding. If upload fails, skip the image and note: "Chart not embedded — upload failed."
  4. One fix iteration max. If the self-check fails after one retry, report issues and let the user fix manually.
  5. Never expose secrets. Database connection strings, passwords, and API keys must not appear in the Notion page content.

Edge Cases

  • No Notion connector: Cannot export. Suggest: "Configure the Notion integration first."
  • Toggle blocks unsupported: Fall back to H3 headings (always visible)
  • No charts available: Create page without images, note in report
  • Google Drive unavailable: Skip chart embedding; note the local chart paths in the page
  • Large analysis (>10 findings): Split into sections with a table of contents at top
  • Analysis Gallery has custom properties: Map to known properties, skip unknown ones

Heefeg gestallte Froen

Wat mécht de KI-Skill Notion Export?

Export analysis results to a Notion page with structure, embedded charts, data stamps, and provenance toggles. Trigger on "/export notion", "export to Notion", "create a Notion page", "share this in Notion", "put this in Notion", "send to Notion", or mentions of the Analysis Gallery database. Handles the Notion connector check, chart hosting, and toggle-block fallback.

Firwat Notion Export op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Notion Export besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Notion Export an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/ai-analyst-lab/ai-analyst-plugin/tree/main/ai-analyst-plus/skills/notion-export an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Notion Export benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Notion Export benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Notion Export domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Notion Export gratis?

Jo. De Skill gëtt vum ai-analyst-lab ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇