# Star Updater

> Update GitHub star counts for all repositories in skills.json. Use when: (1) scheduled star update task fires, (2) manually refreshing star counts, (3) comparing star growth over time. Triggers on: "update stars", "refresh star counts", "sync stars", "star update". This skill updates ALL 337 repositories in skills.json using GitHub API with proper rate limiting. NOT for: updating a single repo (j…

- **Type:** Skill
- **Install:** `agentstack add skill-vivy-yi-awesome-skills-star-updater`
- **Verified:** Pending review
- **Seller:** [vivy-yi](https://agentstack.voostack.com/s/vivy-yi)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [vivy-yi](https://github.com/vivy-yi)
- **Source:** https://github.com/vivy-yi/awesome-skills/tree/main/.skills/star-updater

## Install

```sh
agentstack add skill-vivy-yi-awesome-skills-star-updater
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Star Updater

Updates star counts for all repositories in `skills.json` using GitHub API with proper batching and rate limit handling.

## Workflow

### 1. Read current skills.json

```bash
cd /Volumes/waku/github-维护/awesome/awesome-skills-repos
wc -l skills.json
jq length skills.json
```

### 2. Run the update script

```bash
cd /Volumes/waku/github-维护/awesome/awesome-skills-repos
python3  {new_stars}")
                repo['stars'] = new_stars
                repo['last_updated'] = datetime.now().strftime('%Y-%m-%d')
                updated += 1
        elif 'rate limit' in result.stderr.lower() or result.returncode == 403:
            rate_limited = True
            print(f"  Rate limited at {i}/{len(repos)}, waiting 60s...")
            time.sleep(60)
        else:
            errors += 1
            
    except Exception as e:
        errors += 1
        if errors <= 5:
            print(f"  Error {name}: {e}")
    
    # Be nice to GitHub API - 3 req/sec max
    time.sleep(0.3)

# Save updated data
with open(OUTPUT_PATH, 'w') as f:
    json.dump(repos, f, f, indent=2, ensure_ascii=False)

print(f"\n=== Update Complete ===")
print(f"Total repos: {len(repos)}")
print(f"Updated: {updated}")
print(f"Errors: {errors}")

# Generate update summary for commit message
with open('/tmp/star_update_summary.txt', 'w') as f:
    f.write(f"Updated: {updated}, Errors: {errors}, Total: {len(repos)}\n")
PYEOF
```

### 3. Check what changed

```bash
cd /Volumes/waku/github-维护/awesome/awesome-skills-repos
git diff --stat skills.json
```

### 4. Commit and push (only if changes exist)

```bash
cd /Volumes/waku/github-维护/awesome/awesome-skills-repos
UPDATED=$(git diff --numstat skills.json | awk '{print $1}')
if [ "$UPDATED" != "0" ]; then
    git add skills.json
    git commit -m "chore: update stars $(date +%Y-%m-%d)"
    git push
    echo "Pushed star updates"
else
    echo "No changes to push"
fi
```

## Verification

After push, verify the update:
```bash
cd /Volumes/waku/github-维护/awesome/awesome-skills-repos
git log -1 --stat
```

## Notes

- Uses `gh api` (authenticated) for higher rate limits
- Sleeps 0.3s between requests to stay under 5000 req/hour limit
- Backs off 60s if rate limited
- Records `last_updated` timestamp per repo
- Safe to re-run - idempotent

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [vivy-yi](https://github.com/vivy-yi)
- **Source:** [vivy-yi/awesome-skills](https://github.com/vivy-yi/awesome-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** yes
- **Shell / process execution:** yes
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: flagged — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-vivy-yi-awesome-skills-star-updater
- Seller: https://agentstack.voostack.com/s/vivy-yi
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
