Skip to content
Back to skills

Productionos Stats

ASecurity

Display ProductionOS system statistics — agent count, command count, hook count, test count, version, instinct count, and session history.

  • 8 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
data-aigobashrailsgit

Works with

  • claude code

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add ShaheerKhawaja/ProductionOS --skill productionos-stats --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Productionos Stats?

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

Security grade badge for Productionos Stats
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shaheerkhawaja-productionos-stats/badge)](https://www.skillsdirectory.com/skills/shaheerkhawaja-productionos-stats)

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: productionos-stats
description: "Display ProductionOS system statistics — agent count, command count, hook count, test count, version, instinct count, and session history."
argument-hint: "[repo path, target, or task context]"
---

# productionos-stats

Display ProductionOS system statistics — agent count, command count, hook count, test count, version, instinct count, and session history.

## Inputs

| Parameter | Values | Default | Description |
|-----------|--------|---------|-------------|
| `target` | path or context | cwd | What to operate on |

# /productionos-stats — System Dashboard

Display a comprehensive stats dashboard for the current ProductionOS installation.

## Step 0: Preamble

Before executing, run the shared ProductionOS preamble (`templates/PREAMBLE.md`).

## Step 1: Run Stats Dashboard

Execute the stats dashboard script:

```bash
bun run scripts/stats-dashboard.ts
```

The script computes and outputs all metrics in structured markdown format.

## Metrics Computed

### System Metrics
- **Version** — from `VERSION` file
- **Agent count** — total `.md` files in `agents/` with HIGH/MEDIUM/LOW stakes breakdown
- **Command count** — total `.md` files in `.claude/commands/`
- **Hook count** — unique hook scripts referenced in `hooks/hooks.json`
- **Template count** — total `.md` files in `templates/`
- **Script count** — total `.ts` files in `scripts/`
- **Test file count** — total `.ts` files in `tests/`

### Learning Metrics
- **Project instincts** — patterns learned for the current project
- **Global instincts** — cross-project patterns (confidence > 0.8)
- **Session handoffs** — auto-generated handoff documents
- **Skill usage events** — total events in analytics log

### Git Activity
- **Total commits** — `git rev-list --count HEAD`
- **Commits today** — `git log --oneline --since=midnight`
- **Last handoff** — most recent session handoff document

## Output Format

The dashboard outputs a markdown table for each category, suitable for display in Claude Code's conversation.

## Use Cases

- Run after a sprint to see what was shipped (new agents, commands, hooks)
- Check learning progress (instinct accumulation across sessions)
- Verify installation completeness (all counts match expected values)
- Share stats in session handoff documents for continuity

## Error Handling

| Scenario | Action |
|----------|--------|
| No target provided | Ask for clarification with examples |
| Target not found | Search for alternatives, suggest closest match |
| Missing dependencies | Report what is needed and how to install |
| Permission denied | Check file permissions, suggest fix |
| State file corrupted | Reset to defaults, report what was lost |

## Guardrails

1. Do not silently change scope or expand beyond the user request.
2. Prefer concrete outputs and verification over abstract descriptions.
3. Keep scope faithful to the user intent.
4. Preserve existing workflow guardrails and stop conditions.
5. Verify results before concluding.

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…

Newsletter

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