Skill cortex-debug-memory
✓ VerifiedDebug dan jaga kualitas memori dengan cara memberikan rating kegunaan, melindungi informasi penting, menghapus entri yang salah, serta melakukan restore dari checkpoint.
- Bintang GitHub
- 76
- File
- 1
- Commit terakhir
- 12 Nov 2026
- Lisensi
- MIT
- Tool yang diizinkan
- —
Apa fungsi skill cortex-debug-memory?
Debug dan jaga kualitas memori dengan cara memberikan rating kegunaan, melindungi informasi penting, menghapus entri yang salah, serta melakukan restore dari checkpoint.
Ringkasan dibuat dari SKILL.md skill ini.
Tentang skill cortex-debug-memory
Skill ini memungkinkan developer yang mengelola sistem memori kompleks untuk menjaga akurasi recall jangka panjang dari sebuah agent. Skill ini menyediakan rangkaian tool untuk mengaudit, menyempurnakan, dan memperbaiki informasi tersimpan ketika agent memberikan hasil yang usang atau salah. Dengan menggunakan skill ini, sebuah agent dapat mengelola basis pengetahuannya sendiri secara aktif melalui proses rating, proteksi, dan penghapusan.
User dapat meningkatkan kualitas retrieval dengan memberikan rating pada memori sebagai berguna atau tidak berguna untuk melatih metamemory confidence model. Untuk informasi kritis yang tidak boleh hilang, tool anchor akan mengatur level heat secara permanen guna memastikan data tersebut di-inject saat sesi dimulai. Skill ini juga menyertakan tool validation yang memeriksa memori terhadap local filesystem untuk mengidentifikasi referensi ke file yang telah dihapus atau modul yang telah dipindahkan.
Ketika terjadi operasi yang berisiko, sistem checkpoint memungkinkan penyimpanan dan pemulihan state. Ini mencakup checkpoint otomatis yang dibuat sebelum context compaction. Jika agent perlu menghapus data, ia dapat melakukan soft delete untuk menurunkan heat atau hard delete untuk penghapusan permanen, meskipun memori yang dilindungi memerlukan flag force untuk dapat dihapus.
Apa yang bisa dilakukan agent dengannya
- 1Menghapus informasi yang salahHapus memori spesifik yang sudah tidak akurat menggunakan metode soft delete atau hard delete.
- 2Meningkatkan ranking retrievalBerikan feedback pada kegunaan memori untuk menyesuaikan confidence score dan meningkatkan hasil di masa mendatang.
- 3Mencegah degradasi dataPastikan keputusan arsitektur inti tetap tersedia dengan melakukan anchor agar tidak pernah memudar.
- 4Mengidentifikasi referensi usangScan direktori proyek untuk menemukan memori yang mereferensikan file atau modul yang sudah tidak ada lagi.
- 5Membatalkan perubahan memoriRestore state memori ke titik sebelumnya jika operasi pembersihan menyebabkan masalah.
Ditulis dari SKILL.md milik skill tersebut. Setiap use case diverifikasi dengan kutipan darinya.
Cara install skill cortex-debug-memory
Setiap perintah menyalin folder skill ke direktori skills client. Restart client atau mulai sesi baru untuk memuatnya.Install skill cortex-debug-memory di Plugin
/plugin marketplace add cdeust/Cortex /plugin install hypermnesia-mcp@cortex-plugins
Install skill cortex-debug-memory di Claude Code
~/.claude/skills/cortex-debug-memory/SKILL.md
$ npx degit cdeust/Cortex/skills/cortex-debug-memory ~/.claude/skills/cortex-debug-memoryInstall skill cortex-debug-memory di Claude Code (project)
.claude/skills/cortex-debug-memory/SKILL.md
$ npx degit cdeust/Cortex/skills/cortex-debug-memory .claude/skills/cortex-debug-memoryInstall skill cortex-debug-memory di Codex
~/.agents/skills/cortex-debug-memory/SKILL.md
$ npx degit cdeust/Cortex/skills/cortex-debug-memory ~/.agents/skills/cortex-debug-memoryInstall skill cortex-debug-memory di Gemini CLI
~/.gemini/skills/cortex-debug-memory/SKILL.md
$ npx degit cdeust/Cortex/skills/cortex-debug-memory ~/.gemini/skills/cortex-debug-memoryInstall skill cortex-debug-memory di Claude.ai
npx degit cdeust/Cortex/skills/cortex-debug-memory cortex-debug-memory && zip -r cortex-debug-memory.zip cortex-debug-memory # claude.ai → Customize → Skills → + → Create skill → Upload a skill → cortex-debug-memory.zip
Pengecekan otomatis
Berjalan 14 Nov 2026Laporan lengkap →Lolos cek otomatis kami. Ini bukan audit keamanan: baca skripnya sebelum membiarkan agent menjalankannya. Cara kerja checks
- Source repository terhubung dan dapat dijangkaucdeust/cortex/skills/cortex-debug-memory is public and reachablegithub.com/cdeust/cortex/tree/HEAD/skills/cortex-debug-memor ↗Lolos
- Lisensi open source (OSI)MITspdx.org/licenses/MIT.html ↗Lolos
- Ada commit atau release dalam satu tahun terakhirLast commit 2026-11-12github.com/cdeust/cortex/commits ↗Lolos
- Skrip tanpa unduh-lalu-jalankan atau pencurian kredensialNo scripts in the skill folderLolos
- Tidak ada instruksi tersembunyi di SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/cdeust/cortex/blob/HEAD/skills/cortex-debug-memor ↗Lolos
- Tool yang diizinkan otomatis dibatasiNo pre-approved tools; the agent asks before using onegithub.com/cdeust/cortex/blob/HEAD/skills/cortex-debug-memor ↗Lolos
- SKILL.md mengikuti format Agent SkillsValid name and description; says when to use it; 130 linesgithub.com/cdeust/cortex/blob/HEAD/skills/cortex-debug-memor ↗Lolos
SKILL.md
Lihat di GitHubDebug Memory — Fix, Rate, Protect, and Restore
Keywords
debug, fix, bad memory, wrong, delete, forget, protect, rate, quality, restore, checkpoint, undo, stale, incorrect, mark useful, mark not useful, anchor, unprotect
Overview
Tools for maintaining memory quality — rate memories as useful or not, protect critical ones from decay, forget incorrect ones, validate against the filesystem, and restore from checkpoints when things go wrong.
Use this skill when: Recall returns wrong results, memories are stale, you need to undo changes, or you want to improve retrieval quality through feedback.
Workflow
Fix Bad Memories
Soft delete (sets heat to 0, memory still exists but won't surface):
cortex:forget({
"memory_id": <id>,
"hard": false
})
Hard delete (permanent removal):
cortex:forget({
"memory_id": <id>,
"hard": true
})
Protected memories require "force": true to delete.
Rate Memory Quality
Provide feedback to train the metamemory confidence model:
cortex:rate_memory({
"memory_id": <id>,
"useful": true
})
Or mark as not useful:
cortex:rate_memory({
"memory_id": <id>,
"useful": false,
"reason": "outdated — we no longer use this approach"
})
Ratings adjust the memory's confidence score, which affects future retrieval ranking. Over time, this trains the system to surface better results.
Protect Critical Memories
Anchor a memory (heat=1.0 permanently, injected at session start):
cortex:anchor({
"memory_id": <id>,
"reason": "Core architecture decision — never decay"
})
Validate Against Reality
Check if memories reference things that still exist:
cortex:validate_memory({
"directory": "<project root>"
})
Returns a list of stale memories (referencing deleted files, moved modules, etc.) that should be forgotten or updated.
Checkpoint and Restore
Save a checkpoint before risky operations:
cortex:checkpoint({
"action": "save",
"label": "before-cleanup"
})
Restore if something went wrong:
cortex:checkpoint({
"action": "restore",
"label": "before-cleanup"
})
List available checkpoints:
cortex:checkpoint({
"action": "list"
})
Checkpoints are also created automatically before context compaction (via the compaction hook).
Common Issues
Recall returns irrelevant results:
- Rate the bad results as
useful: false - Rate the good results as
useful: true - Check if there are duplicate/conflicting memories on the same topic
- Run
validate_memoryto find stale content
Too many memories on the same topic:
- Run
cortex:consolidate— CLS will merge similar episodic memories into semantic ones - Manually
forgetduplicates
Memory seems wrong/outdated:
- Forget the old memory
- Remember the corrected version
- The knowledge graph will update automatically
Lost important context after compaction:
- Check
cortex:checkpoint({ "action": "list" })for auto-checkpoints - Restore the most recent pre-compaction checkpoint
- Anchored memories survive compaction automatically
Berkas dalam skill ini
1Pertanyaan seputar skill cortex-debug-memory
Bagaimana cara install skill cortex-debug-memory di Claude Code?
Jalankan npx degit cdeust/Cortex/skills/cortex-debug-memory ~/.claude/skills/cortex-debug-memory. Claude Code memuat skill dari ~/.claude/skills (semua proyek) atau .claude/skills (satu proyek) dan menggunakan skill saat deskripsinya cocok dengan tugas.
Client mana saja yang bisa menggunakan skill cortex-debug-memory?
Client apa pun yang membaca format Agent Skills: Claude Code, Codex, Gemini CLI, dan claude.ai (unggah sebagai ZIP). Script dalam skill hanya berjalan di client yang mengizinkan eksekusi kode.
Bagaimana cara mencegah memori memudar atau hilang saat proses compaction?
Anda dapat melakukan anchor pada memori untuk mengatur heat menjadi 1.0 secara permanen, sehingga memori tersebut dipastikan akan di-inject saat sesi dimulai. Memori yang di-anchor juga akan otomatis bertahan selama proses compaction.
Apa perbedaan antara soft delete dan hard delete pada memori?
Soft delete mengatur heat memori menjadi 0 sehingga tidak akan muncul kembali namun tetap ada, sedangkan hard delete melakukan penghapusan secara permanen.
Bagaimana cara memperbaiki hasil yang tidak relevan saat proses recall?
Anda harus memberikan rating tidak berguna pada hasil yang buruk, memberikan rating berguna pada hasil yang baik, memeriksa apakah ada memori yang duplikat atau konflik, dan menjalankan memory validation untuk menemukan konten yang sudah usang.