Agent skill

Basin Perf Investigation

by jolars in jolars/basin

Investigate performance in this Basin repository using its solver and backend benchmarks, competitor harnesses, evaluation accounting, and profiling tools.

Apache-2.0Auto-check passedBusiness, Finance & HR

Install Basin Perf Investigation

skills CLI
$ npx skills add jolars/basin --skill basin-perf-investigation -a claude-code

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

GitHub CLI
$ gh skill install jolars/basin basin-perf-investigation --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/jolars/basin.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/basin-perf-investigation .claude/skills/basin-perf-investigation && 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
basin-perf-investigation
GitHub stars
124
Token cost
~2.2k tokens
SKILL.md length
1,068 words
Files
4 (incl. references)
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

Investigate performance in this Basin repository using its solver and backend benchmarks, competitor harnesses, evaluation accounting, and profiling tools.

  • Basin solver slowdowns
  • SKILL.md covers Establish the comparison, Benchmark and profile, Locate the cause and test a… and Leave reproducible evidence
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Adapter overhead

What it does

Basin Perf Investigation is an agent skill from jolars/basin. Investigate performance in this Basin repository using its solver and backend benchmarks, competitor harnesses, evaluation accounting, and profiling tools. Use for Basin solver slowdowns, executor or adapter overhead, math-kernel hotspots, allocation costs, or measured optimization work.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `agents/openai.yaml`, `references/benchmarking.md` and `references/profiling.md`).

It sits in Business, Finance & HR, covering Accounting and bookkeeping. The repository describes itself as: Numerical optimization in Rust, with pluggable linear-algebra backends and WASM support. The licence is Apache-2.0.

When your agent uses it

  • Basin solver slowdowns
  • Adapter overhead
  • Math-kernel hotspots
  • Allocation costs

Example prompts

  • “/basin-perf-investigation”

What it can do on your machine

Read from SKILL.md and the folder at commit 8d0b22a. 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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

    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

Basin Perf Investigation loads about 2.2k tokens when it runs, and up to ~5.2k if it reads all its reference files. Until then it costs about 78 tokens; SKILL.md has 1,068 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~78
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.2k

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 jolars/basin at commit 8d0b22a, republished under its Apache-2.0 licence (© jolars). 1,068 words, ~2,151 tokens.

Download SKILL.mdSave it as .claude/skills/basin-perf-investigation/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
basin-perf-investigation
description
Investigate performance in this Basin repository using its solver and backend benchmarks, competitor harnesses, evaluation accounting, and profiling tools. Use for Basin solver slowdowns, executor or adapter overhead, math-kernel hotspots, allocation costs, or measured optimization work.

Investigate Basin Performance

Reproduce the reported workload, establish a fair reference, and explain the cost with measurements. An investigation can finish with a supported diagnosis and ranked next steps. When the user requests a speedup, carry promising fixes through numerical verification and fresh timing. Do not turn an investigation alone into a solver redesign or publication of benchmark results.

This is a project-local skill for Basin's Rust optimization library and its workspace. Run commands from the repository root. Read AGENTS.md, the relevant benchmark source, and the target implementation. Consult CONTRIBUTING.md before changes to architecture, public APIs, dependencies, or platform support.

Establish the comparison

Keep the user's solver, variant, workload, and reference. If none is specified, choose a representative existing case and state the choice. For a regression, compare against a known earlier revision.

Before choosing kernel optimizations for an implementation comparison, establish whether the competitor uses the same algorithm variant. If it differs, retain the user's competitor as the practical performance target and identify a matching reference for implementation-cost comparisons. Prefer author-maintained reference code or an established library implementing the same variant. Record versions or commits and material differences; use primary documentation or source to resolve ambiguous reference semantics.

When whole-solver trajectories differ, start the implementation comparison with kernels on identical inputs. If no matching reference is available, document that limitation and use matched before/after work to support implementation speedups without attributing the whole competitor gap to implementation overhead.

Before timing, run each contestant once and record:

  • Problem dimensions, data, starting point, scalar type, bounds, and constraints. Check constraint signs, residual scaling, and whether the reported objective is a sum of squares or half that sum.
  • Algorithm settings: line search, memory size, initial simplex or population, trust-region radii, scaling, restart rules, and random seeds as applicable.
  • Actual stopping conditions, including implicit solver stops, adapter tolerance floors, and the meaning of each budget. Equal tolerance values or iteration caps do not establish equal work across libraries.
  • Returned objective, feasibility, gradient or residual norm when relevant, termination reason, iterations, and objective, derivative, and constraint evaluations. Validate the returned point independently outside the timer. Distinguish current and best-so-far state, and count verification calls separately. Budget exhaustion alone does not establish convergence; distinguish budget-limited output from verified success and invalid non-finite results.

Choose the measurement that answers the question:

  • Implementation cost: matched work, such as a kernel on identical inputs or the same solver steps. Verify evaluation counts and numerical results; equal iterations alone can hide different line-search or inner-solver work.
  • Solver effectiveness: time and evaluations to a common accuracy and feasibility target, or quality achieved within a common budget. Retain failed cases and success rates. Use paired seeds and multiple starts when stochastic variation matters. Convergence traces help explain differing trajectories.

Use both views when fewer evaluations could explain the speed difference. For non-solver components, establish equivalent outputs and the relevant work unit instead of imposing solver convergence criteria.

Benchmark and profile

Read Benchmarking Basin when selecting a harness or preparing timings. It maps the existing benchmarks and verification probes, explains Basin's counter and solver-lifecycle semantics, and gives commands for reference comparisons and before/after baselines. Check those semantics before using a state's cost_evals() as a measure of objective calls.

Establish an uninstrumented baseline before changing production code. Record versions, features, workload, timing boundaries, and sample uncertainty. Isolate historical builds from the user's checkout, and alternate prebuilt contestants when drift could obscure a small difference. Match numerical work and thread settings before attributing a gap to implementation cost.

Read Profiling Basin when collecting a profile. It provides a focused Criterion flamegraph command, optimized build settings, stack-validation guidance, and fallback options. Keep profiling and allocation instrumentation separate from timing builds; profile percentages alone cannot establish a speedup.

Show full SKILL.md (446 more words)Show less

Locate the cause and test a hypothesis

Read inclusive costs before self-time leaves. Separate problem callbacks, solver work, backend kernels, executor bookkeeping, and outer adapters. Then follow the hot callers into the actual implementation:

  • Extra evaluations or inner iterations: inspect termination semantics, line-search trials, rejection steps, derivative reuse, and callback counts.
  • Allocation and copying: trace allocator frames to workspace creation, vector clones, conversions, or state snapshots. Measure requests and bytes in a separate instrumented run; cumulative requested bytes are not peak memory.
  • Matrix work: isolate factorization, matrix products, layouts, dispatch, and scratch allocation at representative dimensions and conditioning. Check scaling over sizes before proposing a backend switch.
  • Framework or adapter overhead: compare a valid initialized solver loop with Executor, then add the adapter or observers. Keep the callbacks, stopping policy, and returned-state semantics equivalent across layers.

Label the denominator for reported percentages; nested inclusive shares cannot be summed. A smaller hotspot share alone does not establish less elapsed time. Use source inspection and a focused experiment to connect the profile to a specific cause.

When implementing a fix, test one supported hypothesis at a time. Preserve numerical safeguards, constraint handling, evaluation accounting, and public contracts. Looser tolerances, removed recovery checks, changed precision, or different algorithms require separate justification as numerical tradeoffs. Floating-point bit identity is not generally required, but approximate result checks, feasibility, and relevant degenerate or ill-conditioned cases are.

Rerun focused correctness tests, reference checks, and uninstrumented benchmarks on the original case plus representative contrasting sizes or workloads. Follow the repository's scope-appropriate verification, including supported backends and f32 coverage when affected. Keep default WASM and feature guarantees; all-feature tests need an explicit BLAS/LAPACK provider. Wall-time thresholds are unsuitable unit-test assertions; deterministic work or allocation ceilings can guard a demonstrated regression when stable and paired with result checks.

If the difference remains within measurement uncertainty, report it as inconclusive. Discard unsupported experimental edits without disturbing user changes, and record the finding rather than accumulating speculative rewrites.

Leave reproducible evidence

Keep raw profiles, exploratory output, and investigation reports in ignored target/ directories or a temporary workspace. Integrate reusable probes into the existing benchmark and test harnesses. Record enough metadata and exact commands to repeat the run. The task bench:* commands also regenerate published web data; use the direct harness for investigation and refresh website results only within the requested scope.

Report the reference and workload, numerical comparability and remaining asymmetries, timings with uncertainty, evaluation counts or success rates, profile evidence identifying the responsible layer and function, and any verified change. Include validation results, attempted ideas that did not pay, artifact paths, and the next experiment supported by the evidence. Distinguish measured findings from hypotheses and tooling limitations.

© jolars, Apache-2.0. 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 3 other files (references) in .codex/skills/basin-perf-investigation of jolars/basin.

  • SKILL.md
  • agents/openai.yaml
  • references/benchmarking.md
  • references/profiling.md

Open the folder on GitHubat commit 8d0b22a

Compare with similar skills

Basin Perf Investigation 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.

Basin Perf Investigation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Basin Perf Investigation this skilljolars/basin124—~2.2kAutomated safety check: PassApache-2.0
Sync Upstreamnyaruka/phonenumbers1.6k—~2.8kAutomated safety check: PassMIT
Radiology Tablehuang-sir1/radiology-skills1.9k—~1.3kAutomated safety check: PassCustom licence
ERPClaw ERP Controlleravansaber/erpclaw116—~18kAutomated safety check: PassGPL-3.0
Odoo Agency Fleet Reviewerpipe-org/mcp-odoo421—~699Automated safety check: PassMIT
Beancount Closebex-co/beancount-io297—~1.4kAutomated safety check: PassMIT

Similar skills

  • Sync Upstream

    nyaruka/phonenumbers

    Sync this Go port with a new upstream google/libphonenumber release — regenerate the embedded metadata and reconcile the ported Java logic.

    1.6k GitHub stars~2.8k tokensUpdated 8 days ago
    Business, Finance & HRAuto-check passed
  • Radiology Table

    huang-sir1/radiology-skills

    Create/audit editable publication tables with source reconciliation; not figures or statistical inference.

    1.9k GitHub stars~1.3k tokensUpdated 20 days ago
    Business, Finance & HRAuto-check passed
  • ERPClaw ERP Controller

    avansaber/erpclaw

    Operates the ERPClaw self-hosted ERP in plain language: accounting, invoicing, inventory, purchasing, tax, HR, payroll and reports, treating the ERP as the single source of truth.

    116 GitHub stars~18k tokensUpdated 2 days ago
    Business, Finance & HRAuto-check passed
  • Odoo Agency Fleet Review

    erpipe-org/mcp-odoo

    Review many client Odoo databases at once through odoo-mcp's cross-instance tools — fleet-wide accounting health, per-client aging, partial-failure triage — for agencies and partners managing 5–50…

    421 GitHub stars~699 tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Beancount Close

    bex-co/beancount-io

    Close an accounting period in a Beancount ledger by reconciling each active account through beancount-reconcile, checking assertions and recurring gaps, reviewing flags, then proposing a commit with…

    297 GitHub stars~1.4k tokensUpdated today
    Business, Finance & HRAuto-check passed
  • Forward Implementation First

    Vuk97/forward-implementation-first

    Keeps an agent building and validating real output instead of servicing its own bookkeeping.

    176 GitHub stars~1.8k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed

More from jolars/basin

  • Add Solver

    jolars/basin

    Add one research-grounded numerical optimization solver to Basin, including its public API, state and math integration, backend tests, rustdoc references, and solver-catalog synchronization.

    124 GitHub stars~2.5k tokensUpdated today
    Auto-check passed

Questions about Basin Perf Investigation

What does Basin Perf Investigation do?

Investigate performance in this Basin repository using its solver and backend benchmarks, competitor harnesses, evaluation accounting, and profiling tools. Basin Perf Investigation is an agent skill from jolars/basin. Investigate performance in this Basin repository using its solver and backend benchmarks, competitor harnesses, evaluation accounting, and profiling tools.

When should I use Basin Perf Investigation?

Basin Perf Investigation fits situations like: basin solver slowdowns; adapter overhead; math-kernel hotspots; allocation costs.

How do I install Basin Perf Investigation in Claude Code?

Run `npx skills add jolars/basin --skill basin-perf-investigation -a claude-code`. Or copy the skill folder (.codex/skills/basin-perf-investigation in jolars/basin) into .claude/skills/basin-perf-investigation in your project. Claude Code loads it when a task matches its description.

How do I install Basin Perf Investigation in Codex?

Run `npx skills add jolars/basin --skill basin-perf-investigation -a codex`. Or copy the skill folder (.codex/skills/basin-perf-investigation in jolars/basin) into .agents/skills/basin-perf-investigation in your project. Codex loads it when a task matches its description.

Can I use Basin Perf Investigation 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 jolars/basin --skill basin-perf-investigation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/basin-perf-investigation, .gemini/skills/basin-perf-investigation, .github/skills/basin-perf-investigation and .opencode/skills/basin-perf-investigation in your project.

What does Basin Perf Investigation need to run?

SKILL.md names no scripts, command-line tools or credentials: Basin Perf Investigation is instructions for the agent only.

Does Basin Perf Investigation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Basin Perf Investigation 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 Basin Perf Investigation use?

Basin Perf Investigation is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Basin Perf Investigation use?

About 2.2k tokens (SKILL.md is roughly 8.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3k tokens, read only when the agent opens those files.

What are the alternatives to Basin Perf Investigation?

Skills that share tags, products or a category with Basin Perf Investigation: Sync Upstream (nyaruka/phonenumbers, 1.6k stars), Radiology Table (huang-sir1/radiology-skills, 1.9k stars), ERPClaw ERP Controller (avansaber/erpclaw, 116 stars) and Odoo Agency Fleet Review (erpipe-org/mcp-odoo, 421 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Basin Perf Investigation?

jolars (a GitHub user) maintains it in jolars/basin, which has 124 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 10, 2026.

Source: jolars/basin on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.