返回 Skill 列表
extension
分类: 开发与工程无需 API Key

notion-content

在发布文章后,在Notion数据库中创建内容记录。当用户提供文章标题和发布链接(知乎、微信、百度、搜狐、头条、x.com)时使用。自动从URL检测平台,并填写发布日期。触发条件为“/notion-content”、“notion记录”、“内容入库”,或者当用户说他们发布了带有链接的文章时。

person作者: jakexiaohubgithub

Notion Content Manager

Create content records in Notion "内容中心" database after publishing articles to various platforms.

Usage

User provides:

  • Title: Article title (required)
  • Links: One or more published article URLs (required)

Example input:

/notion-content
标题:《AI编程实战指南》
链接:
https://zhuanlan.zhihu.com/p/123456
https://mp.weixin.qq.com/s/abcdef

Workflow

  1. Parse user input to extract title and links
  2. Run the script:
python scripts/notion_content.py --title "文章标题" --links "url1" "url2" "url3"
  1. Report results to user

Script Location

scripts/notion_content.py - handles all business logic:

  • Platform detection from URL domain
  • Duplicate link checking
  • Notion API calls
  • Error handling

Environment Setup

Requires .env file in skill directory with:

NOTION_TOKEN=secret_xxxxx

Supported Platforms

| Platform | URL Pattern | |----------|-------------| | 知乎 | zhihu.com | | 百家号 | baijiahao.baidu.com | | 搜狐号 | sohu.com | | 头条号 | toutiao.com | | 公众号 | mp.weixin.qq.com | | X文章 | x.com, twitter.com |