improve

A command that runs one focused pass of a software project's improvement process: choose the most valuable backlog item, implement it, check it end to end, and commit the change.

In plain words
What is it for?
Use it to select and complete one maintenance task at a time, such as improving error handling, adding tests, checking format compatibility, or fixing frontend states.
Why use it?
It keeps improvement work small and trackable, so unrelated fixes are not bundled together and unfinished changes are less likely to pile up.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/nel-neru/libraium/improve
Clone the repo
git clone --depth 1 https://github.com/nel-neru/LibrAIum

Made for: Claude Code.

Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,132 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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 $0.00026 $0.01132
Opus 5 $0.00013 $0.00566
Sonnet 5 $0.00005 $0.00226
Haiku 4.5 $0.00003 $0.00113

Measured yesterday against content hash 502a4afa2dab, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

improve scanned grade A with 0 findings 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 yesterday.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/improve.md · 78 lines

How it starts

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

Run exactly one iteration of LibrAIum's improvement loop. One iteration = one focused improvement, verified and committed. Do not batch multiple unrelated improvements into a single iteration.

1. Load state

Read .claude/improvement-backlog.md.

If it does not exist (first iteration): seed it by auditing the repo along these dimensions, then pick the top item and continue. Write concrete, single-commit-sized items — not vague themes.

  • Robustness (Rust)unwrap()/expect()/panic paths in src-tauri/src/, unhandled I/O errors, edge cases in store/search/github/gitops (empty data dir, malformed entry mid-library, concurrent refresh, git repo in weird states)
  • Robustness (MCP server) — input validation gaps, unhelpful error messages, behavior on corrupt/missing data files
  • Test coverage — untested branches in Rust modules; the MCP server has only the smoke test — targeted unit tests for lib/store.js / lib/suggest.js
  • Dual-format parity — adversarial edge cases (unicode slugs, CRLF, empty body, frontmatter-like body content, huge tags) → new fixtures in tests/fixtures/format/ proving both sides agree
  • Frontend (Svelte 5) — empty/loading/error states, race conditions on rapid navigation, keyboard access, feedback on slow network ops
  • DX / docs — README accuracy, script failure messages, CLAUDE.md drift
  • CI — speed, cache hit rate, flakiness

Backlog format:

# Improvement Backlog
## Pending  (ordered: highest value first)
- [ ] P1 <one-line item> — <why it matters, 1 sentence>
## Done
- [x] <item> — <commit hash> (<date>)
## Rejected
- <item> — <why not worth doing>

Priority order: P1 correctness & data-safety bugs → P2 missing tests for existing behavior → P3 error handling & user-facing failure messages → P4 dual-format hardening (new fixtures) → P5 docs/DX/CI polish.

2. Pick ONE item

Take the highest-priority pending item that fits in a single focused session. If the top item is too big, split it into smaller backlog entries and take the first piece. State clearly which item you picked and why.

Read the full file on GitHub · 78 lines

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. yesterday First seen · 78 lines · 26 tokens per session scan A 502a4afa2dab

Subscribe to this mod's changes

improve is a command published in the GitHub repository nel-neru/LibrAIum (0 stars, last pushed 5d ago), licensed MIT. It adds 26 tokens to every session and 1,132 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.