{"id":"dead-code","name":"dead-code","summary":"コードベース内の未使用関数や死んだコードを見つけます","body":"# Dead Code Detection\n\nFind unused functions and dead code using TLDR static analysis.\n\n## Quick Start\n\n```bash\n# Scan entire project\ntldr dead .\n\n# Scan specific directory\ntldr dead src/\n\n# Specify entry points (functions to exclude from analysis)\ntldr dead . --entry main cli test_\n\n# Specify language\ntldr dead . --lang python\ntldr dead . --lang typescript\n```\n\n## Output Format\n\n```\nDead code analysis:\n  Total functions: 150\n  Dead functions: 12\n\nUnused functions:\n  - old_helper (src/utils.py:42)\n  - deprecated_func (src/legacy.py:15)\n  - _unused_method (src/api.py:230)\n```\n\n## Cross-Platform\n\nWorks on Windows, Mac, and Linux (including WSL).\n\n```bash\n# Windows (PowerShell)\ntldr dead .\n\n# Mac/Linux\ntldr dead .\n```\n\n## Entry Points\n\nFunctions matching entry patterns are excluded from dead code analysis:\n- `main`, `cli` - Application entry points\n- `test_*`, `*_test` - Test functions\n- `setup`, `teardown` - Fixtures\n- `@app.route`, `@api.endpoint` - Framework handlers\n\n```bash\n# Custom entry points\ntldr dead src/ --entry main api_handler background_job\n```\n\n## Integration\n\nThis skill replaces the session-start-dead-code hook with on-demand analysis.\n\n| Approach | Pros | Cons |\n|----------|------|------|\n| Hook (removed) | Automatic | Slowed startup by 3s |\n| Skill (this) | On-demand, fast | Manual invocation |\n\n## Related Commands\n\n```bash\n# Impact analysis (who calls this?)\ntldr impact func_name .\n\n# Architecture layers\ntldr arch src/\n\n# Full codebase structure\ntldr structure . --lang python\n```","author":"@parcadei","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/parcadei/Continuous-Claude-v3/tree/main/.claude/skills/dead-code","license":"MIT","category":"coding","lang":"en","tokens":388,"stars":0,"calls30d":1,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[],"requires":{"mcp":[],"tools":["Bash"]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":false,"networkEndpoints":[]}}