Agent skill
reflect-clear
Clear specific learnings from CLAUDE.md Skill Memories section. Activates for reflect clear, clear learning, remove learning, delete memory.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/reflect-clear
SKILL.md
Reflect Clear Command
Remove specific learnings from CLAUDE.md Skill Memories section.
Usage
# Clear all learnings for a skill
/sw:reflect-clear --skill frontend
# Clear all learnings (with confirmation)
/sw:reflect-clear --all
Arguments
| Argument | Description |
|---|---|
--skill <name> |
Clear all learnings for skill |
--all |
Clear ALL learnings (requires confirmation) |
Examples
Clear Skill Learnings
/sw:reflect-clear --skill frontend
Output:
Clearing learnings for 'frontend' skill...
This will remove 3 learnings from CLAUDE.md:
- "Always use Button component with variant='primary'"
- "Use shadcn/ui for all UI components"
- "Prefer Vercel over Cloudflare for this project"
Type 'yes' to confirm: yes
Cleared 3 learnings from frontend skill.
Clear All Learnings
/sw:reflect-clear --all
Output:
Clear ALL learnings from CLAUDE.md?
This will remove 12 learnings across all skills:
- frontend: 3
- backend: 4
- devops: 2
- general: 3
Type 'yes' to confirm: yes
Cleared 12 learnings.
How It Works
- Reads CLAUDE.md to find the
## Skill Memoriessection - Shows matching learnings for confirmation
- On approval, removes the learnings
- Writes updated CLAUDE.md
Execution
When this command is invoked:
- Read CLAUDE.md to find Skill Memories section
- Show confirmation with what will be deleted
- Edit CLAUDE.md to remove matching learnings on confirmation
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?