Agent skill

Performance Review

by athola in athola/claude-night-market

Detects time and space complexity hotspots via AST scan. An agent skill from athola/claude-night-market.

MITAuto-check passedBusiness, Finance & HR

Install Performance Review

skills CLI
$ npx skills add athola/claude-night-market --skill performance-review -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install athola/claude-night-market performance-review --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/pensive/skills/performance-review .claude/skills/performance-review && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
performance-review
GitHub stars
341
Token cost
~2.7k tokens
SKILL.md length
1,113 words
Files
6
Skills in repo
154
Repo updated
First seen
Licence
MIT

At a glance

Detects time and space complexity hotspots via AST scan. An agent skill from athola/claude-night-market.

  • Works in 5 steps: Context (perf-review:context-established) → Tier 1 AST scan… → Categorize and rank… → …
  • Code feels slow
  • SKILL.md covers Quick Start, When To Use, When NOT to Use and Required TodoWrite Items, plus 9 more sections
  • Calls git

What it does

Performance Review is an agent skill from athola/claude-night-market. Detects time and space complexity hotspots via AST scan. Use when code feels slow, before performance-sensitive merges, or to find O(n²) regressions.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files (for example `modules/gauntlet-integration.md`, `modules/kuva-visualization.md` and `modules/memory-allocation-lenses.md`).

It sits in Business, Finance & HR, covering Performance reviews. It works with Python. The repository describes itself as: 23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context… The licence is MIT.

When your agent uses it

  • Code feels slow
  • Before performance-sensitive merges
  • Find O(n²) regressions

Example prompts

  • “Use the performance-review skill to detect time and space complexity hotspots via AST scan. An agent skill from athola/claude-night-market”
  • “/performance-review”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Context (perf-review:context-established)
  2. Tier 1 AST scan (perf-review:scan-complete)
  3. Categorize and rank (perf-review:findings-categorized)
  4. Tier 2/3 enrichment (perf-review:integration-checked)
  5. Report (perf-review:report-generated)

What it can do on your machine

Read from SKILL.md and the folder at commit 9f3eb00. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Performance Review loads about 2.7k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 1,113 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from athola/claude-night-market at commit 9f3eb00, republished under its MIT licence (© athola). 1,113 words, ~2,735 tokens.

Download SKILL.mdSave it as .claude/skills/performance-review/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
performance-review
description
Detects time and space complexity hotspots via AST scan. Use when code feels slow, before performance-sensitive merges, or to find O(n²) regressions.
alwaysApply
false
category
code-quality
tags
performance, complexity, algorithms, ast, static-analysis
usage_patterns
hotspot-detection, complexity-review, pre-merge-performance-check
complexity
advanced
model_hint
deep
estimated_tokens
280
progressive_loading
true
dependencies
imbue:proof-of-work, imbue:review-core, imbue:structured-output
modules
modules/time-complexity.md, modules/space-complexity.md, modules/gauntlet-integration.md, modules/kuva-visualization.md, modules/memory-allocation-lenses.md

Performance Review

Static-analysis review of time and space complexity hotspots.

The skill runs in three escalating tiers. Tier 1 uses Python's stdlib ast and always runs. Tier 2 uses gauntlet's tree-sitter parser to extend detection across languages when gauntlet is installed. Tier 3 uses the gauntlet code graph to upgrade severity when hotspots reach other hotspots transitively. If gauntlet is missing, Tiers 2 and 3 no-op and Tier 1 still produces useful findings on Python source.

Quick Start

bash
/performance-review                  # scan changed files
/performance-review path/to/file.py  # scan one file
/performance-review --tier 1         # force Tier 1 only

Programmatic use:

python
from pensive.skills.performance_review import PerformanceReviewSkill

skill = PerformanceReviewSkill()
result = skill.analyze(context, "src/module.py")
for f in result.issues:
    print(f"[{f.severity}] {f.file}:{f.line} {f.message}")

When To Use

  • Pre-merge review of code that runs on user-scaled inputs.
  • Triage of a function that "feels slow" before reaching for a profiler.
  • Audit a refactor for newly introduced O(n²) patterns.
  • Guardrail for AI-generated code where nested-loop hot spots are common.

When NOT to Use

  • The target needs runtime measurement (memory profile, CPU time on real data). Use Skill(parseltongue:python-performance) instead: that skill drives cProfile, py-spy, and benchmarks.
  • General refactoring guidance not focused on hotspots: use Skill(pensive:code-refinement) whose algorithm-efficiency module covers broader optimization patterns. This skill detects; that skill teaches.
  • Deciding whether a hand-rolled loop transform (unrolling, manual SIMD, strength reduction) is worth keeping: use Skill(leyline:loop-optimization) for the hand-vs-compiler rule. This skill flags hotspot shapes, not transformation choices.
  • Architecture-level performance (sharding, caching layers, queue placement): use Skill(pensive:architecture-review).

Required TodoWrite Items

  1. perf-review:context-established
  2. perf-review:scan-complete
  3. perf-review:findings-categorized
  4. perf-review:integration-checked
  5. perf-review:report-generated
  6. perf-review:findings-verified

Workflow

Step 1: Context (perf-review:context-established)
  • Identify target files. If invoked with no argument, use git diff --name-only. If invoked with a path, scope to that.
  • Note language(s) involved. Tier 1 covers Python; non-Python files need gauntlet for Tier 2 coverage.
Step 2: Tier 1 AST scan (perf-review:scan-complete)

Load modules/time-complexity.md for the time-side patterns and modules/space-complexity.md for space-side. Each module documents the AST shape of every detector.

Alongside the automated scan, load modules/memory-allocation-lenses.md and apply its three manual lenses (unbounded external-source collections, hot-path recompute, serial blocking I/O) by reading the target files.

For each Python target file, call:

python
from pensive.skills.performance_review import PerformanceReviewSkill

result = PerformanceReviewSkill().analyze(context, path)

The visitor walks the AST once and emits ReviewFinding records.

Step 3: Categorize and rank (perf-review:findings-categorized)

Group findings by severity:

  • HIGH: O(n²) or worse on input-sized iterables (T1, T2).
  • MEDIUM: Unbounded allocation or per-iteration overhead (T3, T4, S1, S3).
  • LOW: Style-level inefficiencies (T5, T6, S2).
  • CRITICAL: Reserved for Tier-3 transitive upgrades.

Within a severity, sort by file then line. Suppress findings the user has explicitly marked acceptable (TODO/comment markers) at module-load time of the target.

Step 4: Tier 2/3 enrichment (perf-review:integration-checked)

Load modules/gauntlet-integration.md for the contract.

If gauntlet is installed, run Tier 2 on non-Python files that were skipped at Step 2. If a .gauntlet/graph.db exists in the working tree, run Tier 3 to upgrade severities based on transitive hotspot reachability.

If gauntlet is missing, this step is a no-op and the report notes "Tier 2/3 not available: install gauntlet for multi-language and call-chain coverage."

Step 5: Report (perf-review:report-generated)

Emit a markdown report:

## Performance Review: <target>

### HIGH (<count>)
- src/foo.py:42: Nested loop over the same iterable 'items'.
  Suggestion: sort + two pointers, or hash-set membership.

### MEDIUM (<count>)
- ...

### LOW (<count>)
- ...

Tier coverage: 1 (always) | 2 (gauntlet ✓/✗) | 3 (graph ✓/✗)

The report is informational. Apply fixes via Skill(pensive:code-refinement) or hand-merge.

Tiered Analysis

TierSourceWhen it runsWhat it covers
1stdlib astAlways (Python source only)T1-T6, S1-S3
2gauntlet.treesitter_parserWhen gauntlet importableSame patterns adapted to JS/TS, Go, Rust, Java, C/C++
3gauntlet.graph.GraphStoreWhen .gauntlet/graph.db existsSeverity upgrade via transitive call chains

Output Format

Findings use the shared ReviewFinding dataclass from pensive.skills.base:

python
ReviewFinding(
    file="src/module.py",
    line=42,
    severity="HIGH",  # LOW | MEDIUM | HIGH | CRITICAL
    category="time",  # time | space
    message="Nested loop over the same iterable 'items'.",
    suggestion="Sort + two pointers, or hash-set membership.",
    anchor="verbatim source text at file:line",
    code_snippet="",
)

This shape matches every other pensive review skill, so the findings can flow into Skill(pensive:unified-review) without translation.

Cross-Plugin Dependencies

DependencyRequired?Effect when missing
gauntlet.treesitter_parserOptionalTier 2 returns []; Python coverage unchanged
gauntlet.graph.GraphStoreOptionalTier 3 returns []; severities are not upgraded

The optional-import contract follows the precedent in plugins/leyline/src/leyline/tokens.py:25-32: try-import to a module-level sentinel, then early-return on None inside each tier helper. plugins/gauntlet/hooks/precommit_gate.py:35-40 is the boolean-flag variant of the same shape. See modules/gauntlet-integration.md for the exact code shape.

Supporting Modules

  • modules/time-complexity.md: T1-T6 detector patterns and AST shapes.
  • modules/space-complexity.md: S1-S3 detector patterns.
  • modules/gauntlet-integration.md: Tier 2/3 contract, fallback semantics, examples.
  • modules/kuva-visualization.md: Rendering benchmark data as charts with kuva (criterion, pytest-benchmark, ad-hoc tables). Covers when chart evidence satisfies proof-of-work requirements.
  • modules/memory-allocation-lenses.md: Manual review lenses (not AST detectors) for unbounded collections fed from external sources, hot-path recompute that should be memoized, and serial blocking I/O over unbounded sets. Apply by reading the code; the detector-test rule in Testing does not cover these because nothing is automated.
Show full SKILL.md (415 more words)Show less

Verification

A perf-review finding is only useful if the caller can confirm it is real. Use this checklist before treating any finding as worth fixing:

  1. Reproduce under a profiler. Run cProfile, py-spy, or the language-specific equivalent on the hotspot. The findings pinpoint AST shapes; the profiler validates the runtime impact.
  2. Re-run the failing benchmark. If benches/ exists, the hotspot should show up in numbers, not just AST scans.
  3. Compare numbers before and after the proposed fix. The fix is wrong if numbers do not move. Capture both timings as evidence references like [E1] (before) and [E2] (after). When 3+ data points exist, render a kuva chart and attach it to the PR (see modules/kuva-visualization.md).
  4. Sample two or three reported hotspots manually. Findings can be true at the AST level and false at the call-graph level when callers short-circuit. Manual sampling catches that.

The Skill(imbue:proof-of-work) discipline applies: claims like "the hotspot is fixed" require evidence, not assertion.

Testing

A test file already lives at plugins/pensive/tests/skills/test_performance_review.py covering the AST-shape detectors. Two rules for changes here:

  • Add a new detector with a test. Any new T-* or S-* pattern added to the modules ships with a test that has the smallest AST sample exercising it.
  • Add a regression test for any false positive removed. When the skill stops firing on a shape that used to look hot, the reason should appear as a test case so the regression is discoverable later.

The Iron Law applies: a new detector without a failing test first is a request to skip TDD on a code-analysis component, which is exactly the place where TDD pays off most.

Verify Findings Are Grounded (perf-review:findings-verified)

Write findings to .review/findings.json, run the citation verifier (Skill(imbue:review-core) Step 5), and drop or label UNVERIFIED any the verifier rejects.

Exit Criteria

  • A perf-review report file exists for the requested target.
  • Every finding carries a severity label and a concrete suggestion the caller can act on.
  • Time-complexity (T1-T6) and space-complexity (S1-S3) detectors have been run; tier coverage is reported.
  • Tier 2 (gauntlet treesitter) and Tier 3 (graph store) contracts honor the optional-import sentinel: missing modules return [] rather than raising.
  • Each new detector ships with a smallest-AST test that fails before the detector exists; each removed false positive ships with a regression test.
  • Findings flow into Skill(pensive:unified-review) without translation when invoked from the unified entry point.
  • Every reported finding carries a Location + verbatim Anchor confirmed by citation_verifier.py (exit 0), or unverified findings were dropped or labeled UNVERIFIED

© athola, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files in plugins/pensive/skills/performance-review of athola/claude-night-market.

  • SKILL.md
  • modules/gauntlet-integration.md
  • modules/kuva-visualization.md
  • modules/memory-allocation-lenses.md
  • modules/space-complexity.md
  • modules/time-complexity.md

Open the folder on GitHubat commit 9f3eb00

Compare with similar skills

Performance Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Performance Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Performance Review this skillathola/claude-night-market341—~2.7kAutomated safety check: PassMIT
Bio Metabolomics Targeted AnalysisFreedomIntelligence/OpenClaw-Medical-Skills3.1k1 repos~2.5kAutomated safety check: PassNone
Amc Run Sample CalibrationNVIDIA/skills3.5k—~3.5kAutomated safety check: PassApache-2.0
Code Review Skillawesome-skills/code-review-skill2.1k—~2.8kAutomated safety check: NotesMIT
Quark Onnx Debugamd/Quark181—~4.8kAutomated safety check: PassMIT
Quark Onnx Ptq Workflowamd/Quark181—~4.5kAutomated safety check: PassMIT

Similar skills

  • Bio Metabolomics Targeted Analysis

    FreedomIntelligence/OpenClaw-Medical-Skills

    Targeted metabolomics analysis using MRM/SRM with standard curves.

    3.1k GitHub starsUsed in 1 repo~2.5k tokens
    Business, Finance & HRAuto-check passed
  • Official

    Run end-to-end calibration on the shipped sample dataset (sdg082sampledata010926.zip) against a running AMC microservice.

    3.5k GitHub stars~3.5k tokensUpdated today
    Backend & APIsAuto-check passed
  • Code Review Skill

    awesome-skills/code-review-skill

    Provides comprehensive code review guidance for React 19, Vue 3, Angular 17+, Svelte 5, Rust, TypeScript, Java, Java 8, PHP, Ruby, Rails, Python, Django, FastAPI, Go, C/.NET, Kotlin, Swift, Dart…

    2.1k GitHub stars~2.8k tokensUpdated 1 mo ago
    DevelopmentAuto-check: notes
  • Diagnose failed Quark ONNX installation, calibration, quantization, custom-op compilation, or export attempts.

    181 GitHub stars~4.8k tokensUpdated 11 days ago
    AI & LLM EngineeringAuto-check passed
  • End-to-end ONNX PTQ workflow for AMD Quark — from a .onnx file (and calibration data) to a quantized .onnx output.

    181 GitHub stars~4.5k tokensUpdated 11 days ago
    AI & LLM EngineeringAuto-check passed
  • Builds and manages DIA spectral libraries as peptide query parameters (precursor m/z, a few fragment m/z plus relative intensities, normalized RT, optional CCS), covering experimental DDA…

    1.2k GitHub starsUsed in 1 repo~4.6k tokens
    Research & ScienceAuto-check passed

More from athola/claude-night-market

All 154 skills in this repo
  • Night Market Diagnostics Toolkit

    athola/claude-night-market

    Run and interpret repo diagnostic scripts (ratchets, validators, token stats).

    341 GitHub stars~3.4k tokensUpdated 3 days ago
    Auto-check passed
  • Skills Eval

    athola/claude-night-market

    Evaluate Claude skill quality through auditing. An agent skill from athola/claude-night-market.

    341 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed
  • Agent Teams

    athola/claude-night-market

    Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market.

    341 GitHub stars~2.5k tokensUpdated 3 days ago
    Auto-check passed
  • Delegation Core

    athola/claude-night-market

    Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer).

    341 GitHub stars~2.5k tokensUpdated 3 days ago
    Auto-check passed
  • Elegant Code

    athola/claude-night-market

    Guide minimal code via a decision ladder with full safety, edge, and negative-case coverage.

    341 GitHub stars~2.1k tokensUpdated 3 days ago
    Auto-check passed
  • Skill Library Mission

    athola/claude-night-market

    Build a project skill library in .claude/skills/ via discovery, parallel authoring, and review.

    341 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed

Works with

Questions about Performance Review

What does Performance Review do?

Detects time and space complexity hotspots via AST scan. An agent skill from athola/claude-night-market. Performance Review is an agent skill from athola/claude-night-market. Detects time and space complexity hotspots via AST scan.

When should I use Performance Review?

Performance Review fits situations like: code feels slow; before performance-sensitive merges; find O(n²) regressions.

How do I install Performance Review in Claude Code?

Run `npx skills add athola/claude-night-market --skill performance-review -a claude-code`. Or copy the skill folder (plugins/pensive/skills/performance-review in athola/claude-night-market) into .claude/skills/performance-review in your project. Claude Code loads it when a task matches its description.

How do I install Performance Review in Codex?

Run `npx skills add athola/claude-night-market --skill performance-review -a codex`. Or copy the skill folder (plugins/pensive/skills/performance-review in athola/claude-night-market) into .agents/skills/performance-review in your project. Codex loads it when a task matches its description.

Can I use Performance Review in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add athola/claude-night-market --skill performance-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/performance-review, .gemini/skills/performance-review, .github/skills/performance-review and .opencode/skills/performance-review in your project.

What does Performance Review need to run?

Going by SKILL.md and its folder, Performance Review needs the command-line tools its instructions call (git). Our summary lists: Python 3.

Does Performance Review access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Performance Review safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Performance Review use?

Performance Review is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Performance Review use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Performance Review?

Skills that share tags, products or a category with Performance Review: Bio Metabolomics Targeted Analysis (FreedomIntelligence/OpenClaw-Medical-Skills, 3.1k stars), Amc Run Sample Calibration (NVIDIA/skills, 3.5k stars), Code Review Skill (awesome-skills/code-review-skill, 2.1k stars) and Quark Onnx Debug (amd/Quark, 181 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Performance Review?

athola (a GitHub user) maintains it in athola/claude-night-market, which has 341 GitHub stars. The repository holds 154 skills in this directory. The repository was last updated on October 6, 2026.

Source: athola/claude-night-market on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.