Skip to content
Back to skills

Session Metrics

ASecurity

Show usage metrics and analytics for AI coding sessions. Use when the user asks "how much have I been coding", "session stats", "show me metrics", "tool usage", "which tool do I use most", "active hours", or wants analytics about their AI coding tool usage.

  • 38 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 10, 2026
ai-agents

Security analysis

A100/100

Scanned October 10, 2026

npx -y skills add nicknisi/sessions --skill session-metrics --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Session Metrics?

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

Security grade badge for Session Metrics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nicknisi-session-metrics/badge)](https://www.skillsdirectory.com/skills/nicknisi-session-metrics)

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: session-metrics
description: >-
  Show usage metrics and analytics for AI coding sessions. Use when the user
  asks "how much have I been coding", "session stats", "show me metrics",
  "tool usage", "which tool do I use most", "active hours", or wants
  analytics about their AI coding tool usage.
argument-hint: time period (e.g., "past week", "may", "past month")
---

Show session usage metrics and analytics.

## Steps

1. **Parse the time period.** Convert the user's argument to a date range (YYYY-MM-DD). Default to the past 7 days if no period specified. Common inputs: "past week", "this month", "past 30 days", "may 2026".

2. **Fetch metrics.** Call `get_session_metrics` with:
   - `startDate` and `endDate` from the parsed range

3. **Format the dashboard:**

   ### Session Metrics: {start} to {end}

   **Overview**
   - {total sessions} sessions | {total messages} messages
   - Tools: {breakdown with counts}

   **Top Projects** (table: project, sessions, messages)
   List the top 10 by session count.

   **Daily Activity** (table or mini-chart: date, sessions, messages)
   Show each day in the range.

   **Active Hours**
   Render the hours heatmap as a simple bar chart or table showing which hours of the day have the most sessions. Convert to local time labels (e.g., "9am", "2pm").

## Guidelines

- Round percentages to whole numbers.
- For active hours, group into time blocks if the data is sparse (morning/afternoon/evening/night).
- If a tool has zero sessions, omit it from the breakdown.
- Keep the formatting clean — this should be pasteable into a document or message.

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.

Comments

Loading comments…