Repository navigation
Description
Bug Description
specify extension search and specify extension info print Downloads: 0 | Stars: 0 for every extension from the community catalog, including extensions with real usage. Users read this as real data: an extension that has 111 GitHub stars looks unused.
The CLI prints the catalog's downloads and stars fields as they are, and the catalog never fills them in:
- All 206 entries in
extensions/catalog.community.json(at 490cd29) have"downloads": 0, "stars": 0. - The extension submission form (
.github/ISSUE_TEMPLATE/extension_submission.yml) has"downloads": 0, "stars": 0in its example entry. - The
add-community-extensionworkflow writes0for new entries and says to "Preservedownloadsandstarson updates — these reflect usage metrics and must not be reset". No workflow or script ever writes a real value, so the0stays forever.
Steps to Reproduce
specify extension search companionspecify extension info companion- Check the whole catalog:
curl -s https://raw.githubusercontent.com/github/spec-kit/main/extensions/catalog.community.json \ | python3 -c "import json,sys,collections; e=json.load(sys.stdin)['extensions']; print(len(e), collections.Counter((x.get('downloads'),x.get('stars')) for x in e.values()))"
Expected Behavior
The CLI either shows real numbers or shows no statistics line. A 0 that nobody measured should not be shown as a measurement.
For comparison, alfredoperez/speckit-companion currently has 111 stars, and its GitHub release files have 701 downloads in total.
Actual Behavior
SpecKit Companion (v0.27.0)
...
Catalog: community
Downloads: 0 | Stars: 0
Statistics: Downloads: 0 | Stars: 0
Step 3 prints 206 Counter({(0, 0): 206}).
Specify CLI Version
1.4.5
AI Agent
Not applicable
Operating System
macOS 26.7.3
Python Version
Python 3.12.14
Error Logs
None. The commands succeed; only the numbers are wrong.
Additional Context
The CLI code is in src/specify_cli/extensions/command_search.py and src/specify_cli/extensions/command_info.py. Both print the line whenever the field is not None. The official extensions/catalog.json and presets/catalog.community.json don't have these fields, so they show no statistics line. Only community extensions show the misleading 0.
Possible fixes (any one would help):
- Remove the fields from the community catalog, the submission example and the
add-community-extensionworkflow. The CLI already handles a missing field by printing nothing. - Fill in
starswith a scheduled job that readsstargazers_countfrom the GitHub API.docs/generate_presets.pyalready does this for presets.downloadsis harder: mostdownload_urls point toarchive/refs/tags/*.zip, and GitHub does not count those downloads. Droppingdownloadsmay be better than publishing a partial number. - Short-term CLI fix: hide the statistics line when both values are
0.
AI Disclosure
Claude Code (Claude Opus 5.5) did the investigation and wrote the draft: it read the installed CLI source, the catalogs, the issue templates and the workflow, and ran the commands above. The reporter supervised the work and reviewed this text before filing.
Activity