specstory-project-stats

specstory-project-stats is a skill for Claude Code from specstoryai/agent-skills. It costs 44 tokens per session (871 once invoked), scanned A, original, Apache-2.0.

A tool that retrieves project statistics from SpecStory Cloud, such as contributor counts and coding-session activity. SpecStory Cloud is an online service that stores project session information.

In plain words
What is it for?
Use it when you need project metrics, including total sessions, recent activity, or contributor information, for a project connected to SpecStory Cloud.
Why use it?
It provides project activity data without manually counting sessions or contributors.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when you need project metrics, including total sessions, recent activity, or contributor information, for a project connected to SpecStory Cloud.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/specstoryai/agent-skills/specstory-project-stats
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.

Any agent
npx skills add specstoryai/agent-skills --skill specstory-project-stats
Clone the repo
git clone --depth 1 https://github.com/specstoryai/agent-skills

Made for: Claude Code.

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 specstory-project-stats

README.md
[![agentmods](https://agentmods.dev/badge/skills/specstoryai/agent-skills/specstory-project-stats/github.svg)](https://agentmods.dev/skills/specstoryai/agent-skills/specstory-project-stats)
Your own site
<a href="https://agentmods.dev/skills/specstoryai/agent-skills/specstory-project-stats"><img src="https://agentmods.dev/badge/skills/specstoryai/agent-skills/specstory-project-stats/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for specstory-project-stats

Your own site · 80×15
<a href="https://agentmods.dev/skills/specstoryai/agent-skills/specstory-project-stats"><img src="https://agentmods.dev/badge/skills/specstoryai/agent-skills/specstory-project-stats.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 871 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00044 $0.00871
Opus 5.5 $0.00018 $0.00348
Sonnet 5.5 $0.00009 $0.00174
Haiku 4.5 $0.00004 $0.00087

Measured 2mo ago against content hash 6063deccaadf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

specstory-project-stats 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/get-stats.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/specstory-project-stats/SKILL.md · 136 lines

How it starts

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

SpecStory Project Stats

Fetches project statistics from SpecStory's cloud platform, showing contributor counts, session activity, and other project metrics.

How It Works

  1. Identifies the project via .specstory/.project.json, git remote, or folder name
  2. Calls the SpecStory Cloud API
  3. Returns project statistics in JSON format
  4. Presents the data in a readable summary

Prerequisites

  • Project must be synced to SpecStory Cloud
  • Node.js must be available to run the script

Usage

Slash Command

User says Action
/specstory-project-stats Fetch stats for current project
/specstory-project-stats Same as above (no arguments needed)

Direct Script Usage

# Fetch stats for current project
node skills/specstory-project-stats/scripts/get-stats.js

# With custom API endpoint (for development)
SPECSTORY_API_URL=http://localhost:5173 node skills/specstory-project-stats/scripts/get-stats.js

Output

The script outputs JSON with project statistics:

{
  "project_id": "specstoryai/agent-skills",
  "sessions": {
    "total": 156,
    "last_30_days": 47,
    "last_7_days": 12
  },
  "contributors": {
    "total": 5,
    "active_last_30_days": 3
  },
  "activity": {
    "first_session": "2025-10-15",
    "last_session": "2026-01-28",
    "avg_sessions_per_week": 8.2
  }
}

Project ID Resolution

The script determines project ID in this order:

  1. .specstory/.project.json - Uses git_id or workspace_id field
  2. Git remote - Extracts repo name from origin remote URL
  3. Folder name - Falls back to current directory name

Error Handling

Error Meaning Action
404 Project not found Project needs to sync to SpecStory Cloud first
401 Unauthorized API endpoint may require authentication
Network error Can't reach API Check internet connection

Present Results to User

After fetching stats, present them in a friendly format:

Read the full file on GitHub · 136 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 136 lines · 44 tokens per session scan A 6063deccaadf

Subscribe to this mod's changes

specstory-project-stats is a skill published in the GitHub repository specstoryai/agent-skills (35 stars, last pushed 9mo ago), licensed Apache-2.0. It adds 44 tokens to every session and 871 once invoked, about $0.0002 per session on Opus 5.5. 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-30.

Related

specstory-project-stats compared with skills from other repositories

specstory-project-stats next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
specstory-project-statsspecstoryai/agent-skillsSkill359mo agoApache-2.0A44Claude Code
invest-backuplongsizhuo/openInvestSkill139yesterdayMITA202Claude Code
smart-rebasesd0xdev/sd0x-harnessSkill1941mo agoMITA133Claude Code
test-reviewsd0xdev/sd0x-harnessSkill1941mo agoMITA56Claude Code
debugsd0xdev/sd0x-harnessSkill1941mo agoMITA67Claude Code
recap-docsd0xdev/sd0x-harnessSkill1941mo agoMITA114Claude Code
runbooksd0xdev/sd0x-harnessSkill1941mo agoMITA59Claude Code