Skip to content
Development
Command

/status

Show active skills with per-skill token consumption, total budget usage, and pending suggestions

From plugin
gsd-skill-creator
6926 skills64 agents26 commands1 MCP
Install
$ npx -y skills add Tibsfox/gsd-skill-creator --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/status

Context preview

What this command does when you run it.

Show active skills with per-skill token consumption, total budget usage, and pending suggestions

Command definition

status.md
name: sc:status
description: Show active skills with per-skill token consumption, total budget usage, and pending suggestions
allowed-tools:
  - Read
  - Bash
  - Glob

/sc:status -- Show active skills, token budget usage, and pending suggestions

<objective> Display a comprehensive skill budget dashboard showing per-skill token consumption, total budget percentage with visual progress bar, and count of pending skill suggestions. This is the primary health-check command for the skill-creator integration layer. </objective>

<process>

Step 1: Read integration config

Read `.planning/skill-creator.json` using the Read tool. If the file is missing, use these defaults:

{
  "token_budget": {
    "max_percent": 5,
    "warn_at_percent": 4
  },
  "suggestions": {
    "min_occurrences": 3
  }
}

No config toggle gates this command -- it is always available regardless of integration settings.

Step 2: Gather skill budget data

Run the following command via the Bash tool with a 10-second timeout:

npx skill-creator status --json

Parse the JSON output to extract:

  • `skills` array with per-skill `name`, `totalChars`, `descriptionChars`, `bodyChars`
  • `totalChars` for total budget usage
  • `budget` for the budget ceiling
  • `usagePercent` for percentage used
  • `headroom` for remaining characters

**Fallback if CLI fails:** If the command errors or is unavailable, manually scan for skills:

1. Glob `.claude/commands/*.md` and `.claude/skills/*/SKILL.md` to find active skill files 2. Read each skill file and count its character length 3. Sum total characters as budget usage 4. Calculate budget ceiling: `(token_budget.max_percent / 100) * 200000` (assumed 200k char context window) 5. Derive `usagePercent = (totalChars / budget) * 100` 6. Derive `headroom = budget - totalChars`

Step 3: Display per-skill breakdown

Display a markdown table sorted by size (largest first):

## Skill Budget Status

| Skill | Size | % of Budget |
|-------|------|-------------|
| beautiful-commits | 1,333 chars | 8.6% |
| gsd-trace | 1,472 chars | 9.5% |
| ... | ... | ... |

If no skills are found, display: "No active skills found."

Step 4: Display budget summary

Show total usage with a visual progress bar:

### Budget Overview

Budget: [####________________] 2.3% (4,230 / 184,000 chars)
Warning threshold: 4% | Maximum: 5%
Remaining headroom: 179,770 chars

Construct the progress bar with 20 segments:

  • Filled segments: `round((usagePercent / max_percent) * 20)` capped at 20
  • Use `#` for filled, `_` for empty

If `usagePercent >= warn_at_percent` from config, append a warning:

WARNING: Budget usage (4.2%) has reached the warning threshold (4%).
Consider removing or consolidating skills to free headroom.

If `usagePercent >= max_percent`, append:

CRITICAL: Budget usage (5.3%) exceeds the maximum (5%).
Skill loading may be throttled. Remove skills to restore headroom.

Step 4.6: Record token-budget calibration event (v1.49.803)

After the budget overview above is rendered, decide whether this invocation is a "responsive" or "ignored" outcome relative to a prior warn event, and record it via the bounded-learning CLI.

The decision rule is simple:

  • If a `WARNING:` or `CRITICAL:` line was emitted in step 4 of this invocation: kind = `ignored` (operator is currently over the warn threshold).
  • If a `WARNING:` or `CRITICAL:` line was emitted in the PREVIOUS `/sc:status` invocation but NOT this one (i.e. `usagePercent < warn_at_percent` now): kind = `responsive` (operator reduced load).
  • If no warn line was emitted in either invocation: skip this step entirely.

Run via Bash with a 2-second timeout (best-effort silent per Lesson #10427 — failures MUST NOT block the rest of /sc:status):

npx skill-creator bounded-learning --record-event --kind <responsive|ignored> --usage-percent <N> --warn-at-percent <N> --quiet 2>/dev/null

If the previous-invocation state is unknown (no prior `/sc:status` in this session), skip the `responsive` branch and only record `ignored` when emitted this turn.

Step 5: Display pending suggestions count

Read `.planning/patterns/suggestions.json` using the Read tool. If the file doesn't exist or is empty, display:

### Pending Suggestions

No pending suggestions. Patterns will be detected as you work and commit.

If the file exists, parse the JSON array and count entries where `state === "pending"`:

### Pending Suggestions

Pending suggestions: 3
Run `/sc:suggest` to review and act on detected patterns.

Also show a brief breakdown if there are non-pending entries:

Total suggestions: 7 (3 pending, 2 accepted, 1 dismissed, 1 deferred)

Then surface the loop-closure metric — how well the observe → suggest → create loop is actually closing:

Loop: generated 7 | accepted 2 | skills created 2 (from discover: 5)

where `generated` = total suggestions, `accepted` = entries with `state === "accepted"`, `skills created` = accepted entries that also carry a `createdSkillName`, and the parenthetical breaks `generated` down by `provenance.source` (e.g. `discover`, `observation`) for entries that have provenance.

Step 5.5: Display bounded-learning calibration state (v1.49.801)

Run the following command via the Bash tool with a 5-second timeout (best-effort — failures here MUST NOT block the rest of /sc:status):

npx skill-creator bounded-learning --summary 2>/dev/null

Parse the JSON output. If the command errored, skip the rest of this step silently.

Expected shape:

{
  "thresholds": [
    {
      "threshold": "suggestions.min_occurrences",
      "currentValue": 3,
      "observationSource": { "sourceId": "suggestions.json", "wired": true },
      "lastTick": { "timestamp": "...", "direction": "hold", "proposedValue": null, "applied": "noop" } | null
    },
    ...
  ],
  "auditLog": {
    "path": ".planning/patterns/bounded-learning-log.jsonl",
    "totalEntr
Read more
Ships withgsd-skill-creator

An adaptive learning and coprocessor architecture for Claude Code, built as an extension to GSD (open-gsd)

Get the whole plugin, auto-invoked
Stats
69
Stars
0
Views
9
Forks
Active
Maintenance
TypeScript
Language
19d ago
Last commit
6mo ago
Created

Repo: Tibsfox/gsd-skill-creator