GitHub Star Manager
简介
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...
通过你的 Agent 添加
安装目录:github-star-manager/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: github-star-manager
description: 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/deprecated stars, export star data for analysis, or get stats about their GitHub stars. Supports semantic categorization via LLM and bulk operations (unstar, add-to-list).
metadata:
{
"openclaw":
{
"emoji": "⭐",
"requires": { "bins": ["gh", "jq"] },
"install":
[
{
"id": "brew-gh",
"kind": "brew",
"formula": "gh",
"bins": ["gh"],
"label": "Install GitHub CLI (brew)",
},
{
"id": "apt-gh",
"kind": "apt",
"package": "gh",
"bins": ["gh"],
"label": "Install GitHub CLI (apt)",
},
{
"id": "brew-jq",
"kind": "brew",
"formula": "jq",
"bins": ["jq"],
"label": "Install jq (brew)",
},
{
"id": "apt-jq",
"kind": "apt",
"package": "jq",
"bins": ["jq"],
"label": "Install jq (apt)",
},
],
},
}
GitHub Star Manager
Requires gh (authenticated) + jq. For Lists operations: token needs user scope (Classic token recommended).
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 '.' > /tmp/stars.json
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 '.' > /tmp/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'
gh api graphql -f query='{
viewer {
lists(first: 100) {
nodes { id name description isPrivate items { totalCount } }
}
}
}' --jq '.data.viewer.lists.nodes'
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')
gh api graphql -f query='
mutation($listId: ID!, $repoId: ID!) {
addUserListItems(input: {listId: $listId, itemIds: [$repoId]}) {
list { name items { totalCount } }
}
}' -f listId="LIST_ID" -f repoId="$REPO_ID"
REPO_ID=$(gh api repos/OWNER/REPO --jq '.node_id')
gh api graphql -f query='
mutation($listId: ID!, $repoId: ID!) {
addUserListItems(input: {listId: $listId, itemIds: [$repoId]}) {
list { name items { totalCount } }
}
}' -f listId="LIST_ID" -f repoId="$REPO_ID"
Add ~200ms delay between calls to avoid rate limits.
Unstar
gh api -X DELETE user/starred/OWNER/REPO
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
- 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
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。