Loading...
Loading...
Organize, categorize, clean up, back up and restore GitHub Stars, or batch evaluate and import new projects. Use this skill when users request to organize/categorize/clean up/back up GitHub favorites, manage star lists, batch evaluate repositories, or mention phrases like "GitHub Stars organization / favorite cleanup / too many stars". Supports organize/import/backup modes; credentials are injected via environment variables or WorkBuddy's GitHub connector, no need to place .env in the Skill directory.
npx skill4agent add jspi-fu/aeson-skills github-star-managerpublic_reporead:useruserpip install requests.envGITHUB_TOKEN.envGH_STAR_MANAGER_ENV~/.gh-star-manager/.env.envgh auth tokengh auth loginstars.jsonreview_plan.jsonreview.html~/.gh-star-manager/GH_STAR_MANAGER_WORKDIR-oGH_STAR_MANAGER_REVIEW_MODEchatstaticbuild_review.pyreview.htmlpresent_filesserverCheckpoint (automatic backup)Present planExplicit authorization confirmationGITHUB_TOKEN.envMissing GITHUB_TOKEN401 Unauthorizedgh auth login~/.gh-star-manager/.envGITHUB_TOKEN=ghp_xxxgh auth logingh auth tokenGITHUB_TOKENGITHUB_TOKEN~/.gh-star-manager/.envGH_STAR_MANAGER_ENV=/path/to/secret.envThe scripts are located in this Skill directory (usually). Please use the absolute path of the Skill when executing; all~/.workbuddy/skills/github-star-manager/scripts/outputs should point to the working directory-o.~/.gh-star-manager/
python <skill_dir>/scripts/star_ops.py user; python <skill_dir>/scripts/star_ops.py check-scopes
python <skill_dir>/scripts/fetch_stars.py --sync -o ~/.gh-star-manager/stars.json
python <skill_dir>/scripts/github_lists.py list -o ~/.gh-star-manager/lists.jsonCompletion Criteria:is true;can_create_listsandfetch_stars.pyreturngithub_lists.py(exit code 0).status: success
review_plan.jsonpython <skill_dir>/scripts/state.py dump-profilemode: organizepython <skill_dir>/scripts/generate_review_plan.py --plan-mode organize -o ~/.gh-star-manager/review_plan.jsonFROZENSTARS_ORGANIZE_MODEreview_plan.jsonmode: import~/.gh-star-manager/new_repos.json["owner/repo", ...]python <skill_dir>/scripts/repo_insight.py --input-file ~/.gh-star-manager/new_repos.json -o ~/.gh-star-manager/insights.jsonpython <skill_dir>/scripts/generate_review_plan.py --plan-mode import --insights-file ~/.gh-star-manager/insights.json -o ~/.gh-star-manager/review_plan.jsonreview_plan.jsonCompletion Criteria:that meets the contract specifications is successfully generated.review_plan.json
GH_STAR_MANAGER_REVIEW_MODE~/.gh-star-manager/review_plan.jsongithub_lists.pystar_ops.pypython <skill_dir>/scripts/build_review.py --plan-file ~/.gh-star-manager/review_plan.json --output ~/.gh-star-manager/review.htmlpresent_filesreview.htmlpython <skill_dir>/scripts/review_server.py --plan-file ~/.gh-star-manager/review_plan.jsonCompletion Criteria: After the user explicitly authorizes in the conversation, the CLI write-back is successful (backup is completed, exit code 0); or in static mode, the user confirms and the Agent has executed the authorized write-back.
python scripts/state.py add-preference "规则描述"build_review.py