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

re-create

하는 일

이 도구는 파일이나 코드 부분을 완전히 삭제하고 처음부터 다시 작성합니다. 코드가 너무 복잡해서 조금씩 고칠 수 없을 때만 사용해야 합니다.

사용하는 경우

  • ✓코드가 너무 복잡해서 고치면 오히려 상황이 나빠질 때.
  • ✓기존 코드가 더 이상 작동하지 않아 전부 다시 만들어야 할 때.
  • ✓현재 코드를 유지하는 데 시간과 노력이 너무 많이 들 때.

스킬 링크

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

AI에게 요청하는 예시

“구조적인 문제가 심각해서 더 이상 고칠 수 없는 'calculator.js' 파일을 삭제하고 다시 작성해 주세요.”

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

작동 방식

먼저 AI는 고치는 것이 더 이상 방법이 아닌 이유를 설명하고, 반드시 보존해야 할 모든 것을 나열합니다. 그다음 여러분의 허락을 받아 기존 코드를 삭제하고 새 코드를 작성하며, 중요한 기능이 여전히 작동하는지 확인합니다.

기술 내용 (원본 SKILL.md)

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

re-create — Controlled Erasure & Rebuild Protocol

Overview

Hollow Purple is Gojo's most destructive technique — blue and red combined into total erasure of the target. But Gojo doesn't use it carelessly. He knows exactly what he's erasing and why. Same here: this skill is the nuclear option, invoked only when patching is the wrong call, executed with full control over what gets erased and what must survive.

Rewrites are dangerous not because rebuilding is hard, but because it is easy to silently erase behavior that was working and expected. This skill enforces a complete inventory of what must survive before a single line is deleted, and a full verification that everything survived after the rebuild.


When to Use This Skill

  • Use when a file, module, or component needs to be completely deleted and rewritten from scratch
  • Use when structural rot is so deep that individual fixes would only make it worse
  • Use when accumulated technical debt makes the code unmaintainable
  • Use when the target is fundamentally broken and beyond saving
  • DO NOT use for partial refactors, single-function fixes, or targeted edits

How It Works

PHASE 1 — Justify the Erasure

The AI must prove that a full rewrite is necessary. It must answer all of the following:

  1. What specifically is broken or unsalvageable?
    • Not "it's messy" — specific structural problems that make targeted fixes impossible or counterproductive
  2. Why would targeted edits make things worse, not better?
    • Patching on top of rot, compounding complexity, architectural mismatch
  3. What is the concrete cost of keeping the current implementation?
    • Maintenance burden, bug surface, performance, developer velocity

If the AI cannot clearly answer all three, it must fall back to targeted edits instead of a rewrite. A rewrite is not a reward for messy code — it is a last resort.

The bar is high. "This code is ugly" does not justify hollow purple. "The architecture assumes X but the system now requires Y and every patch makes the mismatch worse" does.


PHASE 2 — Read the Target Completely

Before proposing deletion, the AI must read the entire target (file, module, or component) in full.

The AI must identify and catalog:

  1. Public interfaces — functions, classes, types, or exports that other parts of the codebase call
  2. Implicit contracts — behaviors that other files depend on even if not formally typed
  3. Working behaviors — things the current implementation does correctly that must continue to work
  4. Non-obvious logic — edge cases, guards, or special handling that looks incidental but is intentional
  5. Blast radius — every file in the codebase that imports from or depends on the target

The AI cannot skip this phase even if it has read the file before. The purpose is not familiarity — it is building the Preservation List.


PHASE 3 — Erasure Declaration (User Must Confirm)

The AI outputs a complete erasure plan and waits for user confirmation before deleting or writing anything.

HOLLOW PURPLE — ERASURE PLAN
─────────────────────────────────────────
TARGET FOR ERASURE:
  [file path or module name]

WHY TARGETED FIXES ARE WRONG:
  [specific justification — architectural rot, fundamental mismatch, etc.]

PRESERVATION LIST (must survive the rewrite):
  - [public interface / export 1] → [what it does, who depends on it]
  - [public interface / export 2] → [what it does, who depends on it]
  - [working behavior 1]          → [what it does, why it must be kept]
  - [non-obvious logic 1]         → [what it guards against]

BLAST RADIUS (files that depend on the target):
  - [file path] → depends on [what specifically]
  - [file path] → depends on [what specifically]

NEW IMPLEMENTATION PLAN:
  [Description of what the rebuild will look like — structure, approach, key decisions]

WHAT WILL NOT BE PRESERVED:
  [Anything intentionally dropped and why — dead code, deprecated behavior, etc.]
─────────────────────────────────────────
Confirm to proceed with erasure and rebuild.

Nothing is deleted until the user explicitly confirms. A reply of "yes", "confirmed", "do it", or equivalent counts. Silence does not.


PHASE 4 — Controlled Erasure

User confirms → the target is deleted. Rules for this phase:

  • Delete cleanly. Not commented out, not renamed to _old, not archived in place — deleted.

…

자주 묻는 질문

언제 이 도구를 쓰면 안 되나요?

사소한 수정, 함수 하나 변경, 간단한 개선에는 쓰지 마세요. 최후의 수단으로만 사용해야 합니다.

AI가 허락 없이 모든 것을 삭제하나요?

아니요. AI는 무엇을 삭제하고 무엇을 남길지 자세한 계획을 보여 주며, 무엇이든 일어나기 전에 여러분이 확인해야 합니다.

AI가 코드를 다시 쓴 후에는 무엇을 하나요?

AI는 중요한 기능이 여전히 작동하는지, 그리고 예전 코드를 쓰던 다른 파일이 문제없이 새 코드를 쓸 수 있는지 확인합니다.

상세 정보

작성자의 원본 설명

Completely delete and rewrite a file or module from scratch when structural rot makes patching impossible.

repo: sickn33/agentic-awesome-skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬