plugins/lisa-agy/skills/lisa-parity-code-simplifier/SKILL.md
Lisa-native, behavior-preserving simplification of recently-changed code. Removes duplication and dead code, reuses existing utilities, and improves readability without altering behavior — quality only, never a bug hunt. Vendor-neutral cross-agent equivalent of the upstream code-simplifier agent, runnable on Codex, agy, Copilot, Cursor, and Claude.
npx skillsauth add codyswanngt/lisa lisa-parity-code-simplifierInstall 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.
Make the recently-changed code simpler and easier to maintain without changing what it does. This is a quality pass: deduplication, reuse, readability, and dead-code removal. It is explicitly not a bug hunt — if you spot a likely defect, note it for a reviewer (or parity-code-review) and leave the behavior intact.
Drift tracking. Pinned to
code-simplifier@[email protected].scripts/plugin-parity-drift.mjscompares this pin against the upstream version in the plugin cache and flags staleness. This is a Lisa-native reimplementation written from scratch — do not port or copy upstream plugin code.
Default to the current diff, not the whole repository. Establish scope first:
git merge-base HEAD origin/main 2>/dev/null && \
git diff --stat "$(git merge-base HEAD origin/main)"...HEAD
git diff HEAD --stat
git status --short
Simplify the files that changed and the immediate code they touch. Do not embark on a repo-wide refactor unless explicitly asked.
Every edit must be behavior-preserving. Before changing anything, understand the current contract — inputs, outputs, side effects, error paths, public signatures. After changing it, the observable behavior must be identical. When in doubt, don't — leave a note instead of risking a semantic change.
Grep/Glob) before introducing new code. If the project already has a helper for what the change hand-rolls, use it.map/filter/reduce) over mutable accumulation where it's clearer; remove redundant intermediate state.This repo enforces specific patterns — honor them so your simplification doesn't trip the linter or hooks:
let and in-place mutation; prefer const and pure transformations.const definitions; inline validation as if guard clauses (exempt from enforce-statement-order).-- description.index.ts, update the barrel in the same change so lint/typecheck stays green.plugins/lisa, plugins/lisa-*); the source of truth is plugins/src/.Edit/Write, one coherent change at a time.bun run test
bun run typecheck 2>/dev/null || true
bun run lint 2>/dev/null || true
If any check fails, fix or revert the offending edit before continuing. Never leave the tree worse than you found it.Summarize what you changed and why, grouped by file with file:line anchors:
development
Prepare a machine — a fresh laptop or a throwaway container — to run coding agents, before any repository exists. Detects which of Lisa's supported agents (Claude Code, Codex, Cursor, OpenCode, Antigravity, Copilot) are already installed, asks which credential manager the machine uses (Bitwarden, 1Password, Doppler, Vault, AWS, or none), and installs only what is missing, each by its vendor's own preferred method. Idempotent, headless by default, and emits a Dockerfile for a spin-up/spin-down environment. Run it on a new machine, in a container, or before cloning anything.
tools
Provision and verify a remote execution environment for a host project — Codex Cloud today, other remote surfaces as they are added. Generates a repository-owned setup script that installs the declared toolchain, materializes secrets through lisa-secrets-access, and runs the project's own hook. Provisions by API where one exists, by driving the vendor console where one does not, and by emitting exact config otherwise — then proves the result with the same read-back regardless of which tier did the work. Use before dispatching any work with executionEnv.
tools
Bring a developer's machine in line with the toolchain the project declares. Reports every tool in remoteEnv.tools that is missing, outdated, or unpinned for this platform, and installs the missing ones into ~/.local/bin from the same pinned, checksummed entries the remote surfaces use — but only when asked. Same manifest, same pins, same installers as lisa-setup-remote-env; what differs is consent and that the pin is a floor rather than an equality. Run it on a fresh checkout, after a manifest change, or when a tool fails at the moment of use.
tools
Route one unit of work to a remote execution surface. Reads the executionEnv parameter (local by default, codex-cloud or claude-web today), verifies the environment is provisioned and bound to this repository, submits a thin skill invocation, records the task identifier to .lisa/remote-dispatch.json, and exits without polling. Routing only — the remote runs the identical skill from the identical repository. Composable and inline: other skills invoke it via the Skill tool rather than users calling it directly.