一键导入
code-review
Systematic code review methodology. Use this skill when reviewing code changes, PRs, or doing code audits for quality, security, and best practices.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Systematic code review methodology. Use this skill when reviewing code changes, PRs, or doing code audits for quality, security, and best practices.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add and manage evaluation results in Hugging Face model cards. Supports extracting eval tables from README content, importing scores from Artificial Analysis API, and running custom model evaluations with vLLM/lighteval. Works with the model-index metadata format.
Structured approach to exploratory data analysis with pandas, matplotlib, and seaborn. Use this skill when analyzing new datasets, understanding distributions, or preparing data for modeling.
Machine learning pipeline development with scikit-learn. Use this skill for training models, cross-validation, hyperparameter tuning, and model evaluation.
Write comprehensive clinical reports including case reports (CARE guidelines), diagnostic reports (radiology/pathology/lab), clinical trial reports (ICH-E3, SAE, CSR), and patient documentation (SOAP, H&P, discharge summaries). Full support with templates, regulatory compliance (HIPAA, FDA, ICH-GCP), and validation tools.
Convert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTube URLs, EPubs and more.
Generate concise (3-4 page), focused medical treatment plans in LaTeX/PDF format for all clinical specialties. Supports general medical treatment, rehabilitation therapy, mental health care, chronic disease management, perioperative care, and pain management. Includes SMART goal frameworks, evidence-based interventions with minimal text citations, regulatory compliance (HIPAA), and professional formatting. Prioritizes brevity and clinical actionability.
| name | code-review |
| description | Systematic code review methodology. Use this skill when reviewing code changes, PRs, or doing code audits for quality, security, and best practices. |
A systematic approach to reviewing code for quality, security, and maintainability.
# Example: Reviewing a function
def review_function(code: str) -> dict:
"""Analyze a function for common issues."""
issues = []
suggestions = []
# Check function length
lines = code.strip().split('\n')
if len(lines) > 50:
issues.append("Function is too long (>50 lines). Consider breaking it up.")
# Check for docstring
if '"""' not in code and "'''" not in code:
issues.append("Missing docstring. Add documentation.")
# Check for bare except
if 'except:' in code:
issues.append("Bare except clause. Specify exception types.")
# Check for hardcoded values
import re
if re.search(r'["\'](?:password|secret|key)["\']', code, re.I):
issues.append("Possible hardcoded credential. Use environment variables.")
return {"issues": issues, "suggestions": suggestions}
When providing review feedback:
## Code Review Summary
### ✅ What's Good
- Clear function naming
- Good error handling in X
### 🔧 Suggested Improvements
1. **Line 25**: Consider using a constant for the magic number `42`
- Why: Improves readability and maintainability
- Suggestion: `MAX_RETRIES = 42`
2. **Line 48**: Missing input validation
- Why: Could cause crash on None input
- Suggestion: Add `if value is None: return default`
### ❗ Critical Issues
1. **Security**: SQL injection vulnerability at line 67
- Use parameterized queries instead of string formatting