بنقرة واحدة
refactor
Refactor existing code while preserving behavior, keeping changes scoped, and verifying with relevant tests.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Refactor existing code while preserving behavior, keeping changes scoped, and verifying with relevant tests.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Release a new version of the project.
Inspect git status, draft a commit message that matches the repo's style, and commit staged changes.
Ask focused clarifying questions to resolve ambiguous requirements before planning or implementing work.
Explain code, behavior, architecture, or diffs with concrete references to the relevant files.
Diagnose failing tests, determine whether code or tests are wrong, and make the smallest passing fix.
Review current code changes for bugs, regressions, test gaps, and project-guideline violations.
| name | refactor |
| description | Refactor existing code while preserving behavior, keeping changes scoped, and verifying with relevant tests. |
Refactor goal (optional): $ARGUMENTS
Clarify the target. Identify the specific code, behavior, or design issue the user wants improved. If the goal is broad, choose the smallest useful scope and state that assumption before editing.
Establish current behavior. Read the relevant code and tests before changing anything. Prefer existing abstractions and local patterns over new ones.
Plan a behavior-preserving change.
Edit surgically.
Verify behavior.
Report the result. Summarize what changed, why it remains behavior preserving, and which verification commands passed.