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

rewrite-plan

하는 일

코드를 다시 쓰기 위한 자세한 계획을 만듭니다. 작업을 더 작은 단계로 나누고 각 부분의 담당자를 정해, 변경이 안전하고 검토하기 쉽도록 합니다.

사용하는 경우

  • ✓코드의 일부를 체계적으로 다시 써야 할 때.
  • ✓여러 수정 단계가 필요한 큰 프로젝트를 시작할 때.
  • ✓코드 변경이 안전하고 프로젝트를 깨뜨리지 않도록 할 때.

스킬 링크

https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/rewrite-plan/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“웹사이트의 인증 부분을 다시 쓰기 위한 계획을 만들어 주세요. 각 파일의 담당을 명확히 정해 주세요.”

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

작동 방식

기존 코드와 디자인을 분석해 로드맵을 만듭니다. 이 로드맵에는 작업 목록, 각 작업을 맡을 담당자, 관련 위험이 들어가서 모든 것이 단계별로 진행되도록 합니다.

기술 내용 (원본 SKILL.md)

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

Rewrite plan

Spec §20.3 / §21.3.2: scenario 4 (design → deliverable production code) requires a contract-shaped rewrite plan before the agent starts editing files. The plan is the audit trail every subsequent stage references; without it the patch path slides into "refactor everything that looks wrong" and the build breaks in unreviewable ways.

Inputs

  • code/index.json from code-import.
  • token-map/*.json from token-map.
  • The active design system DESIGN.md (already in prompt).
  • The user's tune intent (typically a short brief).

Output

project-cwd/
└── plan/
    ├── plan.md           # human-readable narrative
    ├── ownership.json    # { file: '...', layer: 'leaf' | 'shared' | 'route' | 'shell' }
    ├── steps.json        # ordered { id, files[], rationale, risk: 'low' | 'medium' | 'high' }[]
    └── meta.json         # { generatedAt, atomDigest, tokenMapDigest }

steps.json is the input patch-edit reads one entry per iteration. ownership.json is the source of truth for "which files belong to a single component vs. shared infrastructure"; patch-edit refuses to touch a shell-tier file unless the matching step has risk: 'high' and the user explicitly confirmed.

Convergence

The atom completes when plan.md is non-empty AND steps.json contains at least one step.

Anti-patterns the prompt fragment forbids

  • Plans that include "rewrite the whole component library" as a single step. Break into per-component steps.
  • Plans that don't classify ownership.
  • Plans that don't list a build-test step at the end.

Status

Implemented by the daemon runner in apps/daemon/src/plugins/atoms/rewrite-plan.ts. It classifies ownership and writes plan.md, steps.json, and ownership.json.

자주 묻는 질문

코드를 다시 쓰기 전에 계획이 왜 중요한가요?

계획은 에이전트가 '한 번에 모두 고치려는' 것을 막아 줍니다. 그렇게 하면 프로젝트가 이해하기 어려운 방식으로 망가질 수 있습니다. 변경을 통제되고 안전하게 하도록 보장합니다.

'ownership boundaries'는 무엇인가요?

특정 구성 요소에 속한 코드 부분과 일반적인 용도로 쓰이는 부분을 정의합니다. 작업을 정리하고 충돌을 피하는 데 도움을 줍니다.

단계가 너무 위험하면 어떻게 되나요?

계획은 위험이 큰 단계를 찾아냅니다. 이런 단계에서는 에이전트가 변경하기 전에 명시적인 확인을 요청하여, 사용자가 알고 동의하도록 합니다.

상세 정보

작성자의 원본 설명

Author a long-running multi-file rewrite plan that subsequent patch-edit + diff-review + build-test stages will execute, with explicit ownership boundaries and patch-safety guarantees.

repo: nexu-io/open-design

인기도

GitHub 스타
101k
순위
#988
라이선스
Apache-2.0
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬