Skip to content
Back to skills

Stack Measure

ASecurity

Measure token usage and savings via ccusage — establish a baseline and compare before/after. Use right after init (to record the baseline) and again after about a week to quantify the input-token reduction against the ≥40% target. Wraps `agent-stack measure`, which reads ccusage's local JSONL — never vendor self-reported numbers.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added August 30, 2026
ai-agents

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned August 30, 2026

npx -y skills add drmahdikazempour/agent-stack --skill stack-measure --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Stack Measure?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Stack Measure
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/drmahdikazempour-stack-measure/badge)](https://www.skillsdirectory.com/skills/drmahdikazempour-stack-measure)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: stack-measure
description: Measure token usage and savings via ccusage — establish a baseline and compare before/after. Use right after init (to record the baseline) and again after about a week to quantify the input-token reduction against the ≥40% target. Wraps `agent-stack measure`, which reads ccusage's local JSONL — never vendor self-reported numbers.
---

# stack-measure

Quantify token usage with the neutral `ccusage` tool. Savings are always measured, never claimed.

## What to do
- **Baseline:** `npx @drmahdikazempour/agent-stack measure` (init already stored one in `.agent-stack/baseline.json`).
- **Compare:** `npx @drmahdikazempour/agent-stack measure --since 7d` — reports baseline vs recent average input tokens/day and the % reduction, color-coded against the ≥40% target.

## Notes
- If `ccusage` isn't installed, the command falls back to the local `usage.jsonl` our `Stop` hook appends; install `ccusage` (`npm i -g ccusage`) for authoritative numbers.
- Telemetry-free and local-only: it reads ccusage's JSONL on the user's machine.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.