360 Secure SkillHub
360 安全技能中心

GitHub Stars Export

该 Skill 先用 shell 脚本调用 GitHub CLI 拉取已星标仓库,保存为按自定义分类组织的 Markdown 文件;再用 Python 脚本解析该文件,将条目写入 Notion 数据库,并在本地配置文件记录同步状态。需预先安装并认证 gh、安装 requests 并配置 Notion API 密钥。

nick-tsyen
nick-tsyen
热度 54.74
最近更新 2026-05-18 12:29:01
分类:效率依赖:代码执行 / 读写文件 / 第三方 API应用场景:自动化脚本 / 工作流 / API 集成 / 数据处理 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add dataninja-github-stars-export
Metadata
name
github-stars-notion-sync
description
Export GitHub starred repositories by category and sync them to a Notion database.

GitHub Stars to Notion Sync Skill

This skill allows you to automate the process of exporting your GitHub starred repositories (grouped by custom lists/categories) and syncing them into a structured Notion database.

Instructions

When this skill is active, you can perform the following tasks:

1. Export GitHub Stars

Use the shell script in ./scripts/export_stars.sh to fetch all starred repositories and save them to ./assets/starred_lists.md.

  • Requirement: GitHub CLI (gh) must be installed and authenticated.
  • Output: A Markdown file with tables for each category.

2. Sync to Notion

Use the Python script in ./scripts/sync_stars_to_notion_db.py to parse the exported Markdown and populate a Notion database.

  • Requirement: NOTION_API_KEY environment variable must be set.
  • Requirement: requests library must be installed.
  • Config: Local state is tracked in ./assets/.notion_sync_config.json.

3. Workflow

  1. Run ./scripts/export_stars.sh.
  2. Run python scripts/sync_stars_to_notion_db.py.

Tool Definitions

  • export_stars: Fetches GitHub stars and updates ./assets/starred_lists.md.
  • sync_to_notion: Syncs the contents of ./assets/starred_lists.md to Notion.