lens-review
БесплатноБез исполняемых скриптовНе проверенUSE WHEN reviewing uncommitted work, a branch diff or a pull request through several installed skills, each run as its own review lens; NOT WHEN you need one…
от mintuz★ 38 звёзд на GitHubОб этом скилле
Lens review
Review one diff through several lenses. A lens is one installed skill, loaded by one read-only sub-agent that judges only that skill's concern. You are the orchestrator: resolve the diff, compose the roster, run the lenses, have each finding verified, and write one report.
Read these before the step that needs them:
| Reference | Read before |
|---|---|
references/lenses.md |
Step 3: the built-in lens, the default and detected lenses, and the lens brief |
references/workflow.md |
Step 4: how to run the lenses and verifiers on each host |
babysit forge reference: GitHub or Forgejo and Gitea |
Step 1 for a PR target, and step 7 |
Invocation
/lens-review [target] [modifiers] [lens...]. In Codex, use $lens-review with the same tokens.
| Token | Meaning |
|---|---|
| (no target) | Review the current branch: the diff from the merge base with the default branch, plus uncommitted changes |
wip |
Review only the uncommitted changes, staged and unstaged, against HEAD |
#123, 123 or a PR URL |
Review that pull request (PR) |
<skill-name> |
Add that installed skill as a lens |
only <names...> |
Use exactly the named lenses: no built-in, default or detected lens |
-<name> |
Remove that lens from the roster |
thorough |
Run every detected lens, and use three verifiers for each finding |
post |
Post the report to the PR as a comment. Needs a PR target |
Examples: /lens-review, /lens-review #482 thorough, /lens-review wip only react-testing xstate, /lens-review 57 post.
If a token is not a token in this table and does not name an installed skill, stop before any lens runs. Report the token, list near matches from the installed skills, and ask the user. Do not substitute a near match by yourself. In the same message, show the diff command from step 1 and the roster from step 3, including the lenses it leaves not covered, so the user answers with the full plan.
1. Resolve the diff
- Branch (no target): run
git diff $(git merge-base <default-branch> HEAD). This includes committed and uncommitted changes to tracked files. Rungit status --porcelainand include untracked files. Say that uncommitted changes are included. wip: rungit diff HEAD, and include untracked files fromgit status --porcelain.- PR: use the forge's PR details and PR diff rows. Record the PR title, body, base branch and head SHA.
- Stacked branch: if stack metadata names an immediate parent branch, diff against that parent, not against the default branch.
If the diff is empty or the target does not resolve, stop and report that. Do not review.
2. Scout inline
Do not use sub-agents for this step.
- Sort the changed files into production, test, configuration and documentation.
- Read the project's
CLAUDE.mdorAGENTS.md, its package or build manifests, and any glossary or decision records. Record the stack and the local conventions. - Record the change's claim: the PR title and body, the commit messages, or the intent that the user stated. The lenses judge the diff against this claim.
3. Compose the roster
- Apply
references/lenses.md: the built-inqualitylens, the stack defaults, and the detected lenses. - Apply the user's tokens:
only, added names and-<name>removals. Withonly, record each omitted lens as not covered. - Keep 3–6 skill lenses. If detection finds more, keep the lenses most relevant to the diff and record the others as not covered. With
thorough, run them all. - Tell the user, in one line, the roster and the scale: the number of lens nodes, plus one verifier for each unique finding (three with
thorough). - If the roster has more than 8 lens nodes, ask the user before you launch, unless they gave
thorough. Otherwise, launch without asking.
4. Run the lenses
Run every lens node in parallel, in its own context. Brief each one with the lens brief in references/lenses.md. Lens nodes do not modify files. Follow the section of references/workflow.md for the host:
- Claude Code: the
Workflowscript. A user who invokes this skill has opted in to the workflow. - No workflow tool (for example OMP): sub-agents launched in one message.
- Codex: fresh threads or sub-agents.
- No sub-agents: each lens in sequence, labelled
sequential (degraded): not independent.
5. Verify and merge
- Retry a lens that returns nothing or malformed output once. Then record it as lost and list it under Not covered. A lost lens is not a clean result.
- Merge findings that share a file, line and claim. Record which lenses agree. Agreement is a signal, not proof.
- Give each unique finding to a fresh verifier. Send the claim, its evidence and the base and head refs. Never send the lens's brief or reasoning.
Установить lens-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл lens-review?
USE WHEN reviewing uncommitted work, a branch diff or a pull request through several installed skills, each run as its own review lens; NOT WHEN you need one cold second opinion (double-check), a verdict against a specification (acceptance-review) or the built-in fixed-lens /code-review. Runs each lens in an isolated read-only agent, has a separate agent try to refute every finding, and returns one severity-ranked report.
Как установить скилл lens-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lens-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic