用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CodySwannGT/lisa --skill lisa-parity-code-simplifier命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
This skill should be used for any non-trivial request — features, bugs, stories, epics, spikes, or multi-step tasks. It accepts a ticket URL (Jira, Linear, GitHub), a file path containing a spec, or a plain-text prompt. It assembles an agent team, breaks the work into structured tasks, and manages the full lifecycle from research through implementation, code review, deploy, and empirical verification.
any non-trivial request —…
This skill should be used for any non-trivial request — features, bugs, stories, epics, spikes, or multi-step tasks. It accepts a ticket URL (Jira, Linear, GitHub), a file path containing a spec, or a plain-text prompt. It assembles an agent team, breaks the work into structured tasks, and manages the full lifecycle from research through implementation, code review, deploy, and empirical verification.
基于 SOC 职业分类
正在显示 SKILL.md
| name | lisa-parity-code-simplifier |
| description | Lisa-native, behavior-preserving… |
| allowed-tools | ["Read","Bash","Grep","Glob","Edit","Write"] |
| synced-from | code-simplifier@claude-plugins-official@1.0.0 |
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@claude-plugins-official@1.0.0.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: