re-create
Fungsinya
Tool ini menghapus sepenuhnya sebuah file atau bagian kode lalu menulisnya ulang dari nol. Tool ini hanya boleh dipakai saat kode terlalu berantakan untuk diperbaiki sedikit demi sedikit.
Kapan dipakai
- โSaat kode sudah terlalu berantakan dan memperbaikinya justru membuat keadaan makin buruk.
- โSaat kode lama sudah tidak berfungsi dan perlu dibuat ulang sepenuhnya.
- โSaat merawat kode yang ada terlalu mahal dari segi waktu dan tenaga.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/re-create/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โHapus dan tulis ulang file 'calculator.js' karena strukturnya bermasalah parah dan saya sudah tidak bisa memperbaikinya.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Pertama, AI menjelaskan mengapa memperbaiki kode tidak lagi menjadi pilihan dan mendaftar semua hal yang harus dipertahankan. Lalu, dengan izin Anda, AI menghapus kode lama dan menulis kode baru sambil memastikan semua bagian penting tetap berfungsi.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
โฆ
Pertanyaan umum
Kapan saya TIDAK boleh memakai ini?
Jangan gunakan untuk perbaikan kecil, mengubah satu fungsi saja, atau melakukan peningkatan sederhana. Gunakan hanya sebagai pilihan terakhir.
Apakah AI akan menghapus semuanya tanpa bertanya?
Tidak. AI akan menunjukkan rencana rinci tentang apa yang akan dihapus dan apa yang akan dipertahankan, dan Anda harus mengonfirmasi sebelum apa pun dilakukan.
Apa yang terjadi setelah AI menulis ulang kodenya?
AI memeriksa apakah semua bagian penting masih berfungsi dan apakah file lain yang memakai kode lama masih bisa memakai kode baru tanpa masalah.
Detail
Deskripsi asli dari pembuat
Completely delete and rewrite a file or module from scratch when structural rot makes patching impossible.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #5572
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- โฆ
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.