From brewcode
Removes brewcode project files like templates, configs, logs, and plans while preserving task directories and user rules. Supports --dry-run to list files without deletion.
How this skill is triggered — by the user, by Claude, or both
Slash command
/brewcode:teardownhaikuThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<instructions>
Skill arguments received: $ARGUMENTS
If NOT --dry-run: Use AskUserQuestion to confirm before executing:
"This will delete brewcode project files (templates, configs, logs, plans). Task directories are preserved. Proceed?"
EXECUTE using Bash tool — run teardown script:
bash "${CLAUDE_SKILL_DIR}/scripts/teardown.sh" ARGS_HERE && echo "✅ done" || echo "❌ FAILED"
IMPORTANT: Replace ARGS_HERE with the actual value from "Skill arguments received" above. If empty, omit the argument.
STOP if ❌ — check script path exists and teardown.sh has execute permissions.
| Option | Behavior |
|---|---|
--dry-run | List files to delete without removing them |
| (none) | Full removal after user confirmation |
Task directories (.claude/tasks/*_task/) and user rules (.claude/rules/) are always preserved.
# Brewcode Teardown
## Detection
| Field | Value |
|-------|-------|
| Arguments | `{received args or empty}` |
| Mode | `{full or dry-run}` |
## Result
Removed:
✅ .claude/tasks/templates/
✅ .claude/tasks/cfg/
✅ .claude/tasks/logs/
✅ .claude/plans/
✅ .grepai/
✅ .claude/skills/brewcode-review/
Preserved:
⏭️ .claude/tasks/*_task/ (task directories)
⏭️ .claude/rules/ (user rules)
npx claudepluginhub kochetkov-ma/claude-brewcode --plugin brewcodeRemoves files installed by /optimus:init and /optimus:permissions from the project, comparing against plugin templates and always asking before deletion. Skips tests and user-modified files.
Cleans up workspace artifacts: design-refs screenshots, test-results, playwright-report, and temp files. Supports --all and --dry-run flags.
Installs prerequisites like brew, timeout, and jq, scans project structure, and generates adapted templates in .claude/tasks/templates/.