Add intelligent cleanup command with mainline detection and artifact discovery

- Introduced the `/workflow:clean` command for intelligent code cleanup.
- Implemented mainline detection to identify active development branches and core modules.
- Added drift analysis to discover stale sessions, abandoned documents, and dead code.
- Included safe execution features with staged deletion and confirmation.
- Documented usage, execution process, and implementation details in `clean.md`.
This commit is contained in:
catlog22
2026-01-22 23:19:54 +08:00
parent be89552b0a
commit 97ab82628d
2 changed files with 1005 additions and 581 deletions

1005
.codex/prompts/clean.md Normal file

File diff suppressed because it is too large Load Diff