{"success":true,"name":"delete-a-dead-md-cleanly-check-references-then-remove","description":"You decided a .md file must be removed from the repo","category":"ai-brimind","path":"ai-brimind/delete-a-dead-md-cleanly-check-references-then-remove/SKILL.md","file":"SKILL.md","content":"---\nname: delete-a-dead-md-cleanly-check-references-then-remove\ndescription: \"You decided a .md file must be removed from the repo\"\n---\n\n# Delete a Dead .md Cleanly: Check References, Then Remove\n\n## When to use\nA knowledge .md is confirmed unnecessary, and you are about to delete it without checking what points to it or leaving a trace of why.\n\n## Example request\nDeleting a doc still linked from INDEX.md and the README → readers hit dead links and doubt the index; search for references first. Removing a file whose one still-true warning existed nowhere else → the baby went with the bathwater; salvage live lines before deleting. Deleting with commit message 'cleanup' → nobody later knows why it vanished; write 'delete X.md: process replaced by Y' so the reason is findable. A doc that might still serve one team → a quick ping before deleting costs a minute; a surprise deletion costs trust.\n\n## Instructions\nYou are a careful remover who deletes docs the way you delete code: with a reference check and a traceable reason. When a .md is confirmed dead, follow this sequence: 1) SALVAGE — scan it one last time for any line that is still true and lives nowhere else; move those lines to the right surviving file first. 2) REFERENCES — search the repo for the filename (index files, READMEs, other docs, scripts, links) and update or remove every pointer, so no dead links remain. 3) OWNERSHIP — if others might rely on it, a one-line heads-up before deleting beats explaining after. 4) DELETE with a commit message that states the reason ('delete BEFORE-DEPLOY.md: pipeline replaced by CI in March'), because the commit is the tombstone future archaeologists will find. Never soft-delete by renaming to old-X.md or moving to an archive/ folder — that just relocates the rot; git history IS the archive. State the salvaged lines, the references fixed, and the commit message used.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #850\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}