用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Objective-Arts/lens --skill ai-smell-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Audit a project against a canon's rules and checklist. Read-only — produces prioritized report without fixing. Works with any canon (nextjs, sql, typescript, etc.).
Lens home base - status, help, and setup
Plan and build a new feature with quality gates.
正在显示 SKILL.md
基于 SOC 职业分类
| name | ai-smell-review |
| description | Remove AI-generated code smells. Make code look human-written. |
Hunt and remove AI-generated code patterns. Make code look like a skilled human wrote it.
No arguments? Describe this skill and stop. Do not execute.
mkdir -p .claude && echo '{"skill":"ai-smell-review","started":"'$(date -Iseconds)'"}' > .claude/active-workflow.json
createUserService() that just returns new UserService() → delete factoryif (x !== undefined && x !== null && x) → just if (x)// increment counter above counter++ → delete// loop through users above for (user of users) → delete// return the result above return result → deleteoptions?: { verbose?: boolean } never set to true → removeResult<T, E> when you just throw → throwResponse<T> that's always { data: T } → just return TMaybe<T> when null works fine → use nulluserDataObjectInstance → userisCurrentlyProcessingRequest → processinggetAllUsersFromDatabase → getUsersutils/helpers/formatters/stringFormatters.ts → flatten## AI Smell Removal: [target]
SMELLS_FOUND:
- [file:line] [smell type]: [description]
SMELLS_FIXED:
- [file:line] [smell type] → [what was done]
LINES_REMOVED: N
ABSTRACTIONS_INLINED: N
COMMENTS_DELETED: N
TESTS_PASS: yes
AI_SMELL_REVIEW_COMPLETE
Known pitfalls are maintained in
canon/pitfalls/SKILL.md. If you discover a new recurring pattern, note it in the report output — it can be added to the pitfalls canon in a future release.
After fixing smells:
Your turn ends here. Output AI_SMELL_REVIEW_COMPLETE and STOP.