tco

tco is a skill for Claude Code, Codex from lemur47/logic. It costs 0 tokens per session (3,334 once invoked), scanned A, original, MIT.

A method for calculating the total cost of owning or using something over its entire useful life. It includes the purchase price, maintenance, operating costs, timing of payments, and any remaining value.

In plain words
What is it for?
Use it to compare building versus buying, evaluate vendors and tools, plan equipment or infrastructure, and justify investments that cost more upfront but less over time.
Why use it?
It prevents decisions based only on the initial price, which can hide higher long-term costs or savings.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/lemur47/logic/tco
Any agent
npx skills add lemur47/logic --skill tco
Clone the repo
git clone --depth 1 https://github.com/lemur47/logic

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tco

README.md
[![agentmods](https://agentmods.dev/badge/skills/lemur47/logic/tco.svg)](https://agentmods.dev/skills/lemur47/logic/tco)
Your own site
<a href="https://agentmods.dev/skills/lemur47/logic/tco"><img src="https://agentmods.dev/badge/skills/lemur47/logic/tco.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,334 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.03334
Opus 5 $0.00000 $0.01667
Sonnet 5 $0.00000 $0.00667
Haiku 4.5 $0.00000 $0.00333

Measured 5d ago against content hash ba9ef9b3f14c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tco scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/tco/SKILL.md · 318 lines

How it starts

The opening of the file, as written. The whole thing — 318 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TCO: Total Cost of Ownership for Investment Decisions

Source: github.com/lemur47/logic

Purpose

Help users answer one question: "What will this actually cost?" using Total Cost of Ownership analysis. This skill replaces sticker-price comparisons with lifetime cost calculations that include maintenance, operations, time value of money, and residual value.

TCO is the financial foundation for PERT and EVM. PERT asks "how long will it take?" EVM asks "are we on track?" TCO asks "what's the real cost of each option?" — the question that should come first.

When to Use

  • Build vs buy decisions ("should we develop in-house or use SaaS?")
  • Vendor and tool comparisons where upfront prices differ wildly
  • Equipment or infrastructure lifecycle planning
  • Any situation where someone says "Option B is cheaper" based on sticker price alone
  • Justifying a higher upfront investment that saves money over time
  • PMO value cases — quantifying the cost of the status quo vs. change

Core Formulas

Simple TCO (undiscounted)

Total operational = (annual_maintenance + annual_operating_cost) × useful_life_years
Total cost = initial_price + total_operational - residual_value
Annual cost = total_cost / useful_life_years
Monthly cost = annual_cost / 12
Daily cost = annual_cost / 365

This is the baseline. It answers "how much will this cost me per year, all-in?" without adjusting for inflation or opportunity cost.

NPV-Adjusted TCO (time value of money)

NPV operational = Σ (annual_maintenance + annual_operating_cost) / (1 + discount_rate)^year
                  for year = 1 to useful_life_years

NPV residual = residual_value / (1 + discount_rate)^useful_life_years

NPV TCO = initial_price + NPV_operational - NPV_residual
NPV annual = NPV_TCO / useful_life_years

The discount rate accounts for the fact that money today is worth more than money tomorrow. Default: 3% (conservative, roughly tracks long-term inflation). Adjust upward for high-interest environments or when capital has a clear alternative use.

Read the full file on GitHub · 318 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 318 lines · 0 tokens per session scan A ba9ef9b3f14c

Subscribe to this mod's changes

tco is a skill published in the GitHub repository lemur47/logic (2 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,334 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

scanner-pmcc

Scan stocks for Poor Man's Covered Call (PMCC) suitability. Analyzes LEAPS and short call options for delta, liquidity, spread, IV, yield, trend direction, and earnings proximity. Use when user asks about PMCC candidates, diagonal spreads, or LEAPS strategies.

staskh/trading_skills · 63 tokens

ib-portfolio-action-report

Generate a comprehensive portfolio action report with earnings dates and risk assessment. Use when user asks for portfolio review, action items, earnings risk, or position management across IB accounts. Requires TWS or IB Gateway running locally.

staskh/trading_skills · 49 tokens

ib-trades-history

Fetch trade executions from Interactive Brokers filtered by account, date range, or symbol. Supports live API (7 days history) and FlexReport (full history). Use when user asks about their trades, executions, or transaction history. Requires TWS or IB Gateway running locally.

staskh/trading_skills · 59 tokens

ib-report-delta-adjusted-notional-exposure

Report delta-adjusted notional exposure across all IBKR accounts. Calculates option deltas using Black-Scholes and reports long/short exposure by account and underlying. Use when user asks about delta exposure, portfolio risk, or directional exposure.

staskh/trading_skills · 58 tokens

report-stock

Generate comprehensive stock analysis report (PDF or markdown) with trend, PMCC, and fundamental analysis.

staskh/trading_skills · 22 tokens

ib-portfolio

Get portfolio positions from Interactive Brokers. Use when user asks about their portfolio, positions, holdings, or what stocks they own. Requires TWS or IB Gateway running locally.

staskh/trading_skills · 38 tokens