Improve

From alleneubank/claude-code · View interactive version

Improve is an AI agent skill from the GitHub repository alleneubank/claude-code. Use after completing a task, before claiming done, before handoff, or when asked "what are some improvements?" Surfaces concrete suggestions grounded in session observations.

How to use this skill

Skill file

Improve

Structured improvement pass grounded in what was observed during this session.

Principles (Always Active)

When to Use

When Not to Use

Dimensions

Analyze across these dimensions. Skip any dimension with nothing grounded to say.

Correctness

Error handling gaps, unhandled edge cases, type safety issues, race conditions, missing validation at system boundaries.

Simplicity

Unnecessary indirection, dead code, naming that obscures intent, over-engineered abstractions, complexity that doesn't earn its keep. Reference the simplify skill for implementation.

Security

Auth boundary gaps, input validation holes, secret handling issues, OWASP concerns observed in touched code.

Test Coverage

Untested code paths observed during the session, missing test layers (unit/integration/e2e), fixture realism gaps, assertions that don't verify meaningful behavior.

Performance

Bottlenecks observed during the session (slow queries, N+1 patterns, unnecessary recomputation). Only flag what was actually observed, not hypothetical.

Developer Experience

API ergonomics issues, missing documentation for non-obvious behavior, CLI friction, configuration that should be extracted.

Workflow

  1. Gather context: Review what happened this session — files changed, commands run, errors encountered, tests written, patterns established.
  1. Analyze each dimension: For each, check whether session observations surface anything concrete. Skip dimensions with nothing to say.
  1. Structure each suggestion:
[IMP-N] effort/gate: summary
  Observation: what was seen (file:line, error message, test gap, etc.)
  Suggestion: concrete change
  Grounded: yes/no

Where:

  1. Sort by impact (highest first), not by dimension.
  1. Present as actionable list. If in a ralph loop, address trivial/small improvements inline before claiming done. Log medium improvements as decisions for the user to prioritize.

Integration with Ralph Loops

When running inside a ralph loop (.rl/state.json exists):

Integration with Handoffs

When generating a handoff, include unaddressed improvements in the <next_steps> section. Use the same [IMP-N] format so the receiving agent can reference them.

Output Format

## Improvements

N suggestions (X grounded, Y speculative)

[IMP-1] trivial/DEV: Extract magic number to config constant
  Observation: `src/server.ts:42` uses hardcoded port 3000, but other services read from env
  Suggestion: Read from `PORT` env var with 3000 as default
  Grounded: yes

[IMP-2] small/TDD: Add boundary test for empty input
  Observation: `processItems([])` path untested — saw it handle non-empty arrays only in test suite
  Suggestion: Add test case for empty array input in `process-items.test.ts`
  Grounded: yes

[IMP-3] medium/E2E: Add timeout handling for external API calls
  Observation: Catalog search took 1.2s avg in profiling — no timeout configured
  Suggestion: Add configurable timeout with bounded retry
  Grounded: yes

Red Flags

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.