一键导入
code-review
Multi-language code review skill with security audit and performance optimization suggestions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Multi-language code review skill with security audit and performance optimization suggestions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | code-review |
| description | Multi-language code review skill with security audit and performance optimization suggestions |
Comprehensive code review skill that supports:
/spencergo:code-review
Or describe your review needs:
/spencergo:code-review
/path/to/project
Paste code blocks and ask for review:
// Review this code
function getUser(id) {
return db.query(`SELECT * FROM users WHERE id = ${id}`);
}
Provide file path for review:
Review /path/to/src/index.js
Review entire project:
Review my project at ./src
## Code Review Summary
| Category | Issues | Severity |
|----------|--------|----------|
| Security | 3 | HIGH |
| Performance | 2 | MEDIUM |
| Code Quality | 5 | LOW |
| Best Practices | 4 | LOW |
Overall Score: 7/10
For each issue:
## [HIGH] SQL Injection Vulnerability
**File:** src/db.js:15
**Code:**
```javascript
return db.query(`SELECT * FROM users WHERE id = ${id}`);
Problem: User input directly concatenated into SQL query
Suggestion:
return db.query('SELECT * FROM users WHERE id = ?', [id]);
## Supported Languages
| Language | File Extensions |
|----------|-----------------|
| JavaScript | .js, .mjs |
| TypeScript | .ts, .tsx |
| Python | .py |
| Go | .go |
| Java | .java |
| Rust | .rs |
| C++ | .cpp, .cc, .h |
| C# | .cs |
| Ruby | .rb |
| PHP | .php |
## Review Process
1. **Input Recognition** - Determine review type (paste/path/project)
2. **Language Detection** - Auto-detect programming language
3. **Code Parsing** - Understand code structure
4. **Multi-dimensional Review** - Run checks in parallel:
- Security scan
- Performance analysis
- Quality check
- Best practices
5. **Result Aggregation** - Combine all findings
6. **Report Generation** - Format output with severity
## Severity Levels
- **CRITICAL** - Security vulnerabilities, potential data loss
- **HIGH** - Serious bugs, security risks
- **MEDIUM** - Performance issues, maintainability problems
- **LOW** - Style issues, minor improvements
- **INFO** - Suggestions, best practices
## Next Step Guide (MUST FOLLOW)
After code review, you may:
1. **Security issues found** → Recommend `code-review:security` for deeper security analysis
2. **Performance issues found** → Recommend `code-review:performance` for detailed performance analysis
3. **Need fixes applied** → Offer to apply fixes directly
4. **Need explanations** → Provide detailed explanations of any issue
Example transitions:
- "For more detailed security analysis, use /spencergo:code-review:security"
- "I can apply these fixes if you'd like"
- "Would you like me to explain any of these issues in more detail?"
基于 SOC 职业分类
End-to-end Chinese web novel production workflow for turning a novel idea into a structured deliverable project. Covers hot-search and trend scan, discovery discussion, requirement intake, market/topic analysis, title confirmation, story planning, outline design, character bible creation, chapter drafting, polishing, proofreading, final review, and optional Feishu Wiki sync. Use when the user wants to create, develop, optimize, or deliver a serialized novel, web fiction project, long-form Chinese fiction pipeline, or a full novel production workflow from concept to manuscript.
Structured topic research and multi-angle analysis for a user-provided topic, market, trend, concept, project, platform, industry, or content direction. Use when the user asks to research, investigate, analyze, study, or survey a topic and expects more than a simple search result dump, including multi-round retrieval, source comparison, dimension-based analysis, opportunity/risk assessment, and a clear research summary.
Content writing skill - writes based on outline, real-time style comparison, embedded self-check, supports multiple writing rhythms.
Outline generation skill - generates structured outlines based on requirements, provides content type structure library and smart recommendations.
Polish skill - rewrite/optimize/proofread/de-AI-ify. Provides enhanced AI detection and optimization direction refinement.
Content review skill - AI predicts questions, multi-dimensional review, quantitative scoring, provides improvement suggestions.