lov-gh-tidy

Featured

Interactive GitHub repo hygiene skill. Lists all open issues, PRs, stale branches, and orphan labels, shows a summary of each with analysis, then asks the user how to handle each item (close, merge, comment, delete, keep). Executes all chosen actions via gh CLI. Use when the user says "清理 GitHub", "tidy repo", "clean up issues", "处理 PR", "repo hygiene", or similar.

Data & Documents 64 stars 16 forks Updated today MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
60
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# lov-gh-tidy Interactive GitHub repo triage — issues, PRs, branches, labels in one pass. ## Prerequisites - `gh` CLI installed and authenticated (`gh auth status`) - Current directory is a git repo with a GitHub remote ## Workflow ### Step 1: Scan Run all of these in parallel to gather repo state: ```bash # Open issues gh issue list --state open --limit 100 --json number,title,author,createdAt,labels,comments # Open PRs gh pr list --state open --limit 100 --json number,title,author,createdAt,labels,reviewDecision,mergeable,headRefName # Remote branches (exclude main/master/develop) git branch -r --no-merged origin/main | grep -v 'HEAD\|main$\|master$\|develop$' # Labels gh label list --limit 100 --json name,description,color ``` ### Step 2: Summarize Present a concise table for each category that has items: **Issues:** | # | Title | Author | Age | Comments | Labels | |---|-------|--------|-----|----------|--------| **PRs:** | # | Title | Author | Age | Mergeable | Review | |---|-------|--------|-----|-----------|--------| **Stale branches** (no commits in 30+ days): List branch names with last commit date. **Orphan labels** (not used by any issue/PR): List label names. For each item, provide a brief analysis: - Issues: Is it actionable? Feature request vs bug? Has it been addressed? - PRs: Are there conflicts? Is the code valuable? What does the diff look like? - Branches: Is the work merged? Abandoned? ### Step 3: Triage Use `AskUserQuestion` to ask the u...

Details

Author
lovstudio
Repository
lovstudio/skills
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category