본문으로 건너뛰기
Skillpedia
일반 코딩48k · #5389

orchestrate-batch-refactor

하는 일

이 도구는 프로젝트의 큰 코드 변경을 체계적으로 정리하고 실행하도록 돕습니다. 작업을 작은 부분으로 나누고 그 사이의 의존성을 관리해, 모든 것이 안전하고 체계적으로 이루어지도록 합니다.

사용하는 경우

  • ✓변경이 코드의 많은 부분에 영향을 줄 때.
  • ✓변경을 하기 전에 단계를 계획해야 할 때.
  • ✓여러 사람이 서로 다른 부분에서 동시에 작업해야 하는 경우.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/orchestrate-batch-refactor/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/orchestrate-batch-refactor/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“기능을 그대로 유지하면서 성능을 개선하도록 'src/components' 디렉터리에서 대규모 리팩터링을 체계적으로 진행해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

먼저 도구가 변경이 필요한 코드의 모든 부분을 분석합니다. 그다음 작업을 병렬로 할 수 있는 작은 작업으로 나누고, 그 사이의 의존성을 지키는 상세한 계획을 만듭니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Orchestrate Batch Refactor

Overview

Use this skill to run high-throughput refactors safely. Analyze scope in parallel, synthesize a single plan, then execute independent work packets with sub-agents.

When to Use

  • When a refactor spans many files or subsystems and needs clear work partitioning.
  • When you need dependency-aware planning before parallel implementation.

Inputs

  • Repo path and target scope (paths, modules, or feature area)
  • Goal type: refactor, rewrite, or hybrid
  • Constraints: behavior parity, API stability, deadlines, test requirements

When to Use Parallelization

  • Use this skill for medium/large scope touching many files or subsystems.
  • Skip multi-agent execution for tiny edits or highly coupled single-file work.

Core Workflow

  1. Define scope and success criteria.
    • List target paths/modules and non-goals.
    • State behavior constraints (for example: preserve external behavior).
  2. Run parallel analysis first.
    • Split target scope into analysis lanes.
    • Spawn explorer sub-agents in parallel to analyze each lane.
    • Ask each agent for: intent map, coupling risks, candidate work packets, required validations.
  3. Build one dependency-aware plan.
    • Merge explorer output into a single work graph.
    • Create work packets with clear file ownership and validation commands.
    • Sequence packets by dependency level; run only independent packets in parallel.
  4. Execute with worker agents.
    • Spawn one worker per independent packet.
    • Assign explicit ownership (files/responsibility).
    • Instruct every worker that they are not alone in the codebase and must ignore unrelated edits.
  5. Integrate and verify.
    • Review packet outputs, resolve overlaps, and run validation gates.
    • Run targeted tests per packet, then broader suite for integrated scope.
  6. Report and close.
    • Summarize packet outcomes, key refactors, conflicts resolved, and residual risks.

Work Packet Rules

  • One owner per file per execution wave.
  • No parallel edits on overlapping file sets.
  • Keep packet goals narrow and measurable.
  • Include explicit done criteria and required checks.
  • Prefer behavior-preserving refactors unless user explicitly requests behavior change.

Planning Contract

Every packet must include:

  1. Packet ID and objective.
  2. Owned files.
  3. Dependencies (none or packet IDs).
  4. Risks and invariants to preserve.
  5. Required checks.
  6. Integration notes for main thread.

Use references/work-packet-template.md for the exact shape.

Agent Prompting Contract

  • Use the prompt templates in references/agent-prompt-templates.md.
  • Explorer prompts focus on analysis and decomposition.
  • Worker prompts focus on implementation and validation with strict ownership boundaries.

Safety Guardrails

  • Do not start worker execution before plan synthesis is complete.
  • Do not parallelize across unresolved dependencies.
  • Do not claim completion if any required packet check fails.
  • Stop and re-plan when packet boundaries cause repeated merge conflicts.

Validation Strategy

Run in this order:

  1. Packet-level checks (fast and scoped).
  2. Cross-packet integration checks.
  3. Full project safety checks when scope is broad.

Prefer fast feedback loops, but never skip required behavior checks.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
자주 묻는 질문

‘리팩터링’이란 무엇인가요?

외부 동작은 바꾸지 않고 코드의 내부 구조를 개선하는 것입니다. 집의 배선을 정리해서 이해하고 관리하기 쉽게 만드는 것과 같으며, 가전제품의 작동 방식은 바뀌지 않습니다.

‘작업 패킷(work packets)’이란 무엇인가요?

큰 작업을 나눈 작은 과제입니다. 각 패킷은 명확한 목표, 작업할 특정 파일, 다른 작업과 충돌하지 않도록 하는 규칙을 가집니다.

왜 병렬로 분석하나요?

서로 다른 ‘에이전트’(작은 AI 도우미)가 동시에 코드의 서로 다른 부분을 살펴본다는 뜻입니다. 이렇게 하면 범위를 파악하고 변경을 시작하기 전에 위험을 확인하는 속도가 빨라집니다.

상세 정보

작성자의 원본 설명

Plan and execute large refactors with dependency-aware work packets and parallel analysis.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5389
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬