Skip to content
Skills Library
AI & agents · Automation

sdlc-usage

/sdlc-usage

Record the tokens and wall time a task, a bug or a fixed review finding took, into the record that owns it (a start mark, then one usage line), when the project turned usage metrics on in .sdlc/config.json. Other skills call it; use it by hand to measure a unit of work.

Repository
sdlc-kit ↗
Licence
MIT
Last repository change
13.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: usage.py

What it does and when to use it

Record the tokens and wall time a task, a bug or a fixed review finding took, into the record that owns it (a start mark, then one usage line), when the project turned usage metrics on in .sdlc/config.json. Other skills call it; use it by hand to measure a unit of work.

Arguments

/sdlc-usage start | stop <unit> --record <file>
Original author description

Record the tokens and wall time a task, a bug or a fixed review finding took, into the record that owns it (a start mark, then one usage line), when the project turned usage metrics on in .sdlc/config.json. Other skills call it; use it by hand to measure a unit of work.

How it works

  1. When to use
  2. Inputs
  3. Process
  4. Rationalizations
  5. Red flags
  6. Verification
  7. Principles applied
Original SKILL.md headings · 52 lines, 591 words
SKILL.md preview
---
name: sdlc-usage
description: "Record the tokens and wall time a task, a bug or a fixed review finding took, into the record that owns it (a start mark, then one usage line), when the project turned usage metrics on in .sdlc/config.json. Other skills call it; use it by hand to measure a unit of work."
argument-hint: "start | stop <unit> --record <file>"
user-invocable: true
---

# sdlc-usage: what did this unit of work cost

## When to use

- Only when `.sdlc/config.json` has `"usage": {"enabled": true}`. Otherwise do nothing: no mark, no line, no question.
- `sdlc-implement` calls it for each task and each fixed review finding, and `sdlc-debug` for each bug. You can also run it by hand around any unit.
- It records numbers read from the Claude Code session transcript. It never reads or stores what was said.

## Inputs

- The script `usage.py` next to this file. From the **project root** (the folder that holds `.sdlc/`) run `python3 .claude/skills/sdlc-usage/usage.py`, or `python3 .github/skills/sdlc-usage/usage.py` when that is the only path that exists.
- The unit id: a task id (`T012`), a bug slug, or a review finding with its pass (`review1-F3`). Letters, digits, `-`, `_`, `.` only.
- The owning record, relative to the project root, and its section: a task or finding goes in the feature's `tasks.md`, section `Progress log` (the default); a bug goes in its bug record, `--section "Usage"`.

## Process

1. **Check the switch.** If `usage.enabled` is not `true` in `.sdlc/config.json`, stop here.
2. **Start**, before the first edit or command of the unit:
   `python3 .claude/skills/sdlc-usage/usage.py start <unit> --record <record> [--section <heading>]`
   It appends a hidden mark with the time and the session ID. Run it again in a later session when you resume the unit; it adds a mark for that session. Never edit or delete a `<!-- usage-start` or `<!-- usage-stop` line.
3. **Do the unit's work.**
4. **Stop**, after the unit's verify step passed and its evidence line is written, and after any sub-agents have finished:
   `python3 .claude/skills/sdlc-usage/usage.py stop <unit> --record <record> [--section <heading>]`
   It appends one line, for example `- usage T012: in 1,502 · cache-read 2,103,441 · cache-write 40,118 · out 18,004 · sub-agents 612,300 · 23 min wall · 41 turns · model claude-opus-5-5`.
5. **Read the result.** Say in your report what the line shows. A figure that reads `not available (<reason>)` is not zero: report the reason and do not fill it in. `already started`, `already closed` and `usage off` mean nothing was written.
6. **Overlap.** Run one unit at a time. If the line ends `OVERLAP: <unit>`, its figures include that other unit's work; say so.

## Rationalizations

| Excuse | Reality |
|---|---|
| "I'll estimate the tokens" | Never. The script reads them. If it says not available, the answer is not available. |
| "Skip the start, I'll stop later" | A stop with no start mark writes `not available (no start mark)`. The mark is the only start. |
| "Edit the mark's time, the work began earlier" | The window decides what is counted. A changed mark changes the numbers silently. Start a new unit instead. |
| "Run it for every small step" | A unit is a task, a bug or a finding. Smaller steps overlap and double count. |

## Red flags

- The switch is off but you were about to run the script.
- The usage line is missing after the unit closed: the stop did not run. Run it, do not write the line by hand.
- A line says `0` for something that cannot be zero. Report it as a defect in the script.

## Verification

- With the switch on, the unit's record holds one start mark and one `- usage <unit>:` line, and your report quotes that line.
- With the switch off, the record has no mark and no usage line.

## Principles applied

evidence-over-claims, fail-safe-keep-work
Files in this package (2)
  • SKILL.md 4 KB
  • usage.py 15 KB

Versions

The database has no other skills named sdlc-usage.

Database snapshot: 13.11.2026 · package version 6e99b45ee0fd (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100token-saver
    Keeps Claude's usage low without losing quality. Short answers that keep every source, reading and editing only what the task needs, one batched round of questions, a hand-off to a fresh chat when the conversation grows long, and a read-only audit of the setup that loads tokens…
  • 95sdlc-conventions
    Shared rules for the sdlc-loop plugin - work-folder layout, status.json, file chain (intent -> spec -> plan -> code -> test-report -> deploy-log), human gates, and the per-repo config file `.claude/sdlc-loop.json` (Jira, Figma, Vercel, Supabase ids and app layout). Load this…
  • 100sdlc
    Run the autonomous SDLC pipeline on a task — the single entrypoint driving spec → review → build → test → security → delivery through the profile's quality gates. Use to run the SDLC or ship a feature.
  • 100sdlc
    Run the autonomous SDLC pipeline on a task — the single entrypoint driving spec → review → build → test → security → delivery through the profile's quality gates. Use to run the SDLC or ship a feature.
  • 100batch-pipeline
    Parallel SDLC batch runner. Analyzes a list of independent task descriptions, groups them by heuristic file-conflict prediction, dispatches one worktree-isolated background agent per task (each running the full pipeline-orchestrator: BA → Dev → QA → Sec → Docs), and aggregates…
  • 100agent-analytics
    Tracks key performance indicators (KPIs) for AI Agents: Token Usage, Task Duration, Loop Cycles, and Success Rate. Use when: analytics, metrics, tokens used, cost tracking, performance report, agent stats.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.