pulse-repo-stats
Skill4 starsChanged 28 days agoMITView on GitHub
Build the Pulse engineering dashboard for a GitHub repo on this computer, as one HTML file - release weeks, PRs merged per week, review wait, time to merge, unreviewed merges, the commit grid, who does the work, how much of it AI agents do, and branch rules. Use when someone runs /pulse-repo-stats, or asks how their team ships, for engineering stats or velocity metrics on a repo, or for a Pulse report on their own repo. Works on private repos; needs only Node and a GitHub sign-in.
In this repository15 other files it gives its agents.
- article-imageSkill
- bento-featuresSkill
- deslopify-uiSkill
- landing-pageSkill
- low-res-mockupSkill
- narrated-feature-videoSkill
- og-image-animatedSkill
- og-image-liveSkill
- og-imageSkill
- product-demoSkill
- saas-dashboardSkill
- saas-logoSkill
- website-screenshot-reelSkill
- website-scrollSkill
- write-changelogSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Pick the repo: Use what the user named (owner/repo or a GitHub URL.
- Distinctive: line 47
Never print the token or write it to a file.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Pulse repo stats
Every file this skill uses ships in its own folder, next to this SKILL.md, and paths here are relative to that folder. It needs nothing from other skills or other folders, so don't go looking for them. Unless the user names another place, save everything it makes in out/pulse-repo-stats/ under the current project.
Reads the last 12 weeks of a GitHub repo and writes the same dashboard as paralect.ai/repo/vercel/next.js as one HTML file, with a "What stands out" block under the charts. It installs nothing. The numbers stay on this computer: the script talks only to api.github.com, and the page loads Tailwind and fonts from public CDNs and avatars from GitHub.
Steps
- Pick the repo. Use what the user named (
owner/repoor a GitHub URL; several are fine if they asked for a combined view). If they named none, run it with no repo: the script uses theoriginremote of the current folder. - Pick the name for the title. The page says "How
<name>ships". It defaults to the repo's name. If the product has a nicer name that you can see in the README orpackage.json(acme-webis "Acme"), pass it with--name. Run it from this skill's folder path, with a 10-minute timeout, because a busy repo takes several minutes:
node <this-skill-folder>/scripts/pulse-repo-stats.mjs owner/repo --name "Acme"Progress goes to stderr. It opens the file in the browser when done.
- Report back. Stdout has the file's path, the headline numbers and "What stands out": the same insights the page shows under its charts. Give the user the path, then the two or three insights that matter most, in your own words. Don't add findings the numbers don't support, and if a number says "not enough data", say so rather than estimating it.
Options
| Option | What it does |
--name "Acme" | Name in the page title |
--out path.html | Where to write it. Default: out/pulse-repo-stats/<owner>-<repo>-<date>.html |
--no-open | Don't open the browser. Use this on a machine with no display. |
--no-pipeline | Skip the "How code gets to production" section |
--print-template | Print the page's HTML, to customize it (see below) |
When it fails
| Message | What to do |
node: command not found, or a syntax error | It needs Node 18 or newer. Ask the user to install it from nodejs.org. |
No GitHub sign-in found | Ask the user to run gh auth login themselves, since it's interactive, or to set GH_TOKEN. Don't ask them to paste a token into this chat. |
GitHub can't find owner/repo | Check the name. If it's right, this account can't see the repo: gh auth refresh -s repo,read:org grants access to private and SSO-protected repos. |
GitHub 403 | Usually a rate limit. Wait a few minutes and run it again. |
Never print the token or write it to a file.
What the numbers mean
The page explains each one under "How we count". Three things come up often:
- Review wait and merged without review count people only. An AI reviewer's comment isn't a review here.
- Busy repos are sampled. Weekly PR totals are exact, and the split by review speed is scaled up from the latest 25 PRs of each week. Medians use the most recent 400 PRs at most.
- Targets (first review under 4 h, merge under 1 d, under 10% unreviewed, a release every week) come from DORA and LinearB benchmarks for product teams. Open-source projects often work differently.
Changing the page
The page's plain HTML, Tailwind classes and a little JavaScript are built into the script. To change the look, save them next to it, edit that copy and run the script again; it uses dashboard.html when it finds one:
node <this-skill-folder>/scripts/pulse-repo-stats.mjs --print-template > <this-skill-folder>/scripts/dashboard.htmlDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

