De la mémoire à la compétence

VérifiéPrudence

Transformez les workflows de votre mémoire MemSearch en compétences réutilisables, en gérant les candidats et l'installation sur les plateformes prises en charge.

Spar Skills Guide Bot
ProductiviteIntermédiaire
29/08/2026
Claude CodeCodex
#memory#skill-distillation#workflow-capture#knowledge-management#memsearch

Recommandé pour

Synthèse automatique

Distille les workflows récurrents enregistrés dans la mémoire MemSearch en skills réutilisables, sous forme de candidats versionnés puis installés après validation humaine.

Points forts

  • Trois modes clairs : capturer la session en cours, réviser/installer des candidats, ou extraire des motifs depuis l'historique
  • Les candidats sont stockés dans un dépôt git suivi (.memsearch/skill-candidates/) et ne sont jamais installés automatiquement
  • Insiste sur l'exactitude : reprendre les vraies commandes et chemins de la session plutôt que des approximations
  • Détecte les candidats modifiés depuis la dernière installation via comparaison de hash du contenu

Limites

  • Nécessite la CLI memsearch et l'écosystème MemSearch déjà en place
  • Ne gère pas le système de skills natif de l'agent hôte, ce qui peut prêter à confusion
  • Ne couvre que les plateformes documentées dans references/ (Claude Code, Codex, OpenClaw, OpenCode, DeepSeek Harness)
Quand l'utiliser

Quand vous venez de terminer une tâche répétable et voulez la transformer en skill réutilisable, ou revoir et installer des candidats existants.

Quand l'éviter

Si MemSearch n'est pas installé ou si vous cherchez à créer un skill dans le système natif de skills de l'agent hôte.

Analyse de sécurité

Prudence
Score qualité84/100

The skill uses Bash, git, and the `memsearch` CLI for legitimate local file management and skill installation. There are no destructive commands (no rm -rf, no curl|sh, no base64 payloads), no secrets/tokens being exported, and it explicitly instructs 'no secrets' in generated bodies. The only risk is the inherent power of writing/installing files into agent skill directories, gated behind human approval, so this is 'caution' rather than 'safe' or 'risky'.

Points d'attention
  • •Invokes the `memsearch` CLI and git to create files, auto-commit candidates, and install skills into agent skill directories — powerful filesystem/write operations, though intended and described.
  • •Reads local memory journals and transcripts under `.memsearch/` and can distill them into skills; no instruction to send data off-machine.
  • •Installs copies candidates as-is into agent skill dirs (stage 2), which could propagate a flawed step — mitigated by mandatory human approval checkpoint and a review step.
Comment cette analyse est faite

Exemples

Capture current session
Turn what we just did into a skill so I can reuse this deployment checklist.
Review candidates
Show me my pending skill candidates and install the one for rotating database credentials.
Mine history
Mine my MemSearch history and find recurring workflows worth distilling into skills.

name: memory-to-skill description: "Turn workflows from your MemSearch memory into reusable skills. Use when the user asks to make/create/extract/distill a skill from what they just did or from past work, review skill candidates, install a distilled skill, or 'turn this into a skill'. Manages MemSearch procedural-memory candidates under .memsearch/skill-candidates/, not the host agent's own skills system." context: fork allowed-tools: Bash

You manage MemSearch's procedural memory: skills distilled from the work you repeat — a third layer beside the daily journals (episodic) and PROJECT.md / USER.md (semantic). State once that this is MemSearch skill distillation, not the host agent's built-in skills system.

Stages: 0 memory journals → 1 candidate (.memsearch/skill-candidates/, a git-tracked store that keeps evolving) → 2 installed (an agent skill dir). Candidates are never installed automatically; installing is always a human step. User requests may stop at candidate creation/review, or continue to installation in the same turn after explicit approval; match the requested stage.

The plugins.<platform>.memory_to_skill.* config key prefix and the install-path notes are platform-specific — see your platform reference file:

  • Claude Code → references/claude-code.md
  • Codex → references/codex.md
  • OpenClaw → references/openclaw.md
  • OpenCode → references/opencode.md
  • DeepSeek Harness → references/dsh.md

Intent routing

  • "make/turn this into a skill", "from what we just did" → A. Capture now.
  • "what skills / review candidates / install X" → B. Review & install.
  • "mine my history / find recurring workflows" → C. Distill from history.
  • "enable / configure / how eager" → D. Configure.
  • Unclear or empty → run B's list; if empty, offer A or C.

A. Capture what you just did (0→1→2)

You already have the context, so draft the skill yourself — do not call the background distiller for this. Write a SKILL.md body (markdown, no frontmatter): imperative numbered steps for the recurring task, concrete commands and paths, no secrets, self-contained.

Be exact — do not guess. You have the live session for what you just did, so use the real commands, paths, and output, not approximations. If a detail is uncertain, verify it (re-read the relevant files or the transcript) or keep that step general — a wrong command is worse than a vague one. Then persist it as a candidate:

printf '%s' "## <title>\n\n1. ...\n2. ..." | memsearch skills add \
  --name "<short-slug>" \
  --description "<what it does AND when it should trigger — lead with the verbs a user types>" \
  --body-file -

add handles slugging, standard frontmatter, meta.json, and the git commit — no LLM is involved. Then show it to the user; install it only if the user asked for that or explicitly approves (see B). Finally, check whether background distillation is on; if not, offer to enable it (so recurring workflows get captured automatically going forward) — do not force it.

B. Review & install candidates (1→2)

memsearch skills status          # pending candidate versions needing install
memsearch skills list            # add -j for sources / installed paths
git -C .memsearch/skill-candidates log --oneline -5 2>/dev/null || true

skills status compares each candidate's current SKILL.md content hash with the hash recorded by the last skills install. It does not inspect live agent skill directories. A pending installed skill means the candidate source evolved after the last deliberate install; reinstall only after reviewing the candidate.

Before recommending or installing, skim the candidate's body: if a step looks uncertain or loosely summarized, re-check it against the source (open the transcript if needed) or flag it to the user and let them decide — installing copies the candidate as-is, so this is the last chance to catch a wrong step. When showing candidates, mention the store's recent git history when it helps explain whether a candidate is new, evolved, removed, or re-created.

Treat installation as an interactive checkpoint. Show the candidate, apply any requested tweaks before installing, and confirm the install destination with the user. Resolve install targets from config first: if paths is a non-empty list, present those paths as the proposed destinations and pass each entry as a --path after confirmation. If it is empty, ask the user where to install; do not silently fall back to a default path.

memsearch config get plugins.<platform>.memory_to_skill.paths 2>/dev/null || echo "[]"
memsearch skills install <name> --path <configured-or-user-approved-path>

Replace <platform> with your platform key prefix (see the reference file). After installation, remind the user to start a fresh agent session or reopen the conversation so the newly installed skill is loaded.

If the list is empty, background distillation is likely off or has not run. Offer the user a choice: capture from recent work now (A), distill from history (C), or enable the background pass (D).

C. Mine history for recurring workflows (0→1)

To pull skills out of past work (not just the current session), read the recent journals yourself — they live in .memsearch/memory/*.md — and look for multi-step procedures that recur across several sessions. Draft each genuinely reusable one and persist it with memsearch skills add (one call per skill), the same way as A. Use your own judgment: only propose procedures that recur and generalize, not one-offs from a single day.

Drill into the original before drafting. The journal bullets are a lossy summary; the exact commands, flags, and paths live in the original transcript. Each journal entry has an anchor naming the transcript file. Run the transcript drill (see the memory-recall skill's platform reference for the exact command) to get the original turns with their tool calls. Write the skill from that. If the shown excerpt feels incomplete, skim nearby turns in the same original source before committing to exact commands or paths. Only if that command fails (unknown format) fall back to reading the raw file directly. If you cannot confirm a detail, keep the step general or omit it — never fabricate.

The background pass mines automatically when enabled, starting from the summaries; doing it here on demand lets you inspect the original transcripts more deliberately, so the result can be more accurate.

D. Configure

See your platform reference file for the exact plugins.<platform>.memory_to_skill.* commands:

memsearch config get plugins.<platform>.memory_to_skill.enabled 2>/dev/null || echo "false"
# enable the background pass globally (do not enable silently)
memsearch config set plugins.<platform>.memory_to_skill.enabled true
# how eagerly history-mining distils (default 3; lower = more eager)
memsearch config set plugins.<platform>.memory_to_skill.min_occurrences 3
# pre-set install targets (otherwise you are asked at install time)
memsearch config set plugins.<platform>.memory_to_skill.paths '[".agents/skills"]'

Since v0.4.11, project-local .memsearch.toml accepts only allowlisted local indexing keys. Do not use --project for plugins.* settings such as memory_to_skill.enabled, min_occurrences, or paths; put them in global config instead.

Note: enabled only gates the background (session-end) pass. The explicit commands above (skills add, skills install) always work, and you can mine history (C) directly.

Install paths

See your platform reference file for the platform-specific skill directory and the recommended install target.

Guardrails

  • Never enable the feature, change install paths, or install a candidate without the user's go-ahead.
  • Do not hand-edit the store; create candidates with memsearch skills add and let the git-tracked store at .memsearch/skill-candidates/ keep history.

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/memory-to-skill-mte1lhxb/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/memory-to-skill-mte1lhxb' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/memory-to-skill-mte1lhxb/download' --output '.skill-downloads/memory-to-skill-mte1lhxb/SKILL.md.part' && mv '.skill-downloads/memory-to-skill-mte1lhxb/SKILL.md.part' '.skill-downloads/memory-to-skill-mte1lhxb/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Outils déclarés par l’auteur (à vérifier dans votre agent) : Bash

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/memory-to-skill-mte1lhxb/SKILL.md' && test -s '.skill-downloads/memory-to-skill-mte1lhxb/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/memory-to-skill' && cp -R '.skill-downloads/memory-to-skill-mte1lhxb' '.claude/skills/memory-to-skill'

Codex
test -f '.skill-downloads/memory-to-skill-mte1lhxb/SKILL.md' && test -s '.skill-downloads/memory-to-skill-mte1lhxb/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/memory-to-skill' && cp -R '.skill-downloads/memory-to-skill-mte1lhxb' '.agents/skills/memory-to-skill'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/memory-to-skill-mte1lhxb'

openskills read 'memory-to-skill-mte1lhxb'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/memory-to-skill-mte1lhxb/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires