Agent skill

Productivity Score

by hoangsonww in hoangsonww/Claude-Code-Agent-Monitor

Calculate a productivity score using actual Agent Monitor metrics — session completion rates, cache efficiency (cacheread vs input), compaction pressure (baseline tokens), turn velocity (turncount /…

MITAuto-check passed

Install Productivity Score

skills CLI
$ npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill productivity-score -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hoangsonww/Claude-Code-Agent-Monitor productivity-score --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hoangsonww/Claude-Code-Agent-Monitor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ccam-analytics/skills/productivity-score .claude/skills/productivity-score && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
productivity-score
GitHub stars
1.1k
Token cost
~906 tokens
SKILL.md length
306 words
Files
2
Skills in repo
78
Repo updated
First seen
Licence
MIT

At a glance

Calculate a productivity score using actual Agent Monitor metrics — session completion rates, cache efficiency (cacheread vs input), compaction pressure (baseline tokens), turn velocity (turncount /…

  • Works in 5 steps: Completion Rate (20% weight) → Token Efficiency (20% weight) → Tool Effectiveness (20% weight) → …
  • SKILL.md covers Input, Data Sources, Score Components (each 0–100) and Overall Score, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Productivity Score is an agent skill from hoangsonww/Claude-Code-Agent-Monitor. Calculate a productivity score using actual Agent Monitor metrics — session completion rates, cache efficiency (cacheread vs input), compaction pressure (baseline tokens), turn velocity (turncount / totalturndurationms), tool success ratio (PreToolUse vs PostToolUse), and the workflow intelligence API's complexity and effectiveness scores.

Its SKILL.md is about 910 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

The repository describes itself as: 🚀 A real-time monitoring dashboard for Claude Code & Codex, built with SQLite3, Node.js, Express, React, Vite, TailwindCSS, & WebSockets. It tracks sessions, agent activity… The licence is MIT.

Example prompts

  • “/productivity-score”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Completion Rate (20% weight)
  2. Token Efficiency (20% weight)
  3. Tool Effectiveness (20% weight)
  4. Velocity (20% weight)
  5. Cost Efficiency (20% weight)

What it can do on your machine

Read from SKILL.md and the folder at commit a06db03. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Productivity Score loads about 906 tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 306 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~91
When it runs · the whole SKILL.md, loaded when a task matches
~906

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hoangsonww/Claude-Code-Agent-Monitor at commit a06db03, republished under its MIT licence (© hoangsonww). 306 words, ~906 tokens.

Download SKILL.mdSave it as .claude/skills/productivity-score/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
productivity-score
description
Calculate a productivity score using actual Agent Monitor metrics — session completion rates, cache efficiency (cache_read vs input), compaction pressure (baseline tokens), turn velocity (turn_count / total_turn_duration_ms), tool success ratio (PreToolUse vs PostToolUse), and the workflow intelligence API's complexity and effectiveness scores.

Productivity Score

Calculate a productivity scorecard from the Agent Monitor's real data.

Input

The user provides: $ARGUMENTS

Options: "today", "this week", "last 30 days", a session ID, or "compare" for period comparison.

Data Sources

EndpointReturns
GET /api/analyticsToken totals (total_input, total_output, total_cache_read, total_cache_write — baselines pre-summed), tool_usage top 20, daily_events/sessions, event_types, sessions_by_status, agents_by_status, avg_events_per_session, total_subagents
GET /api/sessions?limit=100Sessions with metadata JSON: thinking_blocks, turn_count, total_turn_duration_ms, usage_extras (service_tier, speed, inference_geo)
GET /api/pricing/costTotal cost with per-model breakdown
GET /api/workflows/{sessionId}11 workflow datasets: stats, orchestration, toolFlow, effectiveness, patterns, modelDelegation, errorPropagation, concurrency, complexity, compaction, cooccurrence

Score Components (each 0–100)

1. Completion Rate (20% weight)

From sessions_by_status:

  • completed / (completed + error + abandoned) × 100
  • Bonus for high completed-to-active ratio
  • Penalty for abandoned sessions (wasted work)
2. Token Efficiency (20% weight)

From analytics tokens (baselines are pre-summed into totals):

  • Cache hit rate: total_cache_read / (total_cache_read + total_input) × 100
    • Above 60% = excellent, below 30% = poor
  • Output concentration: total_output / total_input — 0.3–0.8 is balanced
3. Tool Effectiveness (20% weight)

From event_types:

  • Success ratio: Count PostToolUse / Count PreToolUse — should be ~1.0; gap = tool failures
  • API error rate: Count APIError / total events — should be near 0
  • From workflow effectiveness data: subagent completion rates, task success per type
4. Velocity (20% weight)

From session metadata:

  • Turns per session: average turn_count across sessions
  • Turn speed: average total_turn_duration_ms / turn_count — lower = faster
  • Events per session: from avg_events_per_session in analytics overview
  • Thinking depth: average thinking_blocks — more thinking = more thorough (neutral metric)
5. Cost Efficiency (20% weight)

From pricing:

  • Cost per completed session: total_cost / completed_sessions
  • Cost trend: comparing current period to previous (decreasing = improving)
  • Model optimization: sessions using expensive models (Opus) for tasks subagents handle with Haiku/Sonnet

Overall Score

Weighted sum → letter grade:

  • A+ (95-100), A (90-94), B+ (85-89), B (80-84), C+ (75-79), C (70-74), D (60-69), F (<60)

Output Format

═══════════════════════════════════════
  PRODUCTIVITY SCORE: 87/100 (B+)
═══════════════════════════════════════
  Completion Rate   ████████░░  80/100
  Token Efficiency  █████████░  92/100
  Tool Effectiveness████████░░  85/100
  Velocity          █████████░  88/100
  Cost Efficiency   █████████░  90/100
═══════════════════════════════════════

Then: top 3 strengths, top 3 improvement areas with actionable steps, and period comparison if available.

© hoangsonww, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in plugins/ccam-analytics/skills/productivity-score of hoangsonww/Claude-Code-Agent-Monitor.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit a06db03

Compare with similar skills

Productivity Score next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Productivity Score compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Productivity Score this skillhoangsonww/Claude-Code-Agent-Monitor1.1k—~906Automated safety check: PassMIT
Metric Calculatorjeremylongshore/tons-of-skills-marketplace2.8k—~563Automated safety check: PassMIT
Gke AI Troubleshooting Tpu Metrics Monitoringgoogle/skills21k—~1.9kAutomated safety check: PassApache-2.0
Cloud Monitoring Metric Selectiongoogle/skills21k—~2.4kAutomated safety check: PassApache-2.0
Metric Calculatorforyourhealth111-pixel/Vibe-Skills3.6k—~346Automated safety check: NotesMIT
Apdex Score Calculatorjeremylongshore/tons-of-skills-marketplace2.8k—~578Automated safety check: PassMIT

Similar skills

  • Metric Calculator

    jeremylongshore/tons-of-skills-marketplace

    Configure and manage - Calculate metric calculator operations.

    2.8k GitHub stars~563 tokensUpdated yesterday
    Product & Project ManagementAuto-check passed
  • Monitors and troubleshoots GKE TPU workloads, nodes, and node pools using GKE system metrics and PromQL.

    21k GitHub stars~1.9k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Official

    Retrieve, query, and identify relevant Cloud Monitoring metric descriptors on Google Cloud for a service or resource (such as Compute Engine, Spanner, BigQuery, Cloud Run, Cloud SQL, Pub/Sub, Cloud…

    21k GitHub stars~2.4k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Metric Calculator

    foryourhealth111-pixel/Vibe-Skills

    Compute well-defined metrics from existing formulas, datasets, or test outputs.

    3.6k GitHub stars~346 tokensUpdated 1 mo ago
    Product & Project ManagementAuto-check: notes
  • Apdex Score Calculator

    jeremylongshore/tons-of-skills-marketplace

    Calculate apdex score calculator operations. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~578 tokensUpdated yesterday
    Testing & QAAuto-check passed
  • CI Metrics

    pytorch/pytorch

    Query PyTorch CI, GitHub Actions, HUD, Grafana, and infrastructure metrics.

    104k GitHub stars~1.1k tokensUpdated today
    AI & LLM EngineeringAuto-check passed

More from hoangsonww/Claude-Code-Agent-Monitor

All 78 skills in this repo
  • Version Release

    hoangsonww/Claude-Code-Agent-Monitor

    Choose and apply the correct semantic version bump for this repository.

    1.1k GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Budget Set

    hoangsonww/Claude-Code-Agent-Monitor

    Define a spend budget for Claude Code and, optionally, create a cost alert rule that fires when usage crosses the limit, via POST /api/alerts/rules on the Agent Monitor dashboard.

    1.1k GitHub stars~1k tokensUpdated yesterday
    Auto-check passed
  • Cache Efficiency

    hoangsonww/Claude-Code-Agent-Monitor

    Analyze prompt-cache effectiveness for Claude Code usage from the Agent Monitor dashboard — cache hit rate (totalcacheread / (totalcacheread + totalinput)), cachewrite vs cacheread reuse, cache-read…

    1.1k GitHub stars~966 tokensUpdated yesterday
    Auto-check passed
  • Cost Breakdown

    hoangsonww/Claude-Code-Agent-Monitor

    Break down Claude Code costs using the Agent Monitor pricing engine.

    1.1k GitHub stars~845 tokensUpdated yesterday
    Auto-check passed
  • Dag Map

    hoangsonww/Claude-Code-Agent-Monitor

    Render the multi-agent orchestration DAG for a session — parent→child subagent edges, tree depth, and fan-out — from the Agent Monitor workflow intelligence API.

    1.1k GitHub stars~564 tokensUpdated yesterday
    Auto-check passed
  • Dashboard Status

    hoangsonww/Claude-Code-Agent-Monitor

    Quick dashboard health and status overview — checks the Agent Monitor API (port 4820), reports session/agent/event counts from /api/stats, confirms WebSocket connectivity, reads the redacted hook…

    1.1k GitHub stars~600 tokensUpdated yesterday
    Auto-check passed

Questions about Productivity Score

What does Productivity Score do?

Calculate a productivity score using actual Agent Monitor metrics — session completion rates, cache efficiency (cacheread vs input), compaction pressure (baseline tokens), turn velocity (turncount /…. Productivity Score is an agent skill from hoangsonww/Claude-Code-Agent-Monitor. Calculate a productivity score using actual Agent Monitor metrics — session completion rates, cache efficiency (cacheread vs input), compaction pressure (baseline tokens), turn velocity (turncount / totalturndurationms), tool success ratio (PreToolUse vs PostToolUse), and the workflow intelligence API's complexity and effectiveness scores.

How do I install Productivity Score in Claude Code?

Run `npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill productivity-score -a claude-code`. Or copy the skill folder (plugins/ccam-analytics/skills/productivity-score in hoangsonww/Claude-Code-Agent-Monitor) into .claude/skills/productivity-score in your project. Claude Code loads it when a task matches its description.

How do I install Productivity Score in Codex?

Run `npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill productivity-score -a codex`. Or copy the skill folder (plugins/ccam-analytics/skills/productivity-score in hoangsonww/Claude-Code-Agent-Monitor) into .agents/skills/productivity-score in your project. Codex loads it when a task matches its description.

Can I use Productivity Score in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill productivity-score -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/productivity-score, .gemini/skills/productivity-score, .github/skills/productivity-score and .opencode/skills/productivity-score in your project.

What does Productivity Score need to run?

SKILL.md names no scripts, command-line tools or credentials: Productivity Score is instructions for the agent only.

Does Productivity Score access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Productivity Score safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Productivity Score use?

Productivity Score is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Productivity Score use?

About 906 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Productivity Score?

Skills that share tags, products or a category with Productivity Score: Metric Calculator (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Gke AI Troubleshooting Tpu Metrics Monitoring (google/skills, 21k stars), Cloud Monitoring Metric Selection (google/skills, 21k stars) and Metric Calculator (foryourhealth111-pixel/Vibe-Skills, 3.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Productivity Score?

hoangsonww (a GitHub user) maintains it in hoangsonww/Claude-Code-Agent-Monitor, which has 1,058 GitHub stars. The repository holds 78 skills in this directory. The repository was last updated on October 10, 2026.

Source: hoangsonww/Claude-Code-Agent-Monitor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.