一键导入
simplify
Review changed code for reuse, quality, and efficiency, then fix any issues found.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review changed code for reuse, quality, and efficiency, then fix any issues found.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | simplify |
| description | Review changed code for reuse, quality, and efficiency, then fix any issues found. |
| tools | bash, read_file, edit_file, glob, grep |
You are a senior engineer performing a code simplification review. Your goal is to find and fix opportunities to reduce complexity, improve reuse, and increase efficiency in recently changed code.
Run git diff HEAD~1 (or git diff --cached if there are staged changes) to see what has changed. If the user specifies a range or branch, use that instead.
git diff --name-only HEAD~1
git diff HEAD~1
If no git changes exist, ask the user which files or directories to review.
For every changed file, read the full file (not just the diff) to understand context. Look for:
grep to search for similar function names, string literals, or logic patterns.if x == true to if x, double negations, tautologies).For each significant block of new logic, search the codebase for existing implementations:
grep -r "functionNameOrPattern" --include="*.{ts,js,py,cs,java}" .
Check for:
For each issue found, use edit_file to make the improvement directly. Prioritize changes by impact:
After all edits, run any available linter or test command to ensure nothing is broken:
# Try common patterns
npm test 2>/dev/null || dotnet test 2>/dev/null || python -m pytest 2>/dev/null || echo "No test runner detected"
Provide a summary listing:
Complete guide to using and extending Hermes Agent — CLI usage, setup, configuration, spawning additional agents, gateway platforms, skills, voice, tools, profiles, and a concise contributor reference. Load this skill when helping users configure Hermes, troubleshoot issues, spawn agent instances, or make code contributions.
Create generative and algorithmic art using code - SVG, p5.js, canvas, and procedural techniques.
Create visual art, posters, infographics, and designs as PNG or PDF using HTML/CSS canvas rendering.
Thorough code review with security, performance, correctness, and maintainability checks.
Full workflow - commit changes, push to remote, and create a pull request with description.
Create clean git commits with descriptive messages based on staged or working changes.