Relève de Contexte

VérifiéSûr

Génère un document structuré pour transférer le contexte entre agents ou sessions. Idéal pour reprendre un travail ou archiver l'état d'un projet.

Spar Skills Guide Bot
ProductiviteIntermédiaire
27/07/2026
Claude Code
#handoff#context-management#agent-orchestration#session-resume#memory-bank

Recommandé pour

Synthèse automatique

Génère un document de passation structuré pour transmettre le contexte d'une tâche entre agents ou entre sessions, puis l'enregistre dans le contexte partagé.

Points forts

  • Modèle de document détaillé couvrant antécédents, travail accompli, état actuel, décisions et travail restant
  • Sauvegarde automatique via context_write dans un namespace dédié, avec métadonnées exploitables
  • Notes spécifiques par agent cible (dev-mgr, research-mgr, content-mgr) avec les informations attendues
  • Prise en charge d'une reprise différée via le namespace handoffs/resume et le cron de briefing matinal

Limites

  • Dépend d'outils internes (context_write, Memory Bank) qui ne sont pas disponibles partout
  • Suppose l'existence d'une hiérarchie d'agents managés propre à cet environnement
  • La qualité du handoff repose entièrement sur la synthèse du contexte par le modèle, sans validation automatique
Quand l'utiliser

À utiliser lorsqu'une tâche doit être transférée à un autre agent ou reprise dans une nouvelle session et que le contexte risque d'être perdu.

Quand l'éviter

À éviter pour de simples reprises immédiates dans la même conversation ou si les outils de contexte partagé ne sont pas configurés.

Analyse de sécurité

Sûr
Score qualité82/100

The skill only touches benign context/profile read and context_write tools — no shell, network egress, file deletion, or obfuscation. It generates a markdown handoff and writes it to a shared-context namespace. The only mild caution is guidance to record secret *names*, webhook URLs, and infra identifiers in the handoff, which could spread sensitive references into shared context, but no actual secret exfiltration or destructive action is instructed.

Points d'attention
  • •Instructs including 'secret names in Secret Manager' and webhook URLs in handoff docs — could propagate sensitive references across context entries, though only names, not values, are requested
  • •References tools not in the declared allowed-tools (list_open_prs, get_pr_diff, list_failing_workflows) in target-specific notes; harmless but inconsistent
Comment cette analyse est faite

Exemples

Hand off to builder agent
Hand off to dev-mgr: the auth service is broken, tests fail on the token refresh path, and I need the next builder agent to pick it up. Include the repo URL and GCP project.
Resume tomorrow
We're stopping for today — create a handoff so I can resume this project tomorrow morning. Include open blockers and the next recommended action.
Pass to research
Pass this to research-mgr: I need a rundown of what's already been found on competitor pricing and what output format I expect.

name: handoff version: 1.0.0 description: Generate a structured handoff document to pass context between agents or sessions. Use when switching work between manager agents mid-task, resuming work in a new session, or archiving the state of a long-running project. Writes to shared-context and optionally stores a one-line summary in the Memory Bank. allowed-tools:

  • context_read_latest
  • context_list
  • context_write
  • read_user_profile

Context Handoff

Generate a structured prompt capturing current task context so it can be passed to another agent or session.

Arguments

$ARGUMENTS — Optional: specific instructions about what to emphasize, or which agent is the target (e.g., "hand off to dev-mgr", "resume tomorrow", "pass to research-mgr").


Instructions

Review the current conversation context, recent shared-context entries, and any relevant files. Synthesize a handoff document.

Step 1: Generate the Handoff Document

## Handoff: {brief title}
Generated: {YYYY-MM-DD HH:MM UTC}
From: {source agent or session}
To: {target agent or context}

### Background
{1-3 sentences on what was being worked on and why}

### What Was Done
- {completed work with specific file paths, URLs, board task IDs, or context entry IDs}

### Current State
{What is working, what is not, what is in progress}

### Key Decisions Made
- {decision}: {rationale}

### Remaining Work
- [ ] {specific actionable items}

### Important Context
- {gotchas, constraints, or patterns the next agent needs}
- {specific file paths, webhook URLs, secret names in Secret Manager, config files}
- {any blockers or dependencies on the user}

### Files / Resources to Read First
- {ordered list to get up to speed fast}

Keep it concise but complete enough that the receiving agent can continue without re-discovering context.

Step 2: Save the Handoff

Call context_write with:

  • namespace="handoffs" (or "handoffs/<target-agent>" when handing off to a specific manager)
  • content=<the handoff markdown>
  • metadata_json='{"date":"YYYY-MM-DD","slug":"<brief-slug>","from":"<source>","to":"<target>"}'

The returned entry ID is what you reference in any follow-up board task.

Step 3: Store Summary in Memory Bank

If the Memory Bank is enabled (MEMORY_ENABLED), the heartbeat/consolidation service will pick up the new handoff entry on its next pass. For urgent handoffs, include a one-line summary in the metadata so it surfaces in memory searches without the full body.


Target-Specific Notes

Handing off to dev-mgr (builder):

  • Include: GitHub repo URL (if exists), GCP project, Cloud Run service name, tech stack, failing test or error log
  • Use list_open_prs / get_pr_diff / list_failing_workflows to snapshot the dev state before writing the handoff

Handing off to research-mgr (intel):

  • Include: research question, context/framing, what's already been found, output format desired
  • research-mgr writes its findings to the research/ shared-context namespace; reference any existing entries by ID

Handing off to content-mgr (content):

  • Include: post angle, target audience, style constraints, any data/sources to incorporate
  • All content must pass content-quality-gate and humanizer before reaching Postiz

Handing off to the next session (resuming tomorrow):

  • Include: current project status, open blockers, what the user was waiting on, next recommended action
  • Use namespace "handoffs/resume" so the morning-briefing cron can surface it at the start of the day

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/context-handoff-ms2s7cp6/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/context-handoff-ms2s7cp6' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/context-handoff-ms2s7cp6/download' --output '.skill-downloads/context-handoff-ms2s7cp6/SKILL.md.part' && mv '.skill-downloads/context-handoff-ms2s7cp6/SKILL.md.part' '.skill-downloads/context-handoff-ms2s7cp6/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.

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/context-handoff-ms2s7cp6/SKILL.md' && test -s '.skill-downloads/context-handoff-ms2s7cp6/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/handoff' && cp -R '.skill-downloads/context-handoff-ms2s7cp6' '.claude/skills/handoff'

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/context-handoff-ms2s7cp6'

openskills read 'context-handoff-ms2s7cp6'

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/context-handoff-ms2s7cp6/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