원클릭으로
refactor
Examine code, document its design, and collaboratively plan improvements
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Examine code, document its design, and collaboratively plan improvements
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Implement a feature or fix based on a Linear issue
Create well-structured Linear issues, projects, project updates, or initiatives
Validate a filed bug against the source before fixing it — verify every claim, hunt the broader class, find the contract question, and scope the outcome
Disciplined per-commit workflow with Greybeard review, build gates, and Critique loops
Engineering philosophy and work culture principles. Load this skill when making architectural decisions or to understand the team's work principles.
General coding conventions for clean, maintainable code. Always load this skill when writing or reviewing code in any language.
| name | refactor |
| argument-hint | <directory> |
| description | Examine code, document its design, and collaboratively plan improvements |
Use this skill to analyze existing code, produce a structured design document, and collaboratively plan improvements for future implementation.
Before doing anything else, load the philosophy skill. The principles in that skill guide how you evaluate design decisions.
The user has specified a directory to analyze: $ARGUMENTS
If the directory is broad, ask clarifying questions:
Explore the specified directory to understand:
Write a structured markdown document to the current working directory. Choose a filename that reflects what was analyzed.
Document structure:
Overview - What this code does and its role in the larger system
Components - Key parts and their responsibilities
Data Flow - How data moves through the system
Dependencies - What it relies on
Patterns - Design patterns and conventions observed
Observations - Complexity, inconsistencies, or potential concerns (factual, not prescriptive)
After documenting the current state:
Append an Improvement Plan section to the document with:
ast-grep skill should be loaded during execution — it enables bulk AST-based rewrites instead of manual read-edit-write cyclesA single markdown file in the user's current working directory containing both the design analysis and the improvement plan.
From the philosophy skill: