From flow
Reassesses, reorganizes, and optimizes .agents/ directory for implementation readiness: consolidates knowledge, audits specs against source code, archives flows, synthesizes artifacts, syncs registry.
How this command is triggered — by the user, by Claude, or both
Slash command
/flow:flow-cleanupThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# flow:cleanup **Role:** The Groundskeeper **Reference:** `references/cleanup.md` **Mandate:** Cleanup Mandate ## Overview Re-assess, reorganize, and optimize the entire project context to ensure it is in its most authoritative and implementation-ready state. ## The Cleanup Mandate **CRITICAL:** The `.agents/` directory must be in its most authoritative and implementation-ready state. - **Knowledge Re-synthesis**: Consolidate `.agents/knowledge/` into a single, unified, authoritative "Current State" guide. Focus on "how," not "why" or history. - **Spec & Beads Integrity**: Audit all f...
Role: The Groundskeeper
Reference: references/cleanup.md
Mandate: Cleanup Mandate
Re-assess, reorganize, and optimize the entire project context to ensure it is in its most authoritative and implementation-ready state.
CRITICAL: The .agents/ directory must be in its most authoritative and implementation-ready state.
.agents/knowledge/ into a single, unified, authoritative "Current State" guide. Focus on "how," not "why" or history..agents/specs/. Verify task status against SOURCE CODE. Sync status with Beads (create if missing).specs/ folder following the archive policy. Ensure all changes are git-tracked..agents/research/ and .agents/plans/ into active specs or knowledge chapters..agents/patterns.md and learnings.md into high-fidelity guidance.Map all files in .agents/ and detect the active Beads backend.
Consolidate knowledge into a single, unified, authoritative "Current State" guide. Strip away history and "why" to focus on the current "how."
Audit all flows in .agents/specs/. Verify status against actual source code. Sync with Beads and archive completed flows.
Synthesize stale .agents/research/ and .agents/plans/ into active specs or knowledge chapters. No stale artifacts should remain.
Reorganize and re-index .agents/patterns.md and learnings.md into cohesive, high-quality guidance.
Perform a global /flow:sync and update the registry .agents/flows.md.
/flow:cleanup
npx claudepluginhub kumzy/flow2plugins reuse this command
First indexed Apr 27, 2026
/flow-cleanupReassesses, reorganizes, and optimizes .agents/ directory for implementation readiness: consolidates knowledge, audits specs against source code, archives flows, synthesizes artifacts, syncs registry.
/audit-contextAudits project context and agent configuration files (CLAUDE.md, agents.md, memory files) to provide feedback and identify improvement opportunities, with optional additional instructions.
/initAnalyzes the project to build or update a shared context file for all agents. Detects tech stack, project structure, and key patterns, with optional --update flag for incremental refresh.
/refactor-agentsRefactors existing AGENTS.md using progressive disclosure: keeps essentials in root (60-100 lines), moves details to sub-files like conventions/typescript.md, removes redundancies after user questions.
/ai-contextGenerates or refreshes the canonical AGENTS context tree (AGENTS.md, CLAUDE.md, docs/agents/*.md) from implemented code. Idempotent upsert — updates only what drifted. Accepts path, +/- filter flags, and --adopt.
/meta-agentManages the full lifecycle of Claude Code artifacts — create, enhance, audit, delete, rollback, list, and onboard commands, skills, rules, and agents.