Gspdev benchmark

From jubscodes/get-shit-pretty · View interactive version

Gspdev benchmark is an AI agent skill from the GitHub repository jubscodes/get-shit-pretty. Benchmark GSP token budget — capture snapshots, compare between versions/PRs, track improvements over time

How to use this skill

Skill file

<context>

Benchmarks GSP's token budget, rate limit risk, and test health. Wraps dev/scripts/benchmark.sh with interactive analysis.

Snapshots live in dev/benchmarks/ as JSON files. The workflow is release-centric:

  1. At each release, capture a baseline: benchmark.sh release → {version}.release.json
  2. During development, capture snapshots: benchmark.sh capture [label]
  3. Before PR, compare against release: benchmark.sh compare (auto-selects release baseline)

This measures the cumulative impact of changes heading into the next release.

</context>

<process>

Step 0: Parse mode

Read $ARGUMENTS to determine the mode:

| Input | Mode |

|-------|------|

| (no args) | Capture + auto-compare against release baseline |

| capture [label] | Capture with optional label |

| release | Capture as the release baseline for this version |

| compare [v1] [v2] | Compare two snapshots (default: release vs latest) |

| trend | Show trajectory across all snapshots |

Step 1: Execute mode

Default mode (no args)

  1. Run bash dev/scripts/benchmark.sh capture
  2. If a release baseline exists, automatically run benchmark.sh compare
  3. Present the comparison table and analysis

This is the most common invocation — "where are we vs the last release?"

Capture mode

Run bash dev/scripts/benchmark.sh capture [label].

After capture, read the JSON from dev/benchmarks/ and present a summary:

Release mode

Run bash dev/scripts/benchmark.sh release.

This is part of the publish flow — capture the definitive baseline for this version. All future compare calls will diff against this baseline until the next release.

Remind the user: "Add benchmark.sh release to your /gspdev-publish checklist."

Compare mode

Run bash dev/scripts/benchmark.sh compare [v1] [v2].

Default (no args) compares release baseline → latest capture. After the table output, analyze:

Trend mode

Run bash dev/scripts/benchmark.sh trend.

After the table, identify:

Step 2: Suggest next actions

Based on the results, suggest relevant actions:

</process>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.