360 Secure SkillHub
360 安全技能中心

GitHub Stars Export

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

分类:效率
nick-tsyen
nick-tsyen
热度 36.82
最近更新 2026-05-18 12:29:01

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add nick-tsyen/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.