Логотип Notion Export

Notion Export

Організація
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.

Огляд

Видавецьai-analyst-lab
Репозиторійai-analyst-plugin
Назва навичкиnotion-export
Зірки
34
Форки
13
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: ai-analyst-lab. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Notion Export у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/ai-analyst-lab/ai-analyst-plugin/tree/main/ai-analyst-plus/skills/notion-export
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Notion Export в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Notion Export, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Notion Export не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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

Поширені запитання

Що робить навичка ШІ 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.

Навіщо використовувати Notion Export у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Notion Export — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Notion Export у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/ai-analyst-lab/ai-analyst-plugin/tree/main/ai-analyst-plus/skills/notion-export. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Notion Export?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Notion Export?

Зі скількома забажаєте. У TypingMind ви можете використовувати Notion Export із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Notion Export?

Так. На GitHub цю навичку публікує ai-analyst-lab за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇