notion-sync

notion-sync is a skill for Claude Code, Codex from fuyuxiang/echo-agent. It costs 23 tokens per session (521 once invoked), scanned B, original, MIT.

A Python-based connection to Notion for reading, creating, and updating pages and databases. Notion is a workspace application for documents and structured tables.

In plain words
What is it for?
Use it to search Notion, read page blocks, query databases, create pages, and update workspace content through the Notion API.
Why use it?
It lets an agent work with Notion content programmatically instead of copying information manually. Access requires an integration token and permission to the target pages or databases.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to search Notion, read page blocks, query databases, create pages, and update workspace content through the Notion API.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fuyuxiang/echo-agent/notion-sync
About the project

Echo Agent is a self-hosted, long-running AI agent that connects language models, tools, memory, permissions, and messaging channels in one system. Individuals and teams use it for private automation that retains context across sessions, develops skills, schedules tasks, and requires approval for high-risk actions.

fuyuxiang/echo-agent · 1,035 stars · on GitHub · ojlab.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fuyuxiang/echo-agent --skill notion-sync
Clone the repo
git clone --depth 1 https://github.com/fuyuxiang/echo-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for notion-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/fuyuxiang/echo-agent/notion-sync/github.svg)](https://agentmods.dev/skills/fuyuxiang/echo-agent/notion-sync)
Your own site
<a href="https://agentmods.dev/skills/fuyuxiang/echo-agent/notion-sync"><img src="https://agentmods.dev/badge/skills/fuyuxiang/echo-agent/notion-sync/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for notion-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/fuyuxiang/echo-agent/notion-sync"><img src="https://agentmods.dev/badge/skills/fuyuxiang/echo-agent/notion-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 521 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 5 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 43
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 52
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 43
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 48
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 52
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00521
Opus 5.5 $0.00009 $0.00208
Sonnet 5.5 $0.00005 $0.00104
Haiku 4.5 $0.00002 $0.00052

Measured 1mo ago against content hash c0ffa9b298ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

notion-sync scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/notion_client.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

resp = httpx.post("https://api.notion.com/v1/search",
skills/productivity/notion-sync/SKILL.md · 81 lines

What it actually says

Notion Sync

Notion API integration for pages, databases, and content management.

Setup

  1. Create integration at https://www.notion.so/my-integrations
  2. Get Internal Integration Token
  3. Share target pages/databases with the integration
  4. Set environment: export NOTION_API_TOKEN=secret_xxx

Script

python3 scripts/notion_client.py --token secret_xxx databases
python3 scripts/notion_client.py --token secret_xxx query <database-id> --limit 20
python3 scripts/notion_client.py --token secret_xxx create <database-id> "Page Title" --content "Body text"

API Usage

import httpx

HEADERS = {
    "Authorization": f"Bearer {NOTION_API_TOKEN}",
    "Notion-Version": "2022-06-28",
    "Content-Type": "application/json",
}

# Search
resp = httpx.post("https://api.notion.com/v1/search",
    headers=HEADERS,
    json={"query": "project plan"})

# Read page blocks
resp = httpx.get(f"https://api.notion.com/v1/blocks/{page_id}/children",
    headers=HEADERS)

# Create page
resp = httpx.post("https://api.notion.com/v1/pages",
    headers=HEADERS,
    json={
        "parent": {"page_id": parent_id},
        "properties": {"title": [{"text": {"content": "New Page"}}]},
        "children": [
            {"paragraph": {"rich_text": [{"text": {"content": "Hello"}}]}}
        ]
    })

Block Types

Type Use
paragraph Normal text
heading_1/2/3 Headers
bulleted_list_item Bullet points
numbered_list_item Numbered lists
code Code blocks
toggle Collapsible sections
to_do Checkboxes

Common Workflows

  • Save chat notes to Notion page
  • Query reading list database
  • Create daily journal entry
  • Append meeting notes from template
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 81 lines · 23 tokens per session scan B c0ffa9b298ae

Subscribe to this mod's changes

notion-sync is a skill published in the GitHub repository fuyuxiang/echo-agent (1,035 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 521 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (sends data to an external url). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

agent-state-bar

A design guide for an agent status bar: a short, automatically updated summary of progress, remaining tasks, tool counts, errors, and system state placed near the latest model input.

bojieli/ai-agent-book · 105 tokens

pptx

A guide for turning a paper, outline, or structured text into a PowerPoint presentation. It covers an 8–12-slide structure, concise slide points, and generation of a .pptx file.

bojieli/ai-agent-book · 84 tokens

knowledge-org

A guide to organising large bodies of knowledge so an AI system can navigate relationships, summaries, and layers instead of searching only flat text chunks. It covers tree indexes, knowledge graphs, file-like structures, incremental updates, and long-term memory layouts.

bojieli/ai-agent-book · 96 tokens

memory-system

A guide to giving an AI agent persistent, user-specific memory across conversations. It covers what to remember, how to store it, how to update or compress it, and when to use memory instead of a shared knowledge base.

bojieli/ai-agent-book · 95 tokens

context-compression

A guide to shortening the information an agent carries between steps. It explains how to replace large tool outputs and old conversation details with compact, useful summaries while preserving important decisions and constraints.

bojieli/ai-agent-book · 92 tokens

bo-runbook

A reusable step-by-step operating manual for a repeated task or handoff. It covers prerequisites, normal steps, checks that show success, failure handling, and escalation when those details are provided.

TencentCloud/Octop · 49 tokens