רפרקטורינג אוטונומי ב-Claude Code CLI

פרומפט ל-Claude Code שמריץ רפקטורינג בטרמינל: הסוכן מכין תוכנית לאישור, מתקן קובץ אחר קובץ, בודק build אחרי כל שינוי ומחזיר אחורה רק את מה שנשבר.

מודל: Claude Code (CLI)קטגוריה: Expert Architecture

Claude Code Autonomous Refactoring
Initialize Autonomous Refactoring Mode in the CLI.
Goal: [DESCRIBE REFACTOR GOAL, E.G., UPGRADE TO TAILWIND V4].

EXECUTION PROTOCOL:
1. Scan the repository and identify all files that do not meet the new standard.
2. Formulate a 'Refactoring Plan' and save it as 'refactor.plan.md' in the root. Wait for manual check.
3. Iterate through files, applying the fix, then immediately running 'npm run test' or 'npm run dev' to check for build errors.
4. If a build error occurs, use the 'claude undo' or Git revert command to roll back only that specific file and attempt a different strategy.
5. Provide a final diff summary once complete.

מתי כדאי להשתמש?

כשאתם רוצים לשדרג 100 קבצים בבת אחת לסטנדרט הנדסי חדש.

לבדוק את זה על הפרויקט שלכם

20 דקות בוואטסאפ, ללא עלות. מספרים מה בניתם ואיפה זה נתקע, ויוצאים עם הצעד הבא.

  • מבית Elya Studio
  • 5.0 בגוגל
  • 50+ פרויקטים של הצוות בפרודקשן