From auto-context
Clear all auto-context data and remove auto-generated sections from CLAUDE.md. Use to start fresh or uninstall auto-context from a project.
How this skill is triggered — by the user, by Claude, or both
Slash command
/auto-context:ac-resetThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Remove all auto-context state from this project. This is a destructive operation.
Remove all auto-context state from this project. This is a destructive operation.
Before proceeding, inform the user what will be deleted:
.auto-context/ directory (all conventions, candidates, anti-patterns, config, session logs)<!-- auto-context:start --> and <!-- auto-context:end -->, inclusive of the markers)Ask: "This will permanently delete all auto-context data. Proceed?"
If the user says no, stop immediately.
Delete the .auto-context/ directory:
rm -rf .auto-context/
Verify removal:
test ! -d .auto-context/ && echo "Data store removed" || echo "WARNING: .auto-context/ still exists"
If .auto-context/ does not exist, report "No data store found" and continue to Step 3.
If CLAUDE.md does not exist, report "No CLAUDE.md found" and skip to Step 4.
If CLAUDE.md exists, check for auto-context markers:
grep -c -F "auto-context:" CLAUDE.md 2>/dev/null || echo "0"
If no markers found (count is 0), report "No auto-context markers found in CLAUDE.md" and skip to Step 4.
If markers exist, remove everything between <!-- auto-context:start --> and <!-- auto-context:end --> (inclusive):
awk '/<!-- auto-context:start -->/{skip=1; next} /<!-- auto-context:end -->/{skip=0; next} !skip{print}' CLAUDE.md > CLAUDE.md.ac-tmp && mv CLAUDE.md.ac-tmp CLAUDE.md
After removal, check if CLAUDE.md is empty or whitespace-only:
if [ ! -s CLAUDE.md ] || ! grep -q '[^[:space:]]' CLAUDE.md 2>/dev/null; then
rm CLAUDE.md
echo "CLAUDE.md was empty after cleanup -- removed"
fi
If CLAUDE.md still has user content, keep it.
Verify no orphaned markers remain:
grep -c -F "auto-context:" CLAUDE.md 2>/dev/null || echo "0"
If orphaned markers remain (corrupted state), remove any lines containing the marker patterns:
grep -v -F "auto-context:start" CLAUDE.md | grep -v -F "auto-context:end" > CLAUDE.md.ac-tmp && mv CLAUDE.md.ac-tmp CLAUDE.md
Tell the user what was cleaned:
.auto-context/ was found and removed (or was already absent)/auto-context:ac-init to re-bootstrap if desired"npx claudepluginhub tumblecat44/auto-context --plugin auto-contextOptimizes Claude Code context-window usage for accuracy and cost. Helps when hitting context limits, structuring prompts, or trimming injected content.
Creates, updates, or optimizes CLAUDE.md files following Anthropic best practices for project context, coding standards, and persistent memory management.
Creates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.