Skip to content

Correct Claude plugin page stats and make them data-driven#1115

Merged
MaxGhenis merged 2 commits into
mainfrom
claude-plugin-stats-sync
Jul 17, 2026
Merged

Correct Claude plugin page stats and make them data-driven#1115
MaxGhenis merged 2 commits into
mainfrom
claude-plugin-stats-sync

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

What

policyengine.org/us/claude-plugin displayed hardcoded catalog stats frozen at 24 skills / 21 agents / 4 commands / 7 bundles — the actual catalog had drifted to 53/47/24/9, and is now consolidated to 23/34/23/8 by the policyengine-skills rebuild (see the paired PR: PolicyEngine/policyengine-skills — "Rebuild the skills catalog from scratch").

  • Stats now come from a checked-in pluginStats.json next to the page component, so updating them is a one-file data change. The skills repo gained scripts/export_site_stats.py + a CONTRIBUTING section documenting the sync step.
  • Demo terminal copy updated: "Running microsimulation on 2024 Enhanced CPS..." → "…on the Populace dataset..." (Enhanced CPS is retired; Populace is the certified default).
  • The superseded legacy Vite page (app/src/pages/ClaudePlugins.page.tsx) got the same literals for parity, with a comment pointing at the canonical JSON.

Verification

  • bunx tsc --noEmit in website/ passes (the JSON import compiles).
  • Rendered locally: stats band shows 23 / 33 / 23 / 8 and the demo line reads "Populace dataset" (DOM-verified; no "Enhanced CPS" remains).

Merge order note: numbers describe the rebuilt catalog, so land the policyengine-skills rebuild first (or together).

🤖 Generated with Claude Code

The /:countryId/claude-plugin page hardcoded catalog stats frozen at
24 skills / 21 agents / 4 commands / 7 bundles while the actual
policyengine-skills catalog had drifted far past them. Read the stats
from a checked-in pluginStats.json (regenerated via
scripts/export_site_stats.py in PolicyEngine/policyengine-skills, which
documents the sync step in its CONTRIBUTING.md), update the demo
terminal copy to reference the Populace dataset instead of the retired
2024 Enhanced CPS, and sync the superseded legacy Vite page literals.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
policyengine-app-v2 Ready Ready Preview, Comment Jul 17, 2026 10:42am
policyengine-calculator Ready Ready Preview, Comment Jul 17, 2026 10:42am
policyengine-calculator-next Ready Ready Preview, Comment Jul 17, 2026 10:42am
policyengine-website Ready Ready Preview, Comment Jul 17, 2026 10:42am

Request Review

…-skills)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant