ai-platform-engineering: Skill for Claude Code

.claude/skills/ui-performance-benchmark/SKILL.md

ui-performance-benchmark is a skill for Claude Code, Codex from caipe-io/ai-platform-engineering. It costs 78 tokens per session (1,067 once invoked), scanned A, original, Apache-2.0.

A load-testing workflow for measuring the performance of a web interface and its backend-for-frontend service. It uses Locust, a tool that simulates users making requests, against a Docker Compose environment.

In plain words
What is it for?
Use it to run user-count benchmark sweeps, check the UI stack, and update performance results for services such as audit logging, authorization, databases, authentication, retrieval, and dynamic agents.
Why use it?
It provides a repeatable way to measure response times and behavior under different user loads while recording the surrounding service health.

Skill for Claude CodeCodex

Written for Claude Code and Codex: installed under .claude/, but also agents/openai.yaml present.

This is caipe-io/ai-platform-engineering's own configuration. It tells Claude Code and Codex how to work on ai-platform-engineering itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-platform-engineering configures →

Reuse

Borrowing it

Nothing to install: this file belongs to caipe-io/ai-platform-engineering. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/caipe-io/ai-platform-engineering/main/.claude/skills/ui-performance-benchmark/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/caipe-io/ai-platform-engineering

Made for: Claude Code, Codex.

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 ui-performance-benchmark

README.md
[![agentmods](https://agentmods.dev/badge/skills/caipe-io/ai-platform-engineering/ui-performance-benchmark.svg)](https://agentmods.dev/skills/caipe-io/ai-platform-engineering/ui-performance-benchmark)
Your own site
<a href="https://agentmods.dev/skills/caipe-io/ai-platform-engineering/ui-performance-benchmark"><img src="https://agentmods.dev/badge/skills/caipe-io/ai-platform-engineering/ui-performance-benchmark.svg" alt="Measured on agentmods" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,067 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00078 $0.01067
Opus 5 $0.00039 $0.00534
Sonnet 5 $0.00016 $0.00213
Haiku 4.5 $0.00008 $0.00107

Measured 6d ago against content hash 94ed9cc78695, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ui-performance-benchmark scanned grade A with 1 finding 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 6d ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sS http://localhost:3000/api/health
.claude/skills/ui-performance-benchmark/SKILL.md · 121 lines

How it starts

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

UI Performance Benchmark

Overview

Benchmark the CAIPE UI/BFF with Locust against the Docker Compose stack, then summarize and optionally record results in the evaluation docs.

Primary files:

  • scripts/locustfile.py
  • ui/mint-test-session.mjs
  • docs/docs/evaluations/ui-performance-benchmark-results.md
  • docs/docs/security/rbac/audit-log-performance.md

Preflight

  1. Inspect the current harness and prior docs before running:
sed -n '1,220p' scripts/locustfile.py
sed -n '1,220p' docs/docs/evaluations/ui-performance-benchmark-results.md
sed -n '1,220p' docs/docs/security/rbac/audit-log-performance.md
  1. Start or verify the prod-parity UI stack:
docker compose -f docker-compose.dev.yaml --profile caipe-ui-prod up -d
curl -sS http://localhost:3000/api/health
docker ps --filter name=caipe-ui --format '{{.Names}}\t{{.Status}}\t{{.Image}}\t{{.Ports}}'
  1. Use the running UI container's NEXTAUTH_SECRET so the benchmark session cookie matches the server:
export NEXTAUTH_SECRET="$(
  docker inspect -f '{{range .Config.Env}}{{println .}}{{end}}' caipe-ui-prod \
    | sed -n 's/^NEXTAUTH_SECRET=//p' \
    | head -1
)"

scripts/locustfile.py mints a test session through ui/mint-test-session.mjs at Locust startup. To debug session minting directly:

cd ui
NEXTAUTH_SECRET="$NEXTAUTH_SECRET" node mint-test-session.mjs

Run

Default comparable run:

mkdir -p reports
ts="$(date -u +%Y%m%dT%H%M%SZ)"
locust -f scripts/locustfile.py \
  --host http://localhost:3000 \
  --users 300 \
  --spawn-rate 20 \
  --run-time 10m \
  --headless \
  --html "reports/300u-ui-benchmark-${ts}.html" \
  --csv "reports/300u-ui-benchmark-${ts}"

For a quick smoke run, reduce runtime:

locust -f scripts/locustfile.py \
  --host http://localhost:3000 \
  --users 300 \
  --spawn-rate 50 \
  --run-time 30s \
  --headless \
  --html "reports/300u-ui-smoke-${ts}.html" \
  --csv "reports/300u-ui-smoke-${ts}" \
  --only-summary

Read the full file on GitHub · 121 lines

Files

What ships with it

1 file 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. 6d ago First seen · 121 lines · 78 tokens per session scan A 94ed9cc78695

Subscribe to this mod's changes

ui-performance-benchmark is a skill published in the GitHub repository caipe-io/ai-platform-engineering (407 stars, last pushed today), licensed Apache-2.0. It adds 78 tokens to every session and 1,067 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.