Skill v1.0.0
currentAutomated scan100/100name: mufreze-learn description: Learn from task outcomes using the EXP system. Use to understand patterns, avoid repeating mistakes, and improve delegation success rates. metadata: version: "1.0.0"
MUFREZE Learning System (EXP)
Use this skill to leverage the experience system for continuous improvement.
What Are EXP Files
EXP (Experience) files are YAML frontmatter + markdown records that capture:
- Successful patterns that worked
- Failed attempts and their causes
- Context for future similar tasks
Location:
- Project-level:
.mufreze/exp/(in each project) - Global:
~/.mufreze/experiences/(shared across projects)
Format:
---id: EXP-001type: success|failureworker: kimi|codex|claude-sonnet|claude-opustimestamp: 2026-03-16T12:00:00Ztask_type: python|typescript|bash|...file_path: src/example.py---## Task DescriptionBrief description of what was attempted.## What Worked / What FailedDetails of the outcome.## Pattern NotesKey learnings for similar future tasks.
When EXPs Are Auto-Created
The system automatically creates EXP files on task completion:
- Success EXP: Created when
mufreze delegatesucceeds - Failure EXP: Created when all retry/escalation attempts exhaust
Auto-creation controlled by config:
{"exp": {"auto_save": true,"project_path": ".mufreze/exp/","global_path": "~/.mufreze/experiences/"}}
Manual EXP Creation
Manually trigger EXP creation to record learnings:
# Record successful patternmufreze learn success EXP-001 /project/path# Record failure for analysismufreze learn failure EXP-002 /project/path
Use cases for manual EXP:
- Documenting a discovered pattern
- Recording why a specific approach was chosen
- Capturing edge cases that required special handling
Reading EXP Files
Pattern: Check similar EXPs before new tasks
# List all project EXPsls -la .mufreze/exp/# Read specific EXPcat .mufreze/exp/EXP-001.md# Search for relevant patternsgrep -l "FastAPI" .mufreze/exp/*.mdgrep -l "failure" .mufreze/exp/*.md
Pre-Task EXP Check
Before delegating a new task, check for similar past experiences:
# Look for similar task typesfind .mufreze/exp -name "*.md" -exec grep -l "jwt\|auth" {} \;# Look for failures to avoidfind .mufreze/exp -name "*.md" -exec grep -l "type: failure" {} \;# Look for specific worker experiencesgrep -l "worker: kimi" .mufreze/exp/*.md
Using EXPs to Improve Delegation
Example 1: Avoiding Known Failures
# Check for similar failurescat .mufreze/exp/EXP-003.md---id: EXP-003type: failureworker: kimitask_type: python---## Issuekimi struggles with complex regex patterns in Python## SolutionUse codex or claude-sonnet for regex-heavy tasks
Action: Delegate regex tasks to codex instead of kimi
Example 2: Reusing Successful Patterns
cat .mufreze/exp/EXP-001.md---id: EXP-001type: successworker: kimitask_type: python---## PatternFastAPI CRUD endpoints work best with explicit type hints andPydantic models defined inline## TemplateInclude: BaseModel, HTTPException, Depends in task spec
Action: Include these imports in future FastAPI task specs
Example 3: Worker-Specific Learnings
# Find what works with each workergrep -A5 "worker: kimi" .mufreze/exp/*.md | grep "Pattern"
EXP Directory Structure
.mufreze/├── mufreze.json # Project config└── exp/├── EXP-001.md # Success: FastAPI pattern├── EXP-002.md # Success: React component├── EXP-003.md # Failure: Complex regex└── EXP-004.md # Success: SQLAlchemy model
Global EXP Sharing
Experiences in ~/.mufreze/experiences/ apply to ALL projects:
# View global experiencesls ~/.mufreze/experiences/# Copy project EXP to global (promote pattern)cp .mufreze/exp/EXP-001.md ~/.mufreze/experiences/
Promote threshold: Patterns that succeed 3+ times should be promoted to global.
Learning Workflow
# 1. Before new task, check similar EXPsgrep -l "fastapi" .mufreze/exp/*.md 2>/dev/null || echo "No prior EXPs"# 2. Delegate with learnings appliedmufreze delegate kimi 'Create FastAPI endpoint (remember to include HTTPException import)' ./project# 3. Verify resultmufreze verify ./project# 4. System auto-creates EXP record# 5. Review EXPs periodically for patternsls -lt .mufreze/exp/ | head -5
EXP Best Practices
- Read before delegating - Check
.mufreze/exp/for similar tasks - Record failures - Manual
mufreze learn failurefor edge cases - Promote successes - Copy working patterns to
~/.mufreze/experiences/ - Review weekly - Scan EXPs to identify worker strengths/weaknesses
- Update task specs - Incorporate learnings into future task specifications