Skip to content

feat(catalog): add Cost Tracker (cost) community extension#2448

Open
Quratulain-bilal wants to merge 3 commits intogithub:mainfrom
Quratulain-bilal:feat/catalog-cost
Open

feat(catalog): add Cost Tracker (cost) community extension#2448
Quratulain-bilal wants to merge 3 commits intogithub:mainfrom
Quratulain-bilal:feat/catalog-cost

Conversation

@Quratulain-bilal
Copy link
Copy Markdown
Contributor

Summary

Adds a new community extension to the catalog: cost — Cost Tracker.

Track real LLM dollar cost across SDD workflows — per-feature budgets, per-integration comparison, and finance-ready exports. Token-analyzer counts tokens; this counts dollars, which is what finance, procurement, and engineering leads actually need to greenlight spec-driven development at scale.

Extension at a glance

  • Repo: https://github.com/Quratulain-bilal/spec-kit-cost
  • Release: v1.0.0 (tagged)
  • License: MIT
  • Commands (5): track, report, budget, compare, export
  • Hooks: none — purely user-invoked
  • Network: none — all data stays under .specify/cost/ locally
  • Compatible with: every integration (claude, copilot, gemini, opencode, …)

Why this is useful

  • Bundled pricing table covers Claude (Sonnet 4.6, Opus 4.7, Haiku 4.5), GPT-4o, and Gemini 2.5 Pro. Editable in cost-config.yml for negotiated rates.
  • Append-only JSONL ledger — diff-friendly, recoverable from a partial last line.
  • Budgets are versioned in config, so they're reviewed in PRs alongside other constraints.
  • compare re-prices the same workload across all models, so teams can quantify the savings (or cost) of switching integrations before they switch.

Catalog checklist

  • JSON valid (python -m json.tool)
  • Description under 200 chars
  • Required fields populated (name, id, description, author, version, download_url, repository, license, requires, provides, tags, created_at, updated_at)
  • HTTPS repository and download URLs
  • Tag v1.0.0 exists in the source repo
  • updated_at bumped at the top level
  • Alphabetical placement (between conduct and critique)

Test plan

  • Catalog JSON parses
  • Tag v1.0.0 resolves and the download URL returns 200
  • extension.yml validates against the extension schema
  • All five command files render as valid markdown with frontmatter

Thanks for reviewing!

Adds a new entry for spec-kit-cost — track real LLM dollar cost across
SDD workflows with per-feature budgets, per-integration comparison,
and finance-ready exports.

Repo: https://github.com/Quratulain-bilal/spec-kit-cost
Release: v1.0.0
@Quratulain-bilal Quratulain-bilal requested a review from mnriem as a code owner May 4, 2026 17:04
@kennedy-whytech
Copy link
Copy Markdown
Contributor

Nice. There are some overlapping features between this and https://github.com/coderandhiker/spec-kit-token-analyzer ?

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the cost community extension to the extension discovery catalog so users can find the new Cost Tracker entry alongside other community-maintained extensions.

Changes:

  • Adds a new "cost" entry in extensions/catalog.community.json with metadata, URLs, version, tags, and capability counts.
  • Places the new entry in the alphabetized catalog near other co* extensions.
  • Removes trailing whitespace from the final existing entry.
Show a summary per file
File Description
extensions/catalog.community.json Adds the new community extension catalog entry and a small formatting cleanup.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 2

Comment on lines +492 to +496
"cost": {
"name": "Cost Tracker",
"id": "cost",
"description": "Track real LLM dollar cost across SDD workflows — per-feature budgets, per-integration comparison, and finance-ready exports.",
"author": "Quratulain-bilal",
Comment thread extensions/catalog.community.json Outdated
Comment on lines +521 to +522
"created_at": "2026-05-03T00:00:00Z",
"updated_at": "2026-05-03T00:00:00Z"
Copy link
Copy Markdown
Collaborator

@mnriem mnriem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address Copilot feedback

Address Copilot review feedback:
- Add Cost Tracker row to README community extensions table
- Bump top-level updated_at per EXTENSION-PUBLISHING-GUIDE.md
@Quratulain-bilal
Copy link
Copy Markdown
Contributor Author

Quratulain-bilal commented May 5, 2026

Both points addressed in 1d2a2f9:

  • Added Cost Tracker row to the README community extensions table (between Confluence and DocGuard).
  • Bumped top-level updated_at and the entry updated_at to 2026-05-04T00:00:00Z.

Let me know if anything else needs adjusting.

# Conflicts:
#	extensions/catalog.community.json
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 2

Comment thread README.md
| Cleanup Extension | Post-implementation quality gate that reviews changes, fixes small issues (scout rule), creates tasks for medium issues, and generates analysis for large issues | `code` | Read+Write | [spec-kit-cleanup](https://github.com/dsrednicki/spec-kit-cleanup) |
| Conduct Extension | Orchestrates spec-kit phases via sub-agent delegation to reduce context pollution. | `process` | Read+Write | [spec-kit-conduct-ext](https://github.com/twbrandon7/spec-kit-conduct-ext) |
| Confluence Extension | Create a doc in Confluence summarizing the specifications and planning files | `integration` | Read+Write | [spec-kit-confluence](https://github.com/aaronrsun/spec-kit-confluence) |
| Cost Tracker | Track real LLM dollar cost across SDD workflows — per-feature budgets, per-integration comparison, and finance-ready exports | `analytics` | Read+Write | [spec-kit-cost](https://github.com/Quratulain-bilal/spec-kit-cost) |
Comment on lines +492 to +523
"cost": {
"name": "Cost Tracker",
"id": "cost",
"description": "Track real LLM dollar cost across SDD workflows — per-feature budgets, per-integration comparison, and finance-ready exports.",
"author": "Quratulain-bilal",
"version": "1.0.0",
"download_url": "https://github.com/Quratulain-bilal/spec-kit-cost/archive/refs/tags/v1.0.0.zip",
"repository": "https://github.com/Quratulain-bilal/spec-kit-cost",
"homepage": "https://github.com/Quratulain-bilal/spec-kit-cost",
"documentation": "https://github.com/Quratulain-bilal/spec-kit-cost/blob/main/README.md",
"changelog": "https://github.com/Quratulain-bilal/spec-kit-cost/blob/main/CHANGELOG.md",
"license": "MIT",
"requires": {
"speckit_version": ">=0.8.0"
},
"provides": {
"commands": 5,
"hooks": 0
},
"tags": [
"cost",
"budget",
"tokens",
"analytics",
"finance"
],
"verified": false,
"downloads": 0,
"stars": 0,
"created_at": "2026-05-03T00:00:00Z",
"updated_at": "2026-05-04T00:00:00Z"
},
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.

4 participants