skills/improve/SKILL.md
Use after completing a task, before claiming done, before handoff, or when asked "what are some improvements?" Surfaces concrete suggestions grounded in session observations.
npx skillsauth add awfixers-stuff/opencode-config improveInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Structured improvement pass grounded in what was observed during this session.
Analyze across these dimensions. Skip any dimension with nothing grounded to say.
Error handling gaps, unhandled edge cases, type safety issues, race conditions, missing validation at system boundaries.
Unnecessary indirection, dead code, naming that obscures intent, over-engineered abstractions, complexity that doesn't earn its keep. Reference the simplify skill for implementation.
Auth boundary gaps, input validation holes, secret handling issues, OWASP concerns observed in touched code.
Untested code paths observed during the session, missing test layers (unit/integration/e2e), fixture realism gaps, assertions that don't verify meaningful behavior.
Bottlenecks observed during the session (slow queries, N+1 patterns, unnecessary recomputation). Only flag what was actually observed, not hypothetical.
API ergonomics issues, missing documentation for non-obvious behavior, CLI friction, configuration that should be extracted.
Gather context: Review what happened this session — files changed, commands run, errors encountered, tests written, patterns established.
Analyze each dimension: For each, check whether session observations surface anything concrete. Skip dimensions with nothing to say.
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:
effort: trivial (< 5 min) | small (< 30 min) | medium (hours)gate: which delivery gate this strengthens: TDD | DEV | E2E | REVIEW | CISort by impact (highest first), not by dimension.
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.
When running inside a ralph loop (.rl/state.json exists):
.rl/rl donetrivial improvements inline — just fix themsmall improvements if they're within the current milestone scopemedium improvements: .rl/rl log decision "IMP-N deferred: [reason]"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.
## 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
development
Use when starting dev servers, watchers, tilt, or any process expected to outlive the conversation. Provides zmx session management patterns for long-lived processes.
development
Zig testing skill for writing and running tests. Use when using zig build test, writing comptime tests, using test filters, working with test allocators to detect leaks, or using Zig's built-in fuzz testing (0.14+). Activates on queries about Zig tests, zig test, zig build test, comptime testing, test allocators, Zig fuzz testing, or detecting memory leaks in Zig tests.
development
Zig debugging skill. Use when debugging Zig programs with GDB or LLDB, interpreting Zig runtime panics, using std.debug.print for tracing, configuring debug builds, or debugging Zig programs in VS Code. Activates on queries about debugging Zig, Zig panics, zig gdb, zig lldb, std.debug.print, Zig stack traces, or Zig error return traces.
tools
Zig cross-compilation skill. Use when cross-compiling Zig programs to different targets, using Zig's built-in cross-compilation for embedded, WASM, Windows, ARM, or using zig cc to cross-compile C code without a system cross-toolchain. Activates on queries about Zig cross-compilation, zig target triples, zig cc cross-compile, Zig embedded targets, or Zig WASM.