Gh star list

From shiqkuangsan/oh-my-daily-skills · View interactive version

Gh star list is an AI agent skill from the GitHub repository shiqkuangsan/oh-my-daily-skills. Use when the user wants to organize GitHub starred repositories into GitHub Lists, classify all or selected stars, or assign recent stars while preserving existing list memberships.

How to use this skill

Skill file

GitHub Star List

Use the bundled scripts to inspect starred repositories and manage GitHub Lists. The agent supplies classification judgment; scripts supply pagination and mutations.

Resources

Preconditions

Require gh, jq, and authenticated GitHub access with the user scope. Check before analysis:

gh auth status
jq --version

If the required scope is missing, explain the exact missing capability before suggesting gh auth refresh -s user -h github.com.

Scope Selection

Workflow

  1. Fetch selected stars and existing lists.
  2. Read references/category-policy.md and classify by repository purpose.
  3. Present proposed assignments and new-list creation in a table.
  4. Wait for explicit approval before any list mutation.
  5. Create approved lists, then update repository memberships.
  6. Refetch lists and report the resulting counts.
bash "${SKILL_DIR}/scripts/fetch_stars.sh" --limit 10 > /tmp/stars.jsonl
bash "${SKILL_DIR}/scripts/manage_lists.sh" get > /tmp/lists.json

For one repository, fetch metadata directly with gh api repos/{owner}/{repo}.

Mutation Contract

manage_lists.sh add ultimately uses updateUserListsForItem, whose listIds value replaces the repository's complete list membership. Before applying:

Never pass only the newly selected list IDs unless the user explicitly asked to remove all previous memberships.

Classification Boundaries

No external mutation occurs before the user approves the proposed table.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.