GitHub Star Manager
/install github-star-manager-skill
GitHub Star Manager
Requires gh (authenticated) + jq. For Lists operations: token needs user scope (Classic token recommended).
Authentication
This skill uses the gh CLI's existing auth session. Before using:
- Run
gh auth loginif not already authenticated - For read-only operations (export, stats): default token scopes are sufficient
- For Lists operations (create list, add to list): token needs
userscope — rungh auth refresh -s useror use a Classic token withuserscope
No separate API key or environment variable is needed.
Export Stars
gh api user/starred --paginate --jq '.[] | {
full_name, description, url: .html_url, language,
topics, stars: .stargazers_count, forks: .forks_count,
archived, updated_at, pushed_at
}' | jq -s '.' > stars.json
Slow for 1000+ stars (~1 min per 1000). Quick count: gh api user/starred --paginate --jq '. | length' | jq -s 'add'.
View Existing Lists
gh api graphql -f query='{
viewer {
lists(first: 100) {
nodes { id name description isPrivate items { totalCount } }
}
}
}' --jq '.data.viewer.lists.nodes'
Create a List
gh api graphql -f query='
mutation($name: String!, $desc: String) {
createUserList(input: {name: $name, description: $desc, isPrivate: false}) {
list { id name }
}
}' -f name="LIST_NAME" -f desc="LIST_DESCRIPTION" --jq '.data.createUserList.list'
Save the returned id for adding repos.
Add Repo to List
REPO_ID=$(gh api repos/OWNER/REPO --jq '.node_id')
# Note: listIds is a JSON array, use --input to pass variables correctly
echo '{"query":"mutation($itemId:ID!,$listIds:[ID!]!){updateUserListsForItem(input:{itemId:$itemId,listIds:$listIds}){user{login}}}","variables":{"itemId":"'$REPO_ID'","listIds":["LIST_ID"]}}' \
| gh api graphql --input -
Add ~300ms delay between calls to avoid rate limits.
Unstar
gh api -X DELETE user/starred/OWNER/REPO
Always confirm with user before unstarring.
Organize Workflow
- Export stars to JSON
- Analyze the JSON — suggest categories based on language, topics, purpose, domain
- Present suggestions to user for review
- Create Lists and add repos after confirmation
- Batch operations with delays between API calls
Cleanup Workflow
- Export stars to JSON
- Use jq to find archived, stale (2+ years no push), low-star, or deprecated repos
- Present candidates to user, confirm before unstarring
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install github-star-manager-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/github-star-manager-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
GitHub Star Manager 是什么?
Manage GitHub stars with AI-powered categorization and cleanup. Use when a user wants to organize their starred repos into GitHub Lists, clean up stale/depre... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 719 次。
如何安装 GitHub Star Manager?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install github-star-manager-skill」即可一键安装,无需额外配置。
GitHub Star Manager 是免费的吗?
是的,GitHub Star Manager 完全免费(开源免费),可自由下载、安装和使用。
GitHub Star Manager 支持哪些平台?
GitHub Star Manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 GitHub Star Manager?
由 cosformula(@cosformula)开发并维护,当前版本 v0.1.2。