mem_learn
Record a skill learned from doing a task—trigger, steps, outcome, lessons—and save it as an unapproved skill record pending owner approval.
Instructions
Record a skill learned by doing: what triggered the task, the steps, the outcome (success / partial / failure) and the lessons. WRITES: one record of kind='skill' with Ebbinghaus strength, origin='agent', UNAPPROVED until the owner runs skillmem trust. slug must be new, conventionally 'skill-'; an existing slug with different text is refused (use mem_update), byte-identical text returns the existing skill with its approval intact, applying only the metadata you pass (tags, topics, project). A slug that already holds a note is refused. check_conflicts (default true) refuses a near-duplicate of any record it can see, a plain note included, and names it. Write bilingually (EN+RU) if you work in both — lexical search is per-language. Returns ok and slug. Use mem_write for a plain note or rule; use mem_reinforce afterwards to record whether the skill held up.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Unique slug like 'skill-deploy-nginx'. | |
| tags | No | ||
| steps | Yes | Steps taken to complete the task. | |
| title | Yes | Short skill title. | |
| topics | No | ||
| lessons | No | What to do differently next time. | |
| outcome | Yes | Result: success/partial/failure. | |
| project | No | ||
| trigger | Yes | What situation triggers this skill. | |
| ttl_days | No | ||
| visibility | No | public | |
| check_conflicts | No |