@codyswann/lisa 4.103.6 → 4.103.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all/merge/.claude/settings.json +1 -11
- package/cdk/merge/.claude/settings.json +0 -3
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +23 -57
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/migrations/index.d.ts +1 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +3 -0
- package/dist/migrations/index.js.map +1 -1
- package/dist/migrations/prune-retired-third-party-plugins.d.ts +67 -0
- package/dist/migrations/prune-retired-third-party-plugins.d.ts.map +1 -0
- package/dist/migrations/prune-retired-third-party-plugins.js +120 -0
- package/dist/migrations/prune-retired-third-party-plugins.js.map +1 -0
- package/expo/merge/.claude/settings.json +1 -11
- package/harper-fabric/merge/.claude/settings.json +0 -3
- package/nestjs/merge/.claude/settings.json +0 -3
- package/package.json +4 -4
- package/phaser/merge/.claude/settings.json +0 -3
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-parity-code-review/SKILL.md +3 -6
- package/plugins/lisa/.codex-plugin/skills/lisa-parity-coderabbit/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/SKILL.md +8 -1
- package/plugins/lisa/rules/eager/coding-philosophy.md +1 -0
- package/plugins/lisa/rules/eager/tool-access-gate.md +6 -5
- package/plugins/lisa/rules/eager/verification.md +1 -1
- package/plugins/lisa/rules/reference/claim-evidence-mapping.md +3 -2
- package/plugins/lisa/rules/reference/tool-access-gate.md +17 -7
- package/plugins/lisa/rules/reference/verification.md +36 -1
- package/plugins/lisa/skills/lisa-parity-code-review/SKILL.md +3 -6
- package/plugins/lisa/skills/lisa-parity-coderabbit/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-tracker-evidence/SKILL.md +8 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-parity-code-review/SKILL.md +3 -6
- package/plugins/lisa-agy/skills/lisa-parity-coderabbit/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-tracker-evidence/SKILL.md +8 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/rules/eager/coding-philosophy.md +1 -0
- package/plugins/lisa-copilot/rules/eager/tool-access-gate.md +6 -5
- package/plugins/lisa-copilot/rules/eager/verification.md +1 -1
- package/plugins/lisa-copilot/rules/reference/claim-evidence-mapping.md +3 -2
- package/plugins/lisa-copilot/rules/reference/tool-access-gate.md +17 -7
- package/plugins/lisa-copilot/rules/reference/verification.md +36 -1
- package/plugins/lisa-copilot/skills/lisa-parity-code-review/SKILL.md +3 -6
- package/plugins/lisa-copilot/skills/lisa-parity-coderabbit/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-tracker-evidence/SKILL.md +8 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/rules/claim-evidence-mapping-reference.mdc +3 -2
- package/plugins/lisa-cursor/rules/coding-philosophy.mdc +1 -0
- package/plugins/lisa-cursor/rules/tool-access-gate-reference.mdc +17 -7
- package/plugins/lisa-cursor/rules/tool-access-gate.mdc +6 -5
- package/plugins/lisa-cursor/rules/verification-reference.mdc +36 -1
- package/plugins/lisa-cursor/rules/verification.mdc +1 -1
- package/plugins/lisa-cursor/skills/lisa-parity-code-review/SKILL.md +3 -6
- package/plugins/lisa-cursor/skills/lisa-parity-coderabbit/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-tracker-evidence/SKILL.md +8 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/rules/eager/coding-philosophy.md +1 -0
- package/plugins/lisa-devin/rules/eager/tool-access-gate.md +6 -5
- package/plugins/lisa-devin/rules/eager/verification.md +1 -1
- package/plugins/lisa-devin/rules/reference/claim-evidence-mapping.md +3 -2
- package/plugins/lisa-devin/rules/reference/tool-access-gate.md +17 -7
- package/plugins/lisa-devin/rules/reference/verification.md +36 -1
- package/plugins/lisa-devin/skills/lisa-parity-code-review/SKILL.md +3 -6
- package/plugins/lisa-devin/skills/lisa-parity-coderabbit/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-tracker-evidence/SKILL.md +8 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/rules/eager/coding-philosophy.md +1 -0
- package/plugins/src/base/rules/eager/tool-access-gate.md +6 -5
- package/plugins/src/base/rules/eager/verification.md +1 -1
- package/plugins/src/base/rules/reference/claim-evidence-mapping.md +3 -2
- package/plugins/src/base/rules/reference/tool-access-gate.md +17 -7
- package/plugins/src/base/rules/reference/verification.md +36 -1
- package/plugins/src/base/skills/lisa-parity-code-review/SKILL.md +3 -6
- package/plugins/src/base/skills/lisa-parity-coderabbit/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-tracker-evidence/SKILL.md +8 -1
- package/rails/merge/.claude/settings.json +1 -11
- package/scripts/install-claude-plugins.sh +19 -4
- package/typescript/merge/.claude/settings.json +0 -3
- package/ui/index.html +1 -9
- package/plugins/lisa/.codex-plugin/skills/lisa-parity-code-simplifier/SKILL.md +0 -78
- package/plugins/lisa/.codex-plugin/skills/lisa-parity-code-simplifier/agents/openai.yaml +0 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-parity-skill-creator/SKILL.md +0 -157
- package/plugins/lisa/.codex-plugin/skills/lisa-parity-skill-creator/agents/openai.yaml +0 -4
- package/plugins/lisa/commands/parity-code-simplifier.md +0 -6
- package/plugins/lisa/commands/parity-skill-creator.md +0 -6
- package/plugins/lisa/skills/lisa-parity-code-simplifier/SKILL.md +0 -76
- package/plugins/lisa/skills/lisa-parity-code-simplifier/agents/openai.yaml +0 -4
- package/plugins/lisa/skills/lisa-parity-skill-creator/SKILL.md +0 -155
- package/plugins/lisa/skills/lisa-parity-skill-creator/agents/openai.yaml +0 -4
- package/plugins/lisa-agy/commands/lisa/parity-code-simplifier.md +0 -6
- package/plugins/lisa-agy/commands/lisa/parity-skill-creator.md +0 -6
- package/plugins/lisa-agy/skills/lisa-parity-code-simplifier/SKILL.md +0 -76
- package/plugins/lisa-agy/skills/lisa-parity-skill-creator/SKILL.md +0 -155
- package/plugins/lisa-copilot/commands/lisa/parity-code-simplifier.md +0 -6
- package/plugins/lisa-copilot/commands/lisa/parity-skill-creator.md +0 -6
- package/plugins/lisa-copilot/skills/lisa-parity-code-simplifier/SKILL.md +0 -76
- package/plugins/lisa-copilot/skills/lisa-parity-skill-creator/SKILL.md +0 -155
- package/plugins/lisa-cursor/commands/lisa/parity-code-simplifier.md +0 -6
- package/plugins/lisa-cursor/commands/lisa/parity-skill-creator.md +0 -6
- package/plugins/lisa-cursor/skills/lisa-parity-code-simplifier/SKILL.md +0 -76
- package/plugins/lisa-cursor/skills/lisa-parity-skill-creator/SKILL.md +0 -155
- package/plugins/lisa-devin/skills/lisa-parity-code-simplifier/SKILL.md +0 -76
- package/plugins/lisa-devin/skills/lisa-parity-skill-creator/SKILL.md +0 -155
- package/plugins/src/base/commands/parity-code-simplifier.md +0 -6
- package/plugins/src/base/commands/parity-skill-creator.md +0 -6
- package/plugins/src/base/skills/lisa-parity-code-simplifier/SKILL.md +0 -76
- package/plugins/src/base/skills/lisa-parity-skill-creator/SKILL.md +0 -155
|
@@ -2,16 +2,13 @@
|
|
|
2
2
|
name: lisa-parity-code-review
|
|
3
3
|
description: "Lisa-native code review of the current git diff. Walks every changed hunk and reports correctness bugs, security issues, and obvious defects as severity-ranked findings with file:line references. Vendor-neutral — the cross-agent equivalent of the upstream code-review command, runnable on Codex, agy, Copilot, Cursor, and Claude."
|
|
4
4
|
allowed-tools: ["Read", "Bash", "Grep", "Glob"]
|
|
5
|
-
synced-from: code-review@claude-plugins-official@1.0.1
|
|
6
5
|
---
|
|
7
6
|
|
|
8
7
|
# Parity Code Review
|
|
9
8
|
|
|
10
|
-
Review the code that is *about to ship* — the current uncommitted/branch diff — for defects a reviewer would block on. This is a focused **defect hunt**: correctness, security, and obvious mistakes. It is not a style audit and not a refactor pass
|
|
9
|
+
Review the code that is *about to ship* — the current uncommitted/branch diff — for defects a reviewer would block on. This is a focused **defect hunt**: correctness, security, and obvious mistakes. It is not a style audit and not a refactor pass; simplification is covered by the coding-philosophy rule.
|
|
11
10
|
|
|
12
|
-
> **
|
|
13
|
-
>
|
|
14
|
-
> **Reviewed against 1.0.1, partly diverged.** Adopted from upstream 1.0.1: findings print to the terminal only; every candidate finding is validated before it is reported (Step 4); and a high-signal bar governs what is blocking (relaxed to admit an input-dependent defect once its triggering input is shown to be reachable; see Step 4). Deliberately not reimplemented: upstream's `--comment` mode, which posts inline PR comments through `mcp__github_inline_comment__create_inline_comment` (use `lisa-pull-request-review` to act on a pull request), and its four-reviewer subagent pipeline. This skill is one reviewer over the local diff, because the agents it serves (Codex, agy, Copilot, Cursor, Devin) have no common subagent or inline-comment surface. The `synced-from` scalar cannot record that split, so this note does.
|
|
11
|
+
> **Lisa-owned.** This began as a reimplementation of the upstream `code-review@claude-plugins-official` command and was last reviewed against its 1.0.1. Lisa stopped enabling that plugin (CodySwannGT/lisa#4799) because Claude Code now ships a built-in `/code-review`, so this skill is no longer pinned to or drift-tracked against upstream. It stays as the vendor-neutral review for agents without a built-in equivalent. It is one reviewer over the local diff, because the agents it serves (Codex, agy, Copilot, Cursor, Devin) have no common subagent or inline-comment surface; use `lisa-pull-request-review` to act on a pull request.
|
|
15
12
|
|
|
16
13
|
## Step 1: Establish the diff
|
|
17
14
|
|
|
@@ -106,4 +103,4 @@ Example:
|
|
|
106
103
|
- **Ground every finding in the diff.** No speculative findings, no generic best-practice lectures unrelated to the change.
|
|
107
104
|
- **Be honest about coverage.** If you deprioritized files or couldn't fully trace a path, say so.
|
|
108
105
|
- **If the diff is clean, say so clearly** — "No blocking issues found across N changed files" — do not manufacture problems.
|
|
109
|
-
- This is review-only: report findings, do **not** edit files. Apply fixes via the normal implementation flow
|
|
106
|
+
- This is review-only: report findings, do **not** edit files. Apply fixes via the normal implementation flow after triage.
|
|
@@ -83,5 +83,5 @@ Call out what's done well. A credible review is balanced, not only critical.
|
|
|
83
83
|
- **Malformed blockers do not block.** If you cannot name a concrete failure scenario and evidence, report it as non-blocking context or omit it.
|
|
84
84
|
- **Concrete fixes only.** "Consider improving error handling" is not a finding; "wrap the `fetch` in try/catch and return a 502 on network error at `api/proxy.ts:31`" is.
|
|
85
85
|
- **No external review service.** Use only local git/tooling and the model — this is an independent review, not a CodeRabbit proxy.
|
|
86
|
-
- **Review-only.** Report findings; do not edit files. Route fixes through the implementation flow
|
|
86
|
+
- **Review-only.** Report findings; do not edit files. Route fixes through the implementation flow or a follow-up.
|
|
87
87
|
- **If the diff is clean, approve it plainly** and say why — do not invent problems to look thorough.
|
|
@@ -33,12 +33,19 @@ omit the plugin rules tree; do not assume a runtime-specific rules directory.
|
|
|
33
33
|
## Rules
|
|
34
34
|
|
|
35
35
|
- The configured GitHub evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`) lives on the implementation repo (the one with the PR), regardless of which tracker hosts the ticket/issue. All vendor skills upload there.
|
|
36
|
+
- **Ignored evidence.** Before dispatching, run `git ls-files --others --ignored --exclude-standard -- "$EVIDENCE_DIR"`. If it exits non-zero, the check itself failed. Stop and report that; never read it as "tracked". An empty result means "tracked" only when the manifest files actually exist in `$EVIDENCE_DIR`. If it prints any file, git ignores that evidence, either the whole directory or a pattern such as `*.png`. That evidence will never reach the PR, so the tracker comment becomes the record of truth. The vendor skills upload only some files (`lisa-github-evidence` takes numbered `.txt` and `*.json`, `lisa-jira-evidence` takes `NN-name.(png|txt|json)`, and `lisa-linear-evidence` takes `evidence/files/`), so this wrapper does the rest itself, **before** dispatching:
|
|
37
|
+
1. Resolve `RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)`. Never hard-code `pr-assets`.
|
|
38
|
+
2. Upload every manifest artifact except `verdict.json`, including `state.json`, images, recordings, transcripts, and logs. Upload the files the vendor skill also uploads too, so that every locator points at a copy this step made. Stage each file as a copy under a ticket-scoped asset name, so one ticket can never overwrite another's file: `pr-<PR_NUMBER>-<ticket>-<file>` for GitHub and Jira, and `<IDENTIFIER>-<file>` for Linear. `<ticket>` is a `[a-z0-9-]` slug: the GitHub issue number, or the lowercased Jira key. Never use `org/repo#N` or a URL, because `/` and `#` are not valid in an asset name. Upload with `gh release upload "$RELEASE" <copies> --clobber`, which is safe because the names are ticket-scoped and lets a re-run succeed. If any upload fails, stop before dispatching.
|
|
39
|
+
3. Rewrite each `verdict.json` `evidence[].locator` to its uploaded URL, set `"evidence_committed": false`, and upload `verdict.json` last the same way. Stop if that upload fails.
|
|
40
|
+
4. In the comment, list each artifact's uploaded URL next to its `sha256` under `## Artifact identity` as a **plain URL**, not a Markdown link. Say plainly that the evidence was uploaded, not committed, and that this comment is the durable record.
|
|
41
|
+
|
|
42
|
+
Never describe ignored evidence as "committed". A digest of a file that was neither committed nor uploaded is a session-local anchor, not something a reviewer can re-check.
|
|
36
43
|
- Never post evidence to a different ticket than the one named — `$ARGUMENTS` is the source of truth.
|
|
37
44
|
- Never invent a verify-specific usage footer. Evidence artifact usage must flow through `lisa-usage-accounting`, preserve the canonical `## Lisa Usage` section, and surface `source: unavailable` explicitly when the runtime cannot provide trustworthy numbers.
|
|
38
45
|
- **Evidence-manifest gate (leaf work units).** Before dispatching to a vendor skill that transitions the ticket, confirm `EVIDENCE_DIR` contains a non-empty artifact **of the declared type** for every typed `[EVIDENCE: <artifact-type>: <name>]` marker declared in the ticket's Validation Journey — a `screenshot` marker needs an actual image, an `http-transcript` marker needs the request + response text, a `perf-trace` marker needs measured numbers; a prose claim satisfies nothing. If any declared marker has no captured artifact, an empty one, or one whose content/extension does not match its declared type, stop and report the offending markers by name instead of posting — a leaf work unit (Bug / Task / Sub-task / Improvement) may not advance to its review/Done state with an unsatisfied manifest (see the "Per-Work-Unit Evidence Contract" in the `verification` rule). Epics / Stories / Spikes, and leaf units without a Validation Journey, are exempt.
|
|
39
46
|
- **Claim↔boundary binding (S14 upgrade).** Satisfying the manifest by *type* is not enough: each `[EVIDENCE: <artifact-type>: <name>]` marker is also cited for a **claim**, and the marker's artifact type must **reach the boundary that claim declares** per the `claim-evidence-mapping` rule's taxonomy. A `browser` claim (user-visible UI behavior) is reached by `screenshot` / `recording` and never by a unit `test-run-log`; an `http-api` claim needs an `http-transcript`; a `deploy-health` claim needs a `deploy-log` and no pre-deploy artifact. On a mismatch, report the offending marker **by name** together with the claim, its boundary, and the **required evidence kinds** for that boundary — e.g. `[EVIDENCE: test-run-log: unit-suite] cited for claim AC-2 [boundary browser] — required evidence kinds: screenshot, recording`. Swapping in a marker of a reaching kind with a real captured artifact satisfies the gate. **Advisory-first:** until `verification.gate.enforceBoundaries` is `true` in `.lisa.config.json` (the same ratchet flag the Stop-hook gate reads, default `false`), a boundary mismatch is reported to the operator but does not block the post; once ratcheted on it refuses the post exactly like a missing or wrong-type artifact. Missing/empty/wrong-type artifacts keep refusing the post regardless of the flag.
|
|
40
47
|
- **The "Not established" section is required.** Before posting, confirm `evidence/comment.md` (and `comment.txt` where the vendor uses it) contains a `## Not established` heading and that the verdict carries `not_established_reviewed: true`. The heading is **never omitted and never blank**: with nothing outstanding it still renders `None outstanding — reviewed`; otherwise it lists, in plain operator language, each thing the verification did not prove — boundaries not exercised, environments not tested, behavior consciously out of scope. A comment with no such heading, a heading with nothing under it, or a verdict whose `not_established_reviewed` flag is absent is **refused**: stop and report the missing Not-established review instead of posting. (The list may be empty; the flag may never be omitted.) Definition and exemplars live in the `claim-evidence-mapping` rule; this generalizes `lisa-improve-harness`'s required, never-empty `Known limits` field.
|
|
41
|
-
- **Artifact identity is required, with values (S14 extension).** Before posting, confirm the comment body carries a `## Artifact identity` heading populated with **values, not placeholders**: the `repository`, the `head_sha` the verification observed, the `environment`, and for each committed artifact its `sha256` digest and `captured_at`. Then check both identity failures. **`artifact_mismatch`** — an evidence entry whose recorded `artifact_head_sha` differs from the verdict's `artifact.head_sha`: refuse the post and report the offending evidence id together with **both SHAs** (the one the artifact was captured at and the one the verdict claims), e.g. `EV-2 captured at 4f1c9ab but artifact.head_sha is 9de0c31`. **`evidence_digest_mismatch`** — recompute the `sha256` of each committed evidence file on read; if the bytes no longer match the recorded digest (or the file is absent), stop and report the evidence id by name. Never summarize either as "verification failed" — name the field, the ids, and both SHAs so a non-engineer can read it at the gate. **Advisory-first:** until `verification.gate.enforceBoundaries` is `true` in `.lisa.config.json`, an identity failure is reported to the operator but does not block the post; once ratcheted on it refuses the post exactly like a missing artifact. Definition: the `claim-evidence-mapping` rule.
|
|
48
|
+
- **Artifact identity is required, with values (S14 extension).** Before posting, confirm the comment body carries a `## Artifact identity` heading populated with **values, not placeholders**: the `repository`, the `head_sha` the verification observed, the `environment`, and for each committed or uploaded artifact its `sha256` digest and `captured_at`. Then check both identity failures. **`artifact_mismatch`** — an evidence entry whose recorded `artifact_head_sha` differs from the verdict's `artifact.head_sha`: refuse the post and report the offending evidence id together with **both SHAs** (the one the artifact was captured at and the one the verdict claims), e.g. `EV-2 captured at 4f1c9ab but artifact.head_sha is 9de0c31`. **`evidence_digest_mismatch`** — recompute the `sha256` of each committed evidence file on read, or of the fetched bytes when its locator is an uploaded URL; if the bytes no longer match the recorded digest (or the file is absent), stop and report the evidence id by name. Never summarize either as "verification failed" — name the field, the ids, and both SHAs so a non-engineer can read it at the gate. **Advisory-first:** until `verification.gate.enforceBoundaries` is `true` in `.lisa.config.json`, an identity failure is reported to the operator but does not block the post; once ratcheted on it refuses the post exactly like a missing artifact. Definition: the `claim-evidence-mapping` rule.
|
|
42
49
|
- **Merge-race reconciliation (at completion, not at post).** The evidence's pinned `head_sha` is reconciled against the merged head using the ancestry + deploy-run definition of "what shipped" that `lisa-drive-pr-to-merge` already owns — cite that skill, never re-implement or restate its checks here. Pre-merge evidence counts for the merge commit only when its head is a parent of the merge, ancestry alone never justifies reporting shipped, and on a mismatch verification re-runs against the merged head before completion is declared.
|
|
43
50
|
- **Evidence references are not manifest entries.** Extract obligations using the exact `[EVIDENCE:` prefix (and the legacy local `[SCREENSHOT:` form). Exclude both the canonical `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` and the Lisa 2.223.0 legacy alias `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` from artifact lookup, missing-artifact reporting, and duplicate-name checks: either belongs to another work item and cannot satisfy this item's S14 gate. A runtime-changing leaf with references but no local claiming marker must be rejected before dispatch. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`): decode one Markdown escape layer outside code before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so escaped and unescaped markers bind the same manifest.
|
|
44
51
|
|
|
@@ -5,13 +5,9 @@
|
|
|
5
5
|
},
|
|
6
6
|
"enabledPlugins": {
|
|
7
7
|
"ruby-lsp@claude-plugins-official": true,
|
|
8
|
-
"safety-net@cc-marketplace": false,
|
|
9
|
-
"code-simplifier@claude-plugins-official": true,
|
|
10
|
-
"code-review@claude-plugins-official": true,
|
|
11
8
|
"coderabbit@claude-plugins-official": true,
|
|
12
9
|
"sentry@claude-plugins-official": false,
|
|
13
|
-
"lisa-rails@lisa": true
|
|
14
|
-
"impeccable@impeccable": true
|
|
10
|
+
"lisa-rails@lisa": true
|
|
15
11
|
},
|
|
16
12
|
"extraKnownMarketplaces": {
|
|
17
13
|
"CodySwannGT/lisa": {
|
|
@@ -19,12 +15,6 @@
|
|
|
19
15
|
"source": "github",
|
|
20
16
|
"repo": "CodySwannGT/lisa"
|
|
21
17
|
}
|
|
22
|
-
},
|
|
23
|
-
"pbakaus/impeccable": {
|
|
24
|
-
"source": {
|
|
25
|
-
"source": "github",
|
|
26
|
-
"repo": "pbakaus/impeccable"
|
|
27
|
-
}
|
|
28
18
|
}
|
|
29
19
|
},
|
|
30
20
|
"env": {
|
|
@@ -574,10 +574,7 @@ done
|
|
|
574
574
|
# Install third-party plugins required by all Lisa stacks
|
|
575
575
|
for plugin in \
|
|
576
576
|
"typescript-lsp@claude-plugins-official" \
|
|
577
|
-
"code-simplifier@claude-plugins-official" \
|
|
578
|
-
"code-review@claude-plugins-official" \
|
|
579
577
|
"coderabbit@claude-plugins-official" \
|
|
580
|
-
"skill-creator@claude-plugins-official" \
|
|
581
578
|
"atlassian@claude-plugins-official"; do
|
|
582
579
|
install_plugin_if_missing "$plugin"
|
|
583
580
|
done
|
|
@@ -590,10 +587,28 @@ done
|
|
|
590
587
|
# parity-safety-net.sh hook screens every Bash command, so the upstream
|
|
591
588
|
# safety-net plugin double-screened each command; its material guards were
|
|
592
589
|
# absorbed into the Lisa hook (issue #1960). Remove unchosen retired installs.
|
|
590
|
+
#
|
|
591
|
+
# The upstream plugin's real name is `cc-safety-net`. #1960 retired
|
|
592
|
+
# `safety-net@cc-marketplace`, which names no plugin, so the real one stayed
|
|
593
|
+
# installed and enabled wherever a project had turned it on (#4799). Both
|
|
594
|
+
# spellings are listed: the real one does the work, and the old one is a no-op
|
|
595
|
+
# kept for anything that once recorded it. `impeccable@impeccable` (an unpinned
|
|
596
|
+
# third-party design plugin) is retired by the same issue, and so are
|
|
597
|
+
# `code-review` (superseded by Claude Code's built-in /code-review) and
|
|
598
|
+
# `code-simplifier` (replaced by an instruction in Lisa's coding-philosophy
|
|
599
|
+
# rule) and `skill-creator` (retired by the owner).
|
|
600
|
+
#
|
|
593
601
|
# Version-gated like the other one-time heals so same-version runs don't spawn
|
|
594
602
|
# the CLI.
|
|
595
603
|
if [ "$FORCE_PLUGIN_SYNC" = "true" ]; then
|
|
596
|
-
for retired_plugin in
|
|
604
|
+
for retired_plugin in \
|
|
605
|
+
"sentry@claude-plugins-official" \
|
|
606
|
+
"cc-safety-net@cc-marketplace" \
|
|
607
|
+
"safety-net@cc-marketplace" \
|
|
608
|
+
"impeccable@impeccable" \
|
|
609
|
+
"code-review@claude-plugins-official" \
|
|
610
|
+
"code-simplifier@claude-plugins-official" \
|
|
611
|
+
"skill-creator@claude-plugins-official"; do
|
|
597
612
|
if [ "$retired_plugin" = "sentry@claude-plugins-official" ] &&
|
|
598
613
|
node -e 'try { const s = JSON.parse(require("node:fs").readFileSync(process.argv[1], "utf8")); process.exit(s.enabledPlugins?.["sentry@claude-plugins-official"] === true ? 0 : 1); } catch { process.exit(1); }' "$SETTINGS_FILE"; then
|
|
599
614
|
continue
|
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
"enabledPlugins": {
|
|
7
7
|
"lisa-typescript@lisa": true,
|
|
8
8
|
"typescript-lsp@claude-plugins-official": true,
|
|
9
|
-
"safety-net@cc-marketplace": false,
|
|
10
|
-
"code-simplifier@claude-plugins-official": true,
|
|
11
|
-
"code-review@claude-plugins-official": true,
|
|
12
9
|
"coderabbit@claude-plugins-official": true,
|
|
13
10
|
"sentry@claude-plugins-official": false
|
|
14
11
|
},
|
package/ui/index.html
CHANGED
|
@@ -10332,22 +10332,14 @@
|
|
|
10332
10332
|
"lisa-cdk@lisa": "AWS CDK plugin",
|
|
10333
10333
|
},
|
|
10334
10334
|
thirdPartyCatalog: {
|
|
10335
|
-
"code-review@claude-plugins-official":
|
|
10336
|
-
"Pre-ship diff defect hunt",
|
|
10337
|
-
"code-simplifier@claude-plugins-official":
|
|
10338
|
-
"Behavior-preserving cleanup",
|
|
10339
10335
|
"coderabbit@claude-plugins-official":
|
|
10340
10336
|
"AI PR review (also a required check)",
|
|
10341
10337
|
"sentry@claude-plugins-official":
|
|
10342
10338
|
"Issue debugging, Seer, instrumentation",
|
|
10343
|
-
"safety-net@cc-marketplace": "Guardrail rulebooks",
|
|
10344
10339
|
"typescript-lsp@claude-plugins-official":
|
|
10345
10340
|
"TypeScript language server",
|
|
10346
10341
|
"playwright@claude-plugins-official": "Browser automation MCP",
|
|
10347
10342
|
"posthog@claude-plugins-official": "Product analytics",
|
|
10348
|
-
"impeccable@impeccable": "UI design polish",
|
|
10349
|
-
"skill-creator@claude-plugins-official":
|
|
10350
|
-
"Author and optimize skills",
|
|
10351
10343
|
"ruby-lsp@claude-plugins-official":
|
|
10352
10344
|
"Ruby language server (rails stacks)",
|
|
10353
10345
|
"atlassian@claude-plugins-official": "Jira / Confluence access",
|
|
@@ -10385,7 +10377,7 @@
|
|
|
10385
10377
|
{
|
|
10386
10378
|
type: "callout",
|
|
10387
10379
|
staticCopy: "shipped Lisa plugin parity catalog",
|
|
10388
|
-
text: "<b>Parity reimplementations.</b> For non-Claude agents, curated plugin behavior is reimplemented as
|
|
10380
|
+
text: "<b>Parity reimplementations.</b> For non-Claude agents, curated plugin behavior is reimplemented as Lisa skills: code review (Lisa-owned), coderabbit, sentry SDK setup and sentry Seer. A drift detector fails CI when a pinned upstream plugin moves ahead of its pin.",
|
|
10389
10381
|
},
|
|
10390
10382
|
],
|
|
10391
10383
|
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: lisa-parity-code-simplifier
|
|
3
|
-
description: "Lisa-native…"
|
|
4
|
-
allowed-tools: ["Read", "Bash", "Grep", "Glob", "Edit", "Write"]
|
|
5
|
-
synced-from: code-simplifier@claude-plugins-official@1.0.0
|
|
6
|
-
---
|
|
7
|
-
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.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
# Parity Code Simplifier
|
|
11
|
-
|
|
12
|
-
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.
|
|
13
|
-
|
|
14
|
-
> **Drift tracking.** Pinned to `code-simplifier@claude-plugins-official@1.0.0`. In the Lisa repository, `scripts/plugin-parity-drift.mjs` (a Lisa-repository maintainer check that host projects do not ship, so it does not run in a host checkout) compares 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.**
|
|
15
|
-
|
|
16
|
-
## Scope: recently-changed code only
|
|
17
|
-
|
|
18
|
-
Default to the current diff, not the whole repository. Establish scope first:
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
git merge-base HEAD origin/main 2>/dev/null && \
|
|
22
|
-
git diff --stat "$(git merge-base HEAD origin/main)"...HEAD
|
|
23
|
-
git diff HEAD --stat
|
|
24
|
-
git status --short
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Simplify the files that changed and the immediate code they touch. Do not embark on a repo-wide refactor unless explicitly asked.
|
|
28
|
-
|
|
29
|
-
## The prime directive: preserve behavior
|
|
30
|
-
|
|
31
|
-
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.
|
|
32
|
-
|
|
33
|
-
## What to simplify
|
|
34
|
-
|
|
35
|
-
1. **Duplication (DRY)** — Collapse copy-pasted blocks into a single function or shared helper. Prefer delegating to an existing canonical implementation over re-deriving logic (see the repo's DRY rule: a function that reproduces a sequence should call the shared generator, not reimplement it).
|
|
36
|
-
2. **Reuse over reinvention** — Search for existing utilities (`Grep`/`Glob`) before introducing new code. If the project already has a helper for what the change hand-rolls, use it.
|
|
37
|
-
3. **Readability** — Clearer names; flatten needless nesting with early returns/guard clauses; replace clever one-liners with obvious code; split overly long functions along natural seams.
|
|
38
|
-
4. **Dead code** — Remove unreachable branches, unused variables/imports/exports, and commented-out blocks introduced or exposed by the change.
|
|
39
|
-
5. **Idiomatic constructs** — Prefer immutable transformations (`map`/`filter`/`reduce`) over mutable accumulation where it's clearer; remove redundant intermediate state.
|
|
40
|
-
|
|
41
|
-
## Respect project conventions
|
|
42
|
-
|
|
43
|
-
This repo enforces specific patterns — honor them so your simplification doesn't trip the linter or hooks:
|
|
44
|
-
|
|
45
|
-
- **Immutability / functional style** — avoid `let` and in-place mutation; prefer `const` and pure transformations.
|
|
46
|
-
- **Statement order** — do not place expression-statement helper calls before `const` definitions; inline validation as `if` guard clauses (exempt from `enforce-statement-order`).
|
|
47
|
-
- **eslint-disable directives** must include a `-- description`.
|
|
48
|
-
- **Barrel-export constraint** — if you delete a file referenced by an `index.ts`, update the barrel in the same change so lint/typecheck stays green.
|
|
49
|
-
- **Never edit generated plugin artifacts** (`plugins/lisa`, `plugins/lisa-*`); the source of truth is `plugins/src/`.
|
|
50
|
-
|
|
51
|
-
## Workflow
|
|
52
|
-
|
|
53
|
-
1. Read each changed file and enough of its callers to know the contract.
|
|
54
|
-
2. Identify simplification opportunities; rank by value-to-risk. Skip anything that risks behavior.
|
|
55
|
-
3. Apply edits with `Edit`/`Write`, one coherent change at a time.
|
|
56
|
-
4. **Verify behavior is unchanged** — run the project's checks:
|
|
57
|
-
```bash
|
|
58
|
-
bun run test
|
|
59
|
-
bun run typecheck 2>/dev/null || true
|
|
60
|
-
bun run lint 2>/dev/null || true
|
|
61
|
-
```
|
|
62
|
-
If any check fails, fix or revert the offending edit before continuing. Never leave the tree worse than you found it.
|
|
63
|
-
|
|
64
|
-
## Output
|
|
65
|
-
|
|
66
|
-
Summarize what you changed and why, grouped by file with `file:line` anchors:
|
|
67
|
-
|
|
68
|
-
- **Simplified** — the edits applied (dedup / reuse / readability / dead-code), each with a one-line rationale.
|
|
69
|
-
- **Left alone** — opportunities you deliberately skipped because they risked behavior, with the reason.
|
|
70
|
-
- **Flagged for review** — any suspected bugs noticed in passing (not fixed here — quality pass only).
|
|
71
|
-
- **Verification** — which checks you ran and that they pass.
|
|
72
|
-
|
|
73
|
-
## Rules
|
|
74
|
-
|
|
75
|
-
- **Behavior-preserving only.** No bug fixes, no feature changes, no API changes disguised as cleanup.
|
|
76
|
-
- **Quality only** — if the only "simplification" would change behavior, don't make it.
|
|
77
|
-
- **Tests must stay green.** A simplification that breaks a test is a behavior change — revert it.
|
|
78
|
-
- If there is nothing worth simplifying, say so clearly rather than churning the code.
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: lisa-parity-skill-creator
|
|
3
|
-
description: "Author a new Lisa skill…"
|
|
4
|
-
allowed-tools: ["Read", "Edit", "Write", "Bash"]
|
|
5
|
-
---
|
|
6
|
-
Author a new Lisa skill end-to-end — scaffold the SKILL.md frontmatter (name/description/allowed-tools), write the pass-through command, follow hyphen naming, place files under plugins/src/base, and rebuild plugins. Lisa-native reimplementation of the upstream skill-creator plugin. NO drift pin: upstream publishes no semver, so it is not drift-trackable.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
# Skill Creator
|
|
10
|
-
|
|
11
|
-
Author a new, working Lisa skill (and its pass-through command) from a one-line
|
|
12
|
-
description. This is the Lisa-native equivalent of the upstream
|
|
13
|
-
`skill-creator@claude-plugins-official` plugin, reimplemented from scratch
|
|
14
|
-
against Lisa's conventions so the same capability is available to the Codex,
|
|
15
|
-
agy, and Copilot runtimes (Cursor reads `.claude-plugin/` natively).
|
|
16
|
-
|
|
17
|
-
## Not drift-trackable
|
|
18
|
-
|
|
19
|
-
This skill intentionally carries **no `synced-from` pin**. The upstream
|
|
20
|
-
`skill-creator` plugin publishes **no semver** (its cache version resolves to
|
|
21
|
-
`unknown`), so a `@unknown` pin would be unparseable and meaningless to
|
|
22
|
-
`scripts/plugin-parity-drift.mjs`. **Drift is tracked manually** — re-review the
|
|
23
|
-
upstream plugin by hand whenever the curated plugin set is refreshed. Do **not**
|
|
24
|
-
add a `synced-from` line to skills generated by this skill unless they
|
|
25
|
-
reimplement a semver-versioned upstream plugin.
|
|
26
|
-
|
|
27
|
-
## When to use
|
|
28
|
-
|
|
29
|
-
- A reusable workflow, checklist, or piece of domain knowledge keeps recurring
|
|
30
|
-
and deserves a named, invokable skill.
|
|
31
|
-
- You are reimplementing an upstream third-party plugin command/skill for
|
|
32
|
-
cross-agent parity (see `analyze-plugin` / `implement-plugin-parity`).
|
|
33
|
-
- The user asks to "create a skill", "add a command", or "scaffold a skill".
|
|
34
|
-
|
|
35
|
-
If the knowledge is narrow or one-off, prefer a rule in `.claude/rules/` instead
|
|
36
|
-
— skills are for broad, repeatable capabilities. When unsure whether content
|
|
37
|
-
warrants a skill, run it past the `skill-evaluator` agent first — it is the
|
|
38
|
-
six-rung ladder router, a skill is only one rung, and it may recommend a
|
|
39
|
-
cheaper or stronger destination instead.
|
|
40
|
-
|
|
41
|
-
## Where skills live
|
|
42
|
-
|
|
43
|
-
Lisa skills are **build output** for downstream projects. The source of truth is
|
|
44
|
-
`plugins/src/`, never the generated `plugins/lisa*` artifacts:
|
|
45
|
-
|
|
46
|
-
| Source directory | Builds artifact | Use for |
|
|
47
|
-
| --- | --- | --- |
|
|
48
|
-
| `plugins/src/base/` | `plugins/lisa` | Skills that ship to **every** stack |
|
|
49
|
-
| `plugins/src/<stack>/` | `plugins/lisa-<stack>` | Stack-specific (typescript, expo, nestjs, cdk, harper-fabric, rails) |
|
|
50
|
-
|
|
51
|
-
Lisa-repo-only skills (parity tooling, wiki ingestion, `lisa-*` meta-skills) live
|
|
52
|
-
at the **root** `.claude/skills/` and `.claude/commands/`, NOT under
|
|
53
|
-
`plugins/src` — they are not relevant to downstream projects. Decide placement
|
|
54
|
-
first:
|
|
55
|
-
|
|
56
|
-
- Ships to downstream projects → `plugins/src/base/skills/lisa-<name>/SKILL.md`
|
|
57
|
-
- Only meaningful inside the Lisa monorepo → `.claude/skills/<name>/SKILL.md`
|
|
58
|
-
|
|
59
|
-
## Naming
|
|
60
|
-
|
|
61
|
-
- Base-plugin skills use the **`lisa-` prefix** on the directory and frontmatter
|
|
62
|
-
`name`: `lisa-implement`, `lisa-git-commit`, `lisa-tracker-write`. No spaces,
|
|
63
|
-
no camelCase, no underscores.
|
|
64
|
-
- The directory name and the frontmatter `name` must match exactly.
|
|
65
|
-
- Commands live flat under `commands/` — Claude Code prefixes plugin commands
|
|
66
|
-
with the plugin name, so `commands/git/commit.md` → `/lisa:git:commit` and
|
|
67
|
-
`commands/implement.md` → `/lisa:implement`. (Per-agent variant generators
|
|
68
|
-
nest them under `commands/lisa/` for harnesses without plugin-name
|
|
69
|
-
namespacing; never author that nesting in source.)
|
|
70
|
-
- **Commands** surface as `/lisa:*` (colon). **Skills** surface as `/lisa-*`
|
|
71
|
-
(hyphen). Never share a bare name like `implement` across both surfaces.
|
|
72
|
-
|
|
73
|
-
## SKILL.md frontmatter
|
|
74
|
-
|
|
75
|
-
Skills support **only** these frontmatter keys (they do **not** support
|
|
76
|
-
`argument-hint` or `$ARGUMENTS` substitution — those belong on the command):
|
|
77
|
-
|
|
78
|
-
```yaml
|
|
79
|
-
---
|
|
80
|
-
name: lisa-my-skill # required — matches the directory name
|
|
81
|
-
description: "One or two sentences." # required — when to use + what it does
|
|
82
|
-
allowed-tools: ["Read", "Edit", "Write", "Bash"] # optional — least privilege
|
|
83
|
-
synced-from: <plugin>@<marketplace>@<version> # ONLY for semver upstream reimplementations
|
|
84
|
-
---
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
- **`name`** — the hyphen identifier, byte-identical to the directory.
|
|
88
|
-
- **`description`** — write it so the model knows *when* to reach for the skill,
|
|
89
|
-
not just what it does. Lead with the trigger. This is the single most
|
|
90
|
-
important field for discoverability.
|
|
91
|
-
- **`allowed-tools`** — grant the minimum set. A read-only review skill needs no
|
|
92
|
-
`Write`/`Edit`. Omit the key entirely to inherit the caller's tools.
|
|
93
|
-
- **`synced-from`** — add **only** when the skill reimplements an upstream plugin
|
|
94
|
-
that publishes a real semver. Grammar: `name@marketplace@version`
|
|
95
|
-
(e.g. `sentry@claude-plugins-official@1.0.0`). Omit for upstreams with no
|
|
96
|
-
semver (note that in the body instead, as this skill does).
|
|
97
|
-
|
|
98
|
-
## The command pass-through pattern
|
|
99
|
-
|
|
100
|
-
Every skill should have a thin command that is the user-facing entry point.
|
|
101
|
-
Commands support `description`, `argument-hint`, and `$ARGUMENTS`; they delegate
|
|
102
|
-
straight to the skill:
|
|
103
|
-
|
|
104
|
-
```markdown
|
|
105
|
-
---
|
|
106
|
-
description: "Same human-facing summary as the skill, phrased for the picker."
|
|
107
|
-
argument-hint: "<what the user should type after the command>"
|
|
108
|
-
---
|
|
109
|
-
|
|
110
|
-
Use the /lisa-my-skill skill to <do the thing>. $ARGUMENTS
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
The command carries the `argument-hint` and forwards `$ARGUMENTS`; the SKILL.md
|
|
114
|
-
carries the actual logic. Keep the two descriptions consistent.
|
|
115
|
-
|
|
116
|
-
## Scaffolding walkthrough
|
|
117
|
-
|
|
118
|
-
1. **Decide placement** — downstream (`plugins/src/base`) vs. Lisa-only
|
|
119
|
-
(`.claude`). For base, both a skill and a command directory entry are needed.
|
|
120
|
-
2. **Pick the name** — `lisa-<slug>`, hyphenated, unique. Check it does not collide:
|
|
121
|
-
`ls plugins/src/base/skills/` and `ls plugins/src/base/commands/`.
|
|
122
|
-
3. **Create the skill** at
|
|
123
|
-
`plugins/src/base/skills/lisa-<name>/SKILL.md` with the frontmatter above and a
|
|
124
|
-
body that follows house style — see `plugins/src/base/skills/lisa-quality-review/SKILL.md`
|
|
125
|
-
for the canonical shape (title, "When to use", numbered checklist/steps,
|
|
126
|
-
explicit "Rules"/"Output" sections). Write real, actionable guidance, not
|
|
127
|
-
TODOs.
|
|
128
|
-
4. **Create the command** at `plugins/src/base/commands/<name>.md` (or a nested
|
|
129
|
-
`commands/<namespace>/<name>.md` for a colon-namespaced command) using the
|
|
130
|
-
pass-through template.
|
|
131
|
-
5. **Rebuild the artifacts** so the generated plugins match source:
|
|
132
|
-
```bash
|
|
133
|
-
bun run build:plugins
|
|
134
|
-
```
|
|
135
|
-
Then commit **both** `plugins/src/...` and the regenerated `plugins/lisa*`.
|
|
136
|
-
The `🧩 Plugins Sync` CI check (and `bun run check:plugins` locally) fails if
|
|
137
|
-
artifacts drift from source — never hand-edit `plugins/lisa*`.
|
|
138
|
-
6. **Verify discoverability** — confirm the skill appears as `/lisa-<name>` and
|
|
139
|
-
the command resolves to `/lisa:<name>` (or `/lisa:<ns>:<name>` when nested).
|
|
140
|
-
|
|
141
|
-
## Body house style
|
|
142
|
-
|
|
143
|
-
- Open with an `#` H1 title in Title Case.
|
|
144
|
-
- Add a `## When to use` section that names the triggers.
|
|
145
|
-
- Use numbered steps for procedures, checklists for review-style skills.
|
|
146
|
-
- End with an explicit `## Rules` (hard constraints) and/or `## Output` section.
|
|
147
|
-
- Write in plain, imperative English. Prefer concrete examples over abstraction.
|
|
148
|
-
- Reference sibling skills by their hyphen name (e.g. "delegate to `lisa-git-commit`").
|
|
149
|
-
|
|
150
|
-
## Rules
|
|
151
|
-
|
|
152
|
-
- Never edit `plugins/lisa*` directly — edit `plugins/src/` and rebuild.
|
|
153
|
-
- Skill frontmatter must not contain `argument-hint` or `$ARGUMENTS`.
|
|
154
|
-
- The directory name, `name` field, and command filename must match exactly.
|
|
155
|
-
- Add `synced-from` **only** for semver-versioned upstream reimplementations.
|
|
156
|
-
- Do not include `/coding-philosophy` in task `skills` metadata — it auto-loads.
|
|
157
|
-
- One skill, one responsibility. If a skill grows two jobs, split it.
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Behavior-preserving simplification of recently-changed code — dedup, reuse, readability, and dead-code removal, quality only (never a bug hunt). Vendor-neutral cross-agent equivalent of the upstream code-simplifier agent."
|
|
3
|
-
argument-hint: "[optional: path or scope hint]"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Use the /lisa-parity-code-simplifier skill to simplify the recently-changed code — removing duplication and dead code, reusing existing utilities, and improving readability — without altering behavior, then verify tests still pass. $ARGUMENTS
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Author a new Lisa skill end-to-end — scaffold the SKILL.md frontmatter, write the pass-through command, follow hyphen naming and placement under plugins/src, and rebuild plugins. Lisa-native equivalent of the upstream skill-creator plugin."
|
|
3
|
-
argument-hint: "<skill-name and a one-line description of what it should do>"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Use the /lisa-parity-skill-creator skill to scaffold a new Lisa skill and its pass-through command, following frontmatter, naming, placement, and build conventions. $ARGUMENTS
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: lisa-parity-code-simplifier
|
|
3
|
-
description: "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."
|
|
4
|
-
allowed-tools: ["Read", "Bash", "Grep", "Glob", "Edit", "Write"]
|
|
5
|
-
synced-from: code-simplifier@claude-plugins-official@1.0.0
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Parity Code Simplifier
|
|
9
|
-
|
|
10
|
-
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.
|
|
11
|
-
|
|
12
|
-
> **Drift tracking.** Pinned to `code-simplifier@claude-plugins-official@1.0.0`. In the Lisa repository, `scripts/plugin-parity-drift.mjs` (a Lisa-repository maintainer check that host projects do not ship, so it does not run in a host checkout) compares 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.**
|
|
13
|
-
|
|
14
|
-
## Scope: recently-changed code only
|
|
15
|
-
|
|
16
|
-
Default to the current diff, not the whole repository. Establish scope first:
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
git merge-base HEAD origin/main 2>/dev/null && \
|
|
20
|
-
git diff --stat "$(git merge-base HEAD origin/main)"...HEAD
|
|
21
|
-
git diff HEAD --stat
|
|
22
|
-
git status --short
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Simplify the files that changed and the immediate code they touch. Do not embark on a repo-wide refactor unless explicitly asked.
|
|
26
|
-
|
|
27
|
-
## The prime directive: preserve behavior
|
|
28
|
-
|
|
29
|
-
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.
|
|
30
|
-
|
|
31
|
-
## What to simplify
|
|
32
|
-
|
|
33
|
-
1. **Duplication (DRY)** — Collapse copy-pasted blocks into a single function or shared helper. Prefer delegating to an existing canonical implementation over re-deriving logic (see the repo's DRY rule: a function that reproduces a sequence should call the shared generator, not reimplement it).
|
|
34
|
-
2. **Reuse over reinvention** — Search for existing utilities (`Grep`/`Glob`) before introducing new code. If the project already has a helper for what the change hand-rolls, use it.
|
|
35
|
-
3. **Readability** — Clearer names; flatten needless nesting with early returns/guard clauses; replace clever one-liners with obvious code; split overly long functions along natural seams.
|
|
36
|
-
4. **Dead code** — Remove unreachable branches, unused variables/imports/exports, and commented-out blocks introduced or exposed by the change.
|
|
37
|
-
5. **Idiomatic constructs** — Prefer immutable transformations (`map`/`filter`/`reduce`) over mutable accumulation where it's clearer; remove redundant intermediate state.
|
|
38
|
-
|
|
39
|
-
## Respect project conventions
|
|
40
|
-
|
|
41
|
-
This repo enforces specific patterns — honor them so your simplification doesn't trip the linter or hooks:
|
|
42
|
-
|
|
43
|
-
- **Immutability / functional style** — avoid `let` and in-place mutation; prefer `const` and pure transformations.
|
|
44
|
-
- **Statement order** — do not place expression-statement helper calls before `const` definitions; inline validation as `if` guard clauses (exempt from `enforce-statement-order`).
|
|
45
|
-
- **eslint-disable directives** must include a `-- description`.
|
|
46
|
-
- **Barrel-export constraint** — if you delete a file referenced by an `index.ts`, update the barrel in the same change so lint/typecheck stays green.
|
|
47
|
-
- **Never edit generated plugin artifacts** (`plugins/lisa`, `plugins/lisa-*`); the source of truth is `plugins/src/`.
|
|
48
|
-
|
|
49
|
-
## Workflow
|
|
50
|
-
|
|
51
|
-
1. Read each changed file and enough of its callers to know the contract.
|
|
52
|
-
2. Identify simplification opportunities; rank by value-to-risk. Skip anything that risks behavior.
|
|
53
|
-
3. Apply edits with `Edit`/`Write`, one coherent change at a time.
|
|
54
|
-
4. **Verify behavior is unchanged** — run the project's checks:
|
|
55
|
-
```bash
|
|
56
|
-
bun run test
|
|
57
|
-
bun run typecheck 2>/dev/null || true
|
|
58
|
-
bun run lint 2>/dev/null || true
|
|
59
|
-
```
|
|
60
|
-
If any check fails, fix or revert the offending edit before continuing. Never leave the tree worse than you found it.
|
|
61
|
-
|
|
62
|
-
## Output
|
|
63
|
-
|
|
64
|
-
Summarize what you changed and why, grouped by file with `file:line` anchors:
|
|
65
|
-
|
|
66
|
-
- **Simplified** — the edits applied (dedup / reuse / readability / dead-code), each with a one-line rationale.
|
|
67
|
-
- **Left alone** — opportunities you deliberately skipped because they risked behavior, with the reason.
|
|
68
|
-
- **Flagged for review** — any suspected bugs noticed in passing (not fixed here — quality pass only).
|
|
69
|
-
- **Verification** — which checks you ran and that they pass.
|
|
70
|
-
|
|
71
|
-
## Rules
|
|
72
|
-
|
|
73
|
-
- **Behavior-preserving only.** No bug fixes, no feature changes, no API changes disguised as cleanup.
|
|
74
|
-
- **Quality only** — if the only "simplification" would change behavior, don't make it.
|
|
75
|
-
- **Tests must stay green.** A simplification that breaks a test is a behavior change — revert it.
|
|
76
|
-
- If there is nothing worth simplifying, say so clearly rather than churning the code.
|