Skip to content

[Bug]: specify extension search / info show "Downloads: 0 | Stars: 0" for every community extension #5641

Backlog

Description

@rnoap

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": 0 in its example entry.
  • The add-community-extension workflow writes 0 for new entries and says to "Preserve downloads and stars on updates — these reflect usage metrics and must not be reset". No workflow or script ever writes a real value, so the 0 stays forever.

Steps to Reproduce

  1. specify extension search companion
  2. specify extension info companion
  3. 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
Screenshot-2026-11-30-at-1 31 13 PM

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):

  1. Remove the fields from the community catalog, the submission example and the add-community-extension workflow. The CLI already handles a missing field by printing nothing.
  2. Fill in stars with a scheduled job that reads stargazers_count from the GitHub API. docs/generate_presets.py already does this for presets. downloads is harder: most download_urls point to archive/refs/tags/*.zip, and GitHub does not count those downloads. Dropping downloads may be better than publishing a partial number.
  3. 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

  1. added
    triage-must-have
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-must-have

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions