This prompt asks for RivalMode, a one-click GitHub repository template that turns a repo into a gamified, self-updating scoreboard directly inside its README. It must run entirely on GitHub Actions’ free tier using only the built-in GITHUB_TOKEN, with no servers, accounts, databases, external services, or additional API keys
GOAL Build "RivalMode" — a one-click repo template that gamifies a GitHub repository and its ecosystem, rendering a LIVE scoreboard inside the repo's own README. Everything runs on GitHub Actions (free tier) + a single workflow. No servers, no accounts, no API keys beyond the built-in GITHUB_TOKEN. TARGET USERS - Developers and vibe-coders who want their repo to feel alive and competitive. - OSS maintainers who want contributors to see progress in real time. - Anyone building in public who wants a live trophy wall. CORE FEATURES (numbered) 1. Live repo scoreboard in README: a rendered SVG (via workflow) showing branches, open PRs, merges/day, commits today vs this week, stars, forks, contributors leaderboard, and a "momentum score" (activity vs 7-day average). 2. Rival tracking (the hook): a daily workflow scans for (a) forks with more commits than upstream, (b) same-topic repos (via GitHub search using the repo's primary topics), and (c) repos that starred YOUR repo (they're fans — list them). Rivals are ranked by star velocity. The README shows "You are #3 in your topic cluster" and names who's ahead. 3. Auto-updating README sections: a badge row (momentum, rank, streak of days-with-a-commit), a mini bar-race SVG of contributor commit counts this month, and a "recent conquests" list (issues closed, PRs merged, releases). 4. Event feed: the last 10 repo events (pushes, stars, forks, releases) rendered as timestamped lines in the README, updated hourly by Actions. 5. Weekly recap comment: every Monday, the workflow posts a friendly week-in-review issue comment (commits, top contributor, momentum change, rivals gained/lost) — public, shareable, zero effort. 6. One-command install: "Use this template" button + a single setup workflow that writes the README sections and schedules the jobs. Uninstall = delete one folder. All state in the repo itself (JSON + generated SVGs committed back by the bot identity). 7. Privacy & safety: public data only (the repo's own events + public search); no user tracking; rate-limit aware (ETag caching); works for private repos in degraded mode (no rival search). TECH STACK - GitHub Actions workflows (schedule: hourly scoreboard, daily rivals, weekly recap) using gh CLI + GitHub REST/GraphQL via curl or actions/github-script. - Node 20 or Python 3.12 (pick one) single-file script that fetches, computes, renders SVGs, and commits via [bot identity]. - No external services, no databases, no frontend framework. README is the UI. - Shields.io-style SVG generation written from scratch (no dependency). PROJECT STRUCTURE .github/workflows/scoreboard.yml, rivals.yml, weekly-recap.yml, setup.yml src/ (fetchers, scoring, svg/, render_readme.js) state/ (rivals.json, momentum.json — committed by the bot) templates/ (README sections, SVG partials) examples/, tests/ (fixtures for API responses; golden SVG tests), LICENSE (MIT) README REQUIREMENTS - Badges: momentum score, cluster rank, license. - 15-second animated demo GIF: a README visibly updating itself after a push, and a rival overtaking the repo's rank live. - Quick start: click "Use this template" → done; README shows first scoreboard within one workflow run. No tokens needed. - "How the game works" table: points for commits, merges, stars, beating rivals. - A live example: link to the RivalMode repo itself using RivalMode (the project must be its own first user — eat your own dog food). TESTING - Fixture-based unit tests for scoring and SVG generation. - Integration test workflow that runs the full pipeline against a scratch repo. - Snapshot tests for README rendering; API-failure graceful degradation tests. LICENSE: MIT. FIRST-RELEASE CHECKLIST - Ship with the project's own README as the flagship live demo. - Launch angle: "My repo roasts me when a rival passes it" — post the moment a fork out-commits your repo; pin that README state. - Seed 3-5 template categories (app, cli, skill, site) so rivals clustering works out of the box. - CONTRIBUTING.md: community themes for the scoreboard SVG (the visual moat).
Audits a repository's remote branches and plans a safe cleanup. Sorts each branch into delete (merged, squash-merged or empty), archive then delete (idle unmerged work), ask the owner, open PR, active or protected, and groups the asks by author. Flags case-colliding names, stale PRs, branches far behind main, long-lived branches and bad names, and prints a reviewable tag-then-delete script. Includes a stdlib Python auditor with --self-test.
Checks a GitHub CODEOWNERS file against the real repository file list - works out who owns every file (last matching line wins), then reports invalid or unknown owners, unowned files and critical paths left to the catch-all rule, rules that match nothing or are fully overridden by later lines, unsupported ! and [ ] syntax, duplicates, empty teams and one-person bottlenecks. Includes an offline stdlib Python checker.
A disciplined implementation workflow for coding agents. Guides agents to inspect repository state before editing, preserve unrelated changes, plan substantial work before implementation, keep changes narrowly scoped, run relevant verification, and create concern-scoped commits only when authorized. Designed for implementation, bug fixing, refactoring, and remediation tasks across software projects.
Explains every line of a .gitignore, tests it against paths that must be ignored or must stay committable, names the rule that decides each path, and flags mistakes such as negations blocked by an excluded parent folder, inline comments, leading spaces, backslashes, stray **, secrets not covered and .env.example ignored. Returns a fixed file. Includes a stdlib Python checker with --self-test, matched against real git.
Finds old and abandoned Git branches in your repositories, checks whether their work was merged or still matters, and asks owners before suggesting a safe cleanup list.