/loci:trendsfrom LOCI
Per-function measurement history on the current branch: timing, energy, stack, and memory trends over time from LOCI analysis. Use when the user says "show trends", "optimization progress", "what changed on this branch" (in LOCI data), "how are my functions doing", or asks about performance trajectory.
Ships in LOCI. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill calls the bare loci command (on PATH via the session bootstrap)
and resolves <project-context> with loci project — see Step 0. Every
loci call prints one JSON envelope ({ok,data}); let it print and read ok.
Run loci project, passing --project-root if the user named one, and read the
file its context_file names — that is <project-context>. Extract git_branch
for the report header. No file there means this project has no recorded history:
say so and stop — offering /loci:init <project_root> when the answer was
not_initialized. not_resolved: the user names it.
Run via Bash:
loci trends --context-file "<project-context>"
If data.count is 0 (no measurements), respond with:
Nothing recorded on this branch yet.
Nothing more. Do not suggest running other skills or explain how to generate measurements.
If step 1 returned measurements (data.count > 0), render data.report (the
rendered trend table) with a heading that includes the branch name from step 0,
followed by a one-line summary derived from the trend data:
## LOCI Trends: <branch_name>
**<N> functions tracked · <M> measurements · <K> improvements · <J> regressions · <B> baselines**
<data.report from step 1>
Computing the summary line:
loci trends already prints in data.report — safe to copy verbatim).Direction = improved.Direction = regressed.Direction = baseline.The table shows only columns that have data — timing from post-edit auto-runs, stack from /loci:stack-depth invocations, memory from /loci:memory-report invocations. No empty columns, no missing-data notices. Series are segmented by clock: rows measured at different clocks are never diffed into one delta, so a clock change is neither an improvement nor a regression.
If the user asks about a specific function, run:
loci trends --context-file "<project-context>" --function <func_name>
Render data.report (the chronological output) under a heading:
### <func_name>
<data.report from above>
One line, at the end of the report rather than before a footer: The voice remark. This skill's own slant is that the remark reinforces the value of measuring — why tracking matters, and a nudge to keep going.
With improvements or regressions, ground it in a specific number:
When there are only baselines (single measurements), highlight what comes next:
No footer separator lines after the remark.
Do NOT record stats for this skill — trends is a read-only view.
What SKILL.md sets; muted values are Claude Code's defaults
Also /loci:trends, or whether an optimization sprint is working.
Other plugins' skills for the same job
npx claudepluginhub auroralabs-loci/loci-claude --plugin loci12 skills in this plugin
/bug-reportForensic diagnostic report for LOCI — collects environment state, runs health checks, and writes a timestamped report when analysis fails or doesn't trigger. Use when the user says "bug report", "LOCI isn't working", "something is broken", "debug LOCI", or wants any LOCI failure investigated.
/contractAuthor and inspect this repository's Contract Envelope (.loci/contract.yaml) — the stack, timing, energy, memory and structural bounds that let LOCI judge a measurement rather than merely report it. Use when the user states a limit as a requirement: "set a budget", "add a bound", "cap X at N", "X must not exceed N", "fail the build if timing regresses"; also "what are my limits", "show the contract".
/control-flowAnnotated control-flow graphs for compiled C/C++/Rust/Go and Python (Cython): per-function basic blocks, loops with derived trip counts, recursion and irreducible cycles, call sites, in text optimised for LLM analysis. Renders the graph and judges the two structural signals it determines, recursion cycles and indirect calls, and the contract's text-only rules on the functions it draws. Use when the user asks what the control flow of compiled code looks like: call dependencies, function impact, which branches and loops exist, where the hot path could run, or what a change did to the shape of a function.
/exec-traceAnalyze function execution timing and energy from compiled assembly. Use for the timing or energy of a specific function ("how long does X take", "exec trace"); a limit stated in the request is judged here, and a standing bound is authored by /loci:contract.
/helpQuick-reference guide to LOCI — shows available skills, environment status, and troubleshooting for initialization and sign-in issues. Use when the user asks for help with LOCI, what LOCI can do, how to use it, which LOCI commands exist, or seems confused about LOCI setup or capabilities.
/initRecord how this project builds — one machine-local recipe (`.loci/build.yaml`) naming the target ISA, the compiler, the build system and the artifact — and the clock its board runs at, so every LOCI measurement compiles and times the way the project itself does. Use on /loci:init, "initialize LOCI", "set up this project for LOCI", "switch the LOCI target" or "LOCI says this project is not initialized", or a LOCI analysis failed with a recipe-related `error.code` on a project that already has a recipe.