Deadcode

Detect and optionally remove dead code in the Go codebase. Usage: /deadcode [fix] [<path>]

future-architect b89171e 868 B Updated

File contents

/deadcode — Dead Code Detection & Removal

Full specification: See .github/prompts/deadcode.prompt.md for the complete detection procedure, classification rules, output format, and safety rules.

Quick Reference

  • Audit mode (default): /deadcode — detect and report only
  • Fix mode: /deadcode fix — detect, remove SAFE items, confirm CAREFUL items
  • Scoped: /deadcode internal/infrastructure/ — limit to a package path
  • Detection: go vet, go build, deadcode ./..., go mod tidy -v, manual grep
  • Classify: SAFE / CAREFUL / RISKY
  • After each removal batch: go build ./... && go test ./... && go vet ./...
  • Never auto-remove pkg/uzomuzo/ public API or reflect/generate/linkname targets

future-architect/uzomuzo-oss/tree/main/.claude/skills/deadcode commit b89171e5f4

Frequently asked questions

npx skillmds@latest add future-architect/deadcode