improve

improve is a command for Claude Code from monoes/monomind. It costs 26 tokens per session (3,702 once invoked), scanned A, original, Apache-2.0.

A command that analyses a component or idea and writes suggested improvement tasks to project documentation or a task board. A task board is a shared list of work to do.

In plain words
What is it for?
Investigating error handling, performance, authentication flows, or other components and recording proposed improvements.
Why use it?
It turns a general concern about a codebase or design into recorded, actionable work.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions subagents.

Good fit Investigating error handling, performance, authentication flows, or other components and recording proposed improvements.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/monoes/monomind/improve
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.

Clone the repo
git clone --depth 1 https://github.com/monoes/monomind

Made for: Claude Code.

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 improve

README.md
[![agentmods](https://agentmods.dev/badge/commands/monoes/monomind/improve/github.svg)](https://agentmods.dev/commands/monoes/monomind/improve)
Your own site
<a href="https://agentmods.dev/commands/monoes/monomind/improve"><img src="https://agentmods.dev/badge/commands/monoes/monomind/improve/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for improve

Your own site · 80×15
<a href="https://agentmods.dev/commands/monoes/monomind/improve"><img src="https://agentmods.dev/badge/commands/monoes/monomind/improve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 3,702 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00026 $0.03702
Opus 5.5 $0.00010 $0.01481
Sonnet 5.5 $0.00005 $0.00740
Haiku 4.5 $0.00003 $0.00370

Measured yesterday against content hash bb01226dab96, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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/mastermind/improve.md · 345 lines

How it starts

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

First — extract repeat flags: Follow the REPEAT PREAMBLE from mastermind-repeat/SKILL.md. Extracts --repeat, --tillend, --maxruns, --wait, --rep, --loop from $ARGUMENTS before all other parsing. If is_continuation = true, skip the empty-arguments check below.

If $ARGUMENTS is empty, output this and STOP:

Usage: /mastermind:improve <component or concept>

Examples:

  • /mastermind:improve the authentication flow
  • /mastermind:improve error handling across the codebase
  • /mastermind:improve CLI startup performance
  • /mastermind:improve the MCP server architecture

By default, analysis is saved to docs/improvements/YYYY-MM-DD-<slug>.md. Add --monotask to write to a monotask board instead.

Do NOT proceed further if no arguments were provided.

Extract --monotask flag: If present, set USE_MONOTASK=true and remove from $ARGUMENTS. Default: USE_MONOTASK=false.


Step 0: Check monotask CLI (skip unless --monotask was passed)

Only run this step if USE_MONOTASK=true.

command -v monotask || (command -v cargo && cargo install monotask)

If neither exists, tell user to install Rust + monotask and STOP.


Step 1: Gather Project Context

Collect ALL of the following in parallel (skip any that error):

  1. Repo name: Run git remote get-url origin, extract the last path segment, strip .git. Fallback: basename of the current working directory. Store as REPO_NAME.

  2. README: Read README.md (first 200 lines). Skip if missing.

  3. Package manifest: Read whichever exists first: package.json, Cargo.toml, pyproject.toml, go.mod. Extract name, description, and keywords/tags.

  4. Knowledge graph: Call mcp__monomind__monograph_suggest with the user's prompt ($ARGUMENTS). Skip if it errors or returns empty.

  5. Memory search: Call mcp__monomind__memory_pattern-search with the user's prompt ($ARGUMENTS). Use the top 5 results.

Bundle all gathered information into a single PROJECT_CONTEXT string for downstream agents.

Read the full file on GitHub · 345 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 · 345 lines · 26 tokens per session scan A bb01226dab96

Subscribe to this mod's changes

improve is a command published in the GitHub repository monoes/monomind (23 stars, last pushed yesterday), licensed Apache-2.0. It adds 26 tokens to every session and 3,702 once invoked, about $0.0001 per session on Opus 5.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-10-26.