用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CodySwannGT/lisa --skill lisa-review-local命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | lisa-review-local |
| description | performing a code review on… |
| disable-model-invocation | false |
Provide a code review for the local changes on the current branch compared to the main branch.
Apply the convergent-review rule throughout this skill: reviewers bias toward
merge, block only concrete correctness/security/data-loss/contract failures, and
must label every finding with severity, blocking status, failure scenario,
evidence, and fix. Lint-owned style, formatting, taste, and speculative
maintainability feedback are non-blocking unless a repository rule or work item
explicitly makes them release criteria. A blocking finding without a concrete
failure scenario is malformed and must be filtered out.
One deterministic gate runs ahead of the judgement-based review and is exempt from the confidence filtering below, because it is decided by a script rather than by an agent's opinion.
Design-source gate (design-source-of-truth rule). Run it against the
branch diff before step 1:
node "${CLAUDE_PLUGIN_ROOT:-.}/scripts/design-source-gate.mjs" --base=main --head=HEAD
Exit 0 = PASS, exit 1 = FAIL. A FAIL is a blocking review finding and is
reported verbatim at the top of the review — it is never scored, never filtered
by confidence, and never demoted to a nitpick. It qualifies under
convergent-review because it names a concrete failure scenario: the design
source silently diverges from the shipped product and nobody can tell which one
is authoritative. The gate fails closed, so an unresolvable diff or an unreadable
file is a FAIL too. Each violation is fixed one of two ways, sync-back first:
reflect the surface in Figma and cite the node with DESIGN-SOURCE: <figma-url>,
or — only when the surface genuinely does not belong in the design source — mark
it DESIGN-SOURCE: none — not in Figma. Host design-system rules
(figma-design-system, design-system, use-the-design-library, or the
project's equivalent) remain authoritative about what to build; this gate only
asks whether the source is declared. If the gate script is not present (the
project predates the plugin version that ships it), say so explicitly in the
review — a silent skip is not one of the exits.
Design-value binding (design-value-binding rule). A separate, orthogonal
question about the same surfaces: not is the source declared but are the
values bound. In an axis the project publishes design variables for, a literal
is a blocking finding — it is a copied number that will drift when the
system moves. In an axis with no variable collection, the identical literal is
correct and must not be flagged; measuring is the legitimate source there, and
the derived values belong on the work item. Aesthetic disagreement is never a
finding under this rule. Cite the rule; do not restate its conditions here.
To do this, follow these steps precisely:
git branch --show-current to get the current branch namegit log main..HEAD --oneline to see commits on this branchgit diff main...HEAD --stat to see changed filesgit log main..HEAD --format="%s%n%b" to get commit messagesgit diff main...HEAD to get the full diffgit diff main...HEAD), then do a shallow scan for obvious bugs. Avoid reading extra context beyond the changes, focusing just on the changes themselves. Focus on large bugs, and avoid small issues and nitpicks. Ignore likely false positives.
c. Agent #3: Read the git blame and history of the code modified, to identify any bugs in light of that historical context
d. Agent #4: Read previous pull requests that touched these files, and check for any comments on those pull requests that may also apply to the current changes.
e. Agent #5: Read code comments in the modified files, and make sure the changes comply with any guidance in the comments.
Each agent must apply the severity bar from convergent-review and return only findings that include a concrete failure scenario and evidence. Non-blocking observations may be summarized separately, but must not be presented as required changes.Examples of false positives, for steps 4 and 5:
Notes:
gh commands for remote PRs)<branch-name>Reviewed X commits with changes to Y files.
Found 3 issues:
(CLAUDE.md says "<...>")
path/to/file.ts:L10-L15(some/other/CLAUDE.md says "<...>")
path/to/other-file.ts:L25-L30(bug due to )
path/to/another-file.ts:L5-L8<branch-name>Reviewed X commits with changes to Y files.
No issues found. Checked for bugs and CLAUDE.md compliance.
convergent-review blocker classes. Keep it only as non-blocking context if it is useful.