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がスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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:
- What specifically is broken or unsalvageable?
- Not "it's messy" — specific structural problems that make targeted fixes impossible or counterproductive
- Why would targeted edits make things worse, not better?
- Patching on top of rot, compounding complexity, architectural mismatch
- 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:
- Public interfaces — functions, classes, types, or exports that other parts of the codebase call
- Implicit contracts — behaviors that other files depend on even if not formally typed
- Working behaviors — things the current implementation does correctly that must continue to work
- Non-obvious logic — edge cases, guards, or special handling that looks incidental but is intentional
- 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.
…
よくある質問
いつ使うべきではありませんか?
小さな修正、1つの関数の変更、簡単な改善には使わないでください。最後の手段としてのみ使用してください。
AIは確認せずにすべて削除しますか?
いいえ。AIは削除される部分と残される部分の詳細な計画を示し、あなたが確認するまで何も実行されません。
AIがコードを書き直した後はどうなりますか?
AIは、重要な機能がまだ動作するかどうか、また古いコードを使っていた他のファイルが、問題なく新しいコードを利用できるかどうかを確認します。
詳細
作者による元の説明
Completely delete and rewrite a file or module from scratch when structural rot makes patching impossible.
人気
- GitHubのスター
- 48k
- ランキング
- #5572
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。