rewrite-plan
하는 일
코드를 다시 쓰기 위한 자세한 계획을 만듭니다. 작업을 더 작은 단계로 나누고 각 부분의 담당자를 정해, 변경이 안전하고 검토하기 쉽도록 합니다.
사용하는 경우
- ✓코드의 일부를 체계적으로 다시 써야 할 때.
- ✓여러 수정 단계가 필요한 큰 프로젝트를 시작할 때.
- ✓코드 변경이 안전하고 프로젝트를 깨뜨리지 않도록 할 때.
스킬 링크
https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/rewrite-plan/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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.jsonfromcode-import.token-map/*.jsonfromtoken-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-teststep 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.
댓글
- …
이 저장소의 다른 스킬
sample-plugin
101k에이전트가 테스트용 메타데이터 파일을 만들도록 합니다. 코드가 다양한 상황에서 올바르게 작동하도록 돕습니다.
aster-atelier
101k클래식한 느낌의 예술 웹사이트를 만들도록 에이전트를 돕습니다. 우아한 이미지, 푸른 하늘, 세리프 글꼴로 영화 같은 분위기를 냅니다.
audio-jingle
101k징글(jingle)과 효과음 같은 오디오를 에이전트가 생성하도록 합니다. 음악과 음성을 만들고 결과를 오디오 파일로 저장할 수 있습니다.
blog-post
101k긴 기사나 블로그 글을 쓰도록 에이전트를 돕습니다. 이미지, 인용문, 작성자 정보를 넣을 공간이 포함됩니다.