一键导入
suggest-improvements
Propose targeted refactoring and readability improvements for reviewed code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Propose targeted refactoring and readability improvements for reviewed code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use this skill to generate well-branded interfaces and assets for AGENT-33, either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.
Scan code for security vulnerabilities and unsafe patterns with remediation guidance.
Review a code diff for correctness, logic errors, and style issues.
Diagnose and explain error messages with root cause analysis and actionable fix steps.
Assist with common git operations including branching, committing, and pull requests.
Lint source code using project-configured linters and auto-fix safe violations.
| name | suggest-improvements |
| version | 1.0.0 |
| description | Propose targeted refactoring and readability improvements for reviewed code. |
| allowed_tools | ["file_ops"] |
| tags | ["code-review","refactoring","readability"] |
After a correctness and security review passes, suggest targeted improvements to code structure, readability, testability, and maintainability. Focus on changes that have a meaningful impact — avoid nitpicking that adds noise without value.
pathlib instead of os.path, use f-strings instead of %
formatting, use dataclasses/pydantic instead of dict-of-dicts).file_ops.## Improvement Suggestions: <scope>
### High Impact
**Readability — utils.py:34-60 — Extract overly long function**
Current: `process_record()` is 27 lines and handles parsing, validation, and
database insertion in a single function.
Suggested: Split into `parse_record()`, `validate_record()`, and `save_record()`
to allow independent testing and reuse.
Rationale: Single-responsibility functions are easier to test, debug, and extend.
### Low Impact
**Modernization — config.py:5 — Use pathlib**
Current: `os.path.join(BASE_DIR, 'data')`
Suggested: `Path(BASE_DIR) / 'data'`
Rationale: pathlib is the idiomatic path API in Python 3.4+.
### Summary
High impact: 1 Medium impact: 0 Low impact: 1