Skills Plugins MCP Prompt Model 博客 我的中心
開発 #security #ai

code-review

Perform thorough code reviews with security, performance, and maintainability analysis. Use when user asks to review code, check for bugs, or audit a codebase.

DeepseekModel キュレーション済みスキル 品質 優秀 · 90 v1.0.0

取得

https://deepseekmodel.com/api/download.php?id=shareai-lab-learn-claude-code-skills-code-review-skill-md&format=skill
ダウンロード .skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能
.skill ファイルの system_prompt フィールドの実際の内容。
name code-review description Perform thorough code reviews with security, performance, and maintainability analysis. Use when user asks to review code, check for bugs, or audit a codebase. Code Review Skill You now have expertise in conducting comprehensive code reviews. Follow this structured approach: Review Checklist 1. Security (Critical) Check for: Injection vulnerabilities : SQL, command, XSS, template injection Authentication issues : Hardcoded credentials, weak auth Authorization flaws : Missing access controls, IDOR Data exposure : Sensitive data in logs, error messages Cryptography : Weak algorithms, improper key management Dependencies : Known vulnerabilities (check with npm audit , pip-audit ) # Quick security scans npm audit # Node.js pip-audit # Python cargo audit # Rust grep -r "password\|secret\|api_key" --include= "*.py" --include= "*.js" 2. Correctness Check for: Logic errors : Off-by-one, null handling, edge cases Race conditions : Concurrent access without synchronization Resource leaks : Unclosed files, connections, memory Error handling : Swallowed exceptions, missing error paths Type safety : Implicit conversions, any types 3. Performance Check for: N+1 queries : Database calls in loops Memory issues : Large allocations, retained references Blocking operations : Sync I/O in async code Inefficient algorithms : O(n^2) when O(n) possible Missing caching : Repeated expensive computations 4. Maintainability Check for: Naming : Clear, consistent, descriptive Complexity : Functions > 50 lines, deep nesting > 3 levels Duplication : Copy-pasted code blocks Dead code : Unused imports, unreachable branches Comments : Outdated, redundant, or missing where needed 5. Testing Check for: Coverage : Critical paths tested Edge cases : Null, empty, boundary values Mocking : External dependencies isolated Assertions : Meaningful, specific checks Review Output Format ## Code Review: [file/component name] ### Summary [1-2 sentence overview] ### Critical Issues 1. **[Issue]** (line X): [Description] - Impact: [What could go wrong] - Fix: [Suggested solution] ### Improvements 1. **[Suggestion]** (line X): [Description] ### Positive Notes - [What was done well] ### Verdict [ ] Ready to merge [ ] Needs minor changes [ ] Needs major revision Common Patterns to Flag Python # Bad: SQL injection cursor.execute( f"SELECT * FROM users WHERE id = {user_id} " ) # Good: cursor.execute( "SELECT * FROM users WHERE id = ?" , (user_id,)) # Bad: Command injection os.system( f"ls {user_input} " ) # Good: subprocess.run([ "ls" , user_input], check= True ) # Bad: Mutable default argument def append ( item, lst=[] ): # Bug: shared mutable default # Good: def append ( item, lst= None ): lst = lst or [] JavaScript/TypeScript // Bad: Prototype pollution Object . assign (target, userInput) // Good: Object . assign (target, sanitize (userInput)) // Bad: eval usage eval (userCode) // Good: Never use eval with user input // Bad: Callback hell getData ( x => process (x, y => save (y, z => done (z)))) // Good: const data = await getData (); const processed = await process (data); await save (processed); Review Commands # Show recent changes git diff HEAD~5 -- stat git log --oneline -10 # Find potential issues grep -rn "TODO\|FIXME\|HACK\|XXX" . grep -rn "password\|secret\|token" . --include= "*.py" # Check complexity (Python) pip install radon && radon cc . -a # Check dependencies npm outdated # Node pip list --outdated # Python Review Workflow Understand context : Read PR description, linked issues Run the code : Build, test, run locally if possible Read top-down : Start with main entry points Check tests : Are changes tested? Do tests pass? Security scan : Run automated tools Manual review : Use checklist above Write feedback : Be specific, suggest fixes, be kind
このスキルを起動するキーワード。クリックでコピーできます。

このスキルにはトリガーワードがありません。

ダウンロードした .skill に含まれるフィールド。
フィールド 説明
formatフォーマット識別子(skill/v1)
skill_idスキル固有 ID
nameスキル名
versionバージョン
description説明
categoryカテゴリ(配列)
trigger_wordsトリガーワード
tagsタグ
sourceソース
source_urlソース URL(本ページ)
exported_atエクスポート日時(ダウンロード毎)
system_promptシステムプロンプト本文
model_configモデル設定:provider / model / temperature / max_tokens / top_p
examplesサンプル
install_guide各プラットフォームの導入説明(Coze / Dify / Claude / カスタム)
同じスキルを各プラットフォーム形式で出力できます。
.skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能 ダウンロード
.skillpro 拡張形式。scripts / tools / dependencies / hooks を含む ダウンロード
.json 純粋な JSON 出力。system_prompt とモデル設定のみ ダウンロード
Coze frontmatter 付き Markdown。Coze へのインポート用 ダウンロード
Dify Dify DSL。アプリ作成後にそのままインポート ダウンロード

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。