用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Objective-Arts/lens-dist --skill qodana-scan命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | qodana-scan |
| description | Read-only Qodana static analysis. Reports issues without fixing. |
Read-only static analysis using Qodana. Reports issues without making any changes.
No arguments? Describe this skill and stop. Do not execute.
If a path argument is provided, analyze that directory. If no argument, analyze the current project.
Determine the appropriate Qodana linter:
qodana-jvm-community - Java, Kotlin (free)qodana-js - JavaScript, TypeScriptqodana-python-community - Python (free)qodana-go - Goqodana-php - PHPOr use mcp__qodana__qodana_detect if available.
If Qodana MCP is available:
mcp__qodana__qodana_scan
projectDir: <project path>
Otherwise, run via CLI:
qodana scan --linter <detected-linter> --project-dir <path> --results-dir .qodana
If Qodana MCP is available:
mcp__qodana__qodana_problems
projectDir: <project path>
Otherwise, parse the SARIF output:
cat .qodana/qodana.sarif.json | python3 -c "..."
npx tsc --noEmit 2>&1 || true
npm run lint 2>&1 || true
In addition to static analysis issues, flag these signs of AI-generated code:
| Antipattern | What to Look For |
|---|---|
| Over-abstraction | Factory/Builder/Wrapper used once |
| Defensive paranoia | Null checks where type says never null |
| Unused parameters | Parameters passed but never used |
| Comment spam | Comments restating obvious code |
| Over-engineered types | Deep generic hierarchies for simple data |
Report these separately from Qodana findings.
Collect all issues and organize by severity.
DO NOT edit any files. Report only.
## Static Analysis Scan: [target]
### Summary
| Metric | Value |
|--------|-------|
| Files scanned | N |
| Critical issues | N |
| High issues | N |
| Moderate issues | N |
| Low issues | N |
| Lint errors | N |
| Type errors | N |
### Critical Issues 🔴
Must fix before shipping:
1. **[file:line]** — [description]
- Rule: [rule-id]
- Source: Qodana/ESLint/TSC
### High Issues 🟠
Should fix:
1. **[file:line]** — [description]
- Rule: [rule-id]
### Moderate Issues 🟡
Consider fixing:
1. **[file:line]** — [description]
### Low Issues 💭
Minor improvements:
1. **[file:line]** — [description]
### By Category
| Category | Count |
|----------|-------|
| Security | N |
| Performance | N |
| Code Style | N |
| Best Practices | N |
| Type Safety | N |
### Files with Most Issues
| File | Issues |
|------|--------|
| path/to/file.ts | 5 |
| ... | ... |
---
QODANA_RESULT: called - [N] issues
LINT_RESULT: [N] errors, [N] warnings
TSC_RESULT: [N] errors
SCAN_ONLY: no fixes applied
| Skill | Analyzes | Fixes |
|---|---|---|
/qodana-scan | ✓ | ✗ (read-only) |
/qodana-review | ✓ | ✓ (mandatory) |