بنقرة واحدة
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 المهني
| 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
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.