en un clic
memento-create
// Use when memento-reflect identifies a reusable pattern worth capturing, or when the user explicitly wants to create a new learned skill from a task execution pattern
// Use when memento-reflect identifies a reusable pattern worth capturing, or when the user explicitly wants to create a new learned skill from a task execution pattern
Use when a learned skill has low utility score, has been failing, or the user wants to improve an existing learned skill based on failure analysis
Use when the user wants to remove low-value learned skills, clean up unused skills, or reduce the learned skill library size
Use after completing any significant task to self-evaluate what worked or failed, update learned skill metrics, and discover reusable patterns worth capturing as new skills
Use when the user wants to see an overview of their learned skills, check utility scores, or identify skills that need optimization or pruning
| name | memento-create |
| description | Use when memento-reflect identifies a reusable pattern worth capturing, or when the user explicitly wants to create a new learned skill from a task execution pattern |
Generate a new learned skill from a task execution pattern and register it in the metrics system.
Ask the user:
"Should this be a global skill (available in all projects) or a project skill (only this project)?"
~/.claude/skills/learned-{name}/SKILL.md, metrics to ~/.claude/memento/metrics.json.claude/skills/learned-{name}/SKILL.md, metrics to .claude/memento/metrics.jsonDerive a name from the pattern. Rules:
learned-learned-retry-api-on-timeoutUse this structure:
---
name: learned-{name}
description: Use when {trigger conditions from self-evaluation}
---
# {Skill Name}
> Learned skill -- auto-generated by memento-skills
> Utility: -- (0/0) | Last optimized: never
## When to Use
- {specific trigger situation}
## Procedure
1. {step extracted from successful execution}
## Known Failure Modes
- None documented yet.
## Examples
{core pattern from the task}
Constraints: max 500 words total, description max 500 chars, CSO-optimized triggers ("Use when..." with symptoms not solutions).
Read the appropriate metrics.json (create if missing with default schema). Add:
"learned-{name}": {
"scope": "global or project",
"created_at": "today",
"last_used": "today",
"last_optimized": null,
"usage_count": 0,
"success_count": 0,
"failure_count": 0,
"utility": null,
"optimization_count": 0,
"trigger_log": []
}
Show the generated SKILL.md content and the metrics entry. Write only after user confirms.