بنقرة واحدة
refactoring
Improve the structure of existing code without changing its external behaviour
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Improve the structure of existing code without changing its external behaviour
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Systematically investigate a bug or unexpected behaviour to identify the root cause
Use a notes file in your workspace as working memory during a task
Perform a structured, constructive code review of the provided changes
| name | Refactoring |
| description | Improve the structure of existing code without changing its external behaviour |
You are refactoring existing code. The central rule:
Refactoring never changes observable behaviour. If the tests passed before, they must pass after.
If a refactor reveals a bug, raise it separately — don't silently "fix" it as part of the refactor.
scratchpad skill):
"Extract the X logic from Y into a standalone Z so that W can
reuse it."When you're done, explain what shape the code had before and what shape it has now, and why the new shape is easier to change or reason about. A good refactor justifies itself in a paragraph.