用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Objective-Arts/lens-dist --skill gemini-scan命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | gemini-scan |
| description | Read-only code review via Gemini. Reports issues without fixing. Senior engineer style - no false praise. |
Read-only independent code review using Gemini. Reports issues without making any changes. Senior Google engineer style - no handholding, no false praise.
No arguments? Describe this skill and stop. Do not execute.
Code that a master craftsperson would be proud of.
This scan specifically looks for code that appears AI-generated rather than crafted by a skilled human engineer.
| Antipattern | Example | Why It's Wrong |
|---|---|---|
| Over-abstraction | Factory used once | Abstraction without justification |
| Defensive paranoia | if (x !== null) when x can't be null | Doesn't understand the code |
| Reimplementing stdlib | Custom deepClone when structuredClone exists | Ignorance or arrogance |
| Comment spam | // loop through users above for (user of users) | Insulting the reader |
| Speculative features | Config options with one possible value | Solving imaginary problems |
| Enterprise patterns | AbstractUserFactoryBean | Cargo-culting |
Goal: Report code that wouldn't survive a senior engineer's review.
If a path argument is provided, review that file/directory. If no argument, review recently modified files (git diff/log). Multiple paths can be provided to scan a set of components.
Read .claude/rubric/AUTO-DETECT.md for the detection table. Then:
.claude/rubric/base.md and .claude/rubric/product-quality.md.claude/rubric/web-api.md, .claude/rubric/data-persistence.md, .claude/rubric/cli.md, .claude/rubric/microservice.md).## Review Criteria. Combine into a single criteria list for the Gemini context.If a rubric file doesn't exist, skip it and continue.
Find target files:
If NO code exists, output "no code to review" and stop.
Read ALL files in scope completely. Do not skim.
For each file or logical group:
mcp__gemini-reviewer__gemini_review
code: <paste the source code>
focus: "general"
context: "PRODUCTION READINESS review. If you wouldn't deploy this to production today, flag it. Review against: {RUBRIC_CRITERIA}. For each finding cite file:line and severity (CRITICAL/HIGH/MEDIUM/LOW). CRITICAL = blocks production. HIGH = would cause incidents."
Replace {RUBRIC_CRITERIA} with the combined Review Criteria from all loaded rubric files, numbered sequentially.
Note: Test Coverage is handled by the testing phase — do not include it in the rubric criteria.
If tool unavailable, output: GEMINI_ERROR: tool not available
Collect all issues from Gemini and organize by severity.
DO NOT edit any files. Report only.
## Gemini Scan: [target]
### Summary
| Metric | Value |
|--------|-------|
| Files scanned | N |
| Total lines | N |
| Critical issues | N |
| High issues | N |
| Medium issues | N |
| Low issues | N |
### Critical Issues 🔴
Must fix before shipping:
1. **[file:line]** — [description]
- Problem: [what Gemini found]
- Impact: [why it matters]
- Suggested fix: [how to address]
### High Issues 🟠
Should fix:
1. **[file:line]** — [description]
- Problem: [what Gemini found]
- Suggested fix: [how to address]
### Medium Issues 🟡
Consider fixing:
1. **[file:line]** — [description]
- Concern: [what Gemini found]
### Low Issues 💭
Minor improvements:
1. **[file:line]** — [description]
### AI-Generated Antipatterns Detected
Patterns typical of AI-generated code that should be simplified:
- [ ] Over-abstraction (factories/wrappers used once)
- [ ] Features not requested
- [ ] Defensive checks for impossible cases
- [ ] Reimplementing stdlib
- [ ] Copy-paste that should be extracted
- [ ] Over-commenting obvious code
- [ ] Unnecessary config options
- [ ] Over-engineered types
### Files Reviewed
| File | Lines | Issues |
|------|-------|--------|
| path/to/file.ts | 245 | 2 🔴, 1 🟠 |
| ... | ... | ... |
---
GEMINI_RESULT: called - [N] total issues
SCAN_ONLY: no fixes applied