Cost logo

Cost

Community
Houseofmvps
cost

AI Build Cost Tracker — track how much AI is costing you per feature. Use when user wants to track AI spending, understand cost per feature, optimize AI usage, or budget their Claude/GPT costs.

Overview

PublisherHouseofmvps
Repositoryultraship
Skill namecost
Stars
122
Forks
14
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Houseofmvps on GitHub. Read the source before you install it.

Installation

Install the Cost AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Houseofmvps/ultraship.git /tmp/ultraship
mkdir -p .claude/skills
cp -r /tmp/ultraship/skills/cost .claude/skills/cost
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cost in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cost on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cost is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

AI Build Cost Tracker

Know exactly what each feature costs to build with AI. Budget smarter, spend less.

Process

Phase 1: Show Current State

bash
node ${CLAUDE_PLUGIN_ROOT}/tools/cost-tracker.mjs <project-directory> show

Parse the JSON output for cost history and summary.

Phase 2: Cost Dashboard

Present spending overview:

Total Spend:

  • All-time total cost
  • This week / this month breakdown
  • Average cost per task

By Task/Feature:

  • Ranked list of features by cost (most expensive first)
  • Flag any outliers (tasks costing 3x+ the average)

By Model:

  • Cost breakdown by AI model used
  • Potential savings from model switching

Daily Trend:

  • Last 30 days of daily spending
  • Identify high-spend days

Phase 3: Cost Insights

Generate actionable insights:

  1. Where money goes — what types of tasks cost the most (debugging? features? refactoring?)
  2. Optimization opportunities — tasks that could use a cheaper model
  3. Budget projection — at current rate, monthly spend estimate
  4. Cost per line of code — rough estimate based on git diff

Phase 4: Logging New Costs

To log a new cost entry:

bash
node ${CLAUDE_PLUGIN_ROOT}/tools/cost-tracker.mjs <project-directory> log "<label>" <input_tokens> <output_tokens> --model=claude-opus-4-6

Labels should be descriptive kebab-case: auth-feature, bug-fix-login, refactor-api, seo-optimization

Phase 5: Recommendations

Based on spending patterns:

If debugging > 30% of spend:

  • "Consider investing in more tests upfront — debugging is your biggest cost driver"
  • Suggest running /test-driven-development skill

If a single task > 3x average:

  • "The [task] cost $X — consider breaking large tasks into smaller chunks"

Model optimization:

  • "Routine refactoring with Sonnet instead of Opus would save ~$X/month"
  • "Code review tasks can use Haiku — potential savings of ~$X/month"

Logging Guide

Help the user understand when and how to log costs:

  • Log at the END of each task/feature (not during)
  • Use consistent labels across sessions
  • Include ALL tokens (input + output) from the conversation
  • Estimate if exact numbers aren't available (Claude Code shows token usage in the UI)

Phase 6: Build vs. Buy Framework

When reviewing cost data, help the user think about the economics of building with AI:

Worth building with AI (high ROI):

  • Features that would take 2+ days manually but 2 hours with AI
  • Boilerplate-heavy work (CRUD, migrations, test suites, API endpoints)
  • Exploration and prototyping (try 3 approaches, keep the best one)

Consider alternatives:

  • If a feature costs >$100 in AI tokens, check if a library or SaaS already does it
  • If debugging the same issue costs >$20 in AI tokens, the root cause is architectural — fix the architecture, not the symptom
  • If AI-generated code needs significant manual correction, the prompt needs work, not more tokens

Cost benchmarks for solo founders:

Task TypeExpected CostIf Higher, Investigate
New API endpoint$1-5Complex business logic or unclear spec
Bug fix$0.50-3Missing tests or hard-to-reproduce issue
Full feature (frontend + backend)$5-20Large scope or frequent rework
Refactoring$2-10Unclear boundaries or missing tests
Content/copy generation$0.25-1Too many revision cycles

Key Principles

  • AI is an investment, not a cost. The goal isn't to minimize spend — it's to maximize ROI. A $50 feature that generates $5K MRR is a great investment. But a $50 bug fix that should have cost $5 with better tests is waste.
  • Track to learn, not to punish. Cost data reveals where your process is inefficient. High debugging costs mean insufficient tests. High rework costs mean unclear specs.
  • Optimize the expensive tasks, not the cheap ones. Switching from Opus to Haiku for a $0.10 task saves nothing. Reducing a $50 debugging session by improving test coverage saves real money.

Frequently asked questions

What does the Cost AI skill do?

AI Build Cost Tracker — track how much AI is costing you per feature. Use when user wants to track AI spending, understand cost per feature, optimize AI usage, or budget their Claude/GPT costs.

Why use Cost on TypingMind?

Because you install it once and use it with any model. Cost is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cost in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Houseofmvps/ultraship/tree/main/skills/cost. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Cost?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cost?

As many as you like. As long as a model supports skills, you can use Cost with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cost AI skill free?

Yes. It is published on GitHub by Houseofmvps under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇