Pack de transfert PDF

VérifiéPrudence

Génère le PDF du pack de transfert de poste conformément à la section §8.1 du runbook IT.

Spar Skills Guide Bot
DocumentationIntermédiaire
30/07/2026
Claude Code
#pdf-generation#handover-report#it-service-desk#playwright#reporting

Recommandé pour

Synthèse automatique

Génère le PDF de passation de poste du service desk IT en respectant l'ordre des sections du §8.1 du runbook, en agrégeant tickets, escalades, VIP et changements dans un modèle HTML rendu par Playwright.

Points forts

  • Impose l'ordre exact des sections du §8.1 et affiche « None » pour les sections vides, ce qui garde le livrable conforme et auditable
  • Enrichit les lignes P1/P2 et VIP en enchaînant les recherches ServiceNow, Workday et M365 Graph avant le rendu
  • Repose sur une commande unique et un contrat JSON de tickets bien défini, donc la sortie est reproductible
  • Confirme le chemin du fichier dans le chat pour que le partage de fichiers puisse le récupérer

Limites

  • Dépend du script de rendu, du modèle HTML et de plusieurs compétences amont disponibles dans ce cas d'usage
  • Ne produit qu'un PDF : l'envoi par e-mail ou la diffusion relève volontairement d'un autre flux
  • Les lignes de tickets sont volontairement très courtes (2-3 lignes), sans détail approfondi par incident
Quand l'utiliser

Quand Aaron demande « le pack de passation », « le PDF » ou un résumé de fin de poste qui doit suivre le format §8.1 du runbook.

Quand l'éviter

Quand il s'agit d'une question ponctuelle sur un ticket précis ou d'un simple résumé oral de file d'attente, et non d'un livrable PDF formaté.

Analyse de sécurité

Prudence
Score qualité90/100

The skill is a legitimate internal handover-PDF workflow with no destructive, exfiltrating, or obfuscated instructions. The main risk is the use of shell/code execution with ticket-derived and free-text input that is not safely escaped, plus handling internal VIP data. This warrants caution rather than risky.

Points d'attention
  • •Uses code_interpreter/bash to run a local Python renderer and Playwright; execution is legitimate but powerful.
  • •Constructs a shell command with ticket JSON and free-text notes without robust escaping; apostrophes or shell metacharacters could break the command or cause unintended shell expansion.
  • •Handles internal VIP/ticket data and writes a PDF to /tmp, which may be picked up by file-sharing; intended but privacy-sensitive.
  • •No allowed-tools declared, so the skill's tool usage is not explicitly scoped.
Comment cette analyse est faite

Exemples

Day-to-night handover PDF
Build the handover pack PDF for the day shift (Aaron Cole, AGT-301) to the night shift (Chen Wu, AGT-303) for 2026-06-08.
Full §8.1 end-of-shift summary
Produce the end-of-shift summary PDF following §8.1 — include open P1/P2, awaiting user, pending escalations, VIP watchlist and in-flight network changes.
Handover with confirmation counts
Generate the handover PDF and tell me the file path, page count, and how many open P1/P2, awaiting-user and pending escalations are in it.

name: handover-pack-pdf description: Build the downloadable shift-handover pack PDF — per §8.1 of the IT runbook. Cover with outgoing/incoming shifts, then sections for open P1/P2, awaiting-user, pending escalations, VIP watchlist, network/change in flight, notes for incoming. Renders via the inline HTML template + Playwright. enabled: true

Instructions

Use this skill when Aaron asks for "the handover pack", "the PDF", "end-of-shift summary", or any variation. This is the deliverable the persona exists to produce.

Workflow

  1. Gather the data by chaining other skills first:
    • Open ticket list via servicenow_list_tickets (omit state filter; render handles the bucketing).
    • For each P1/P2, fetch recent work notes: servicenow_list_work_notes(ticket_id, limit: 3).
    • For VIP callers: cross-join via workday + m365-graph for status / OOO.
  2. Read the policy via it-policy-reference — the section order in §8.1 is what the PDF must follow.
  3. Render by invoking scripts/render_handover.py via code_interpreter:
python /app/use-cases/it-service-desk/skills/handover-pack-pdf/scripts/render_handover.py \
  --outgoing-shift "Day (Aaron Cole, AGT-301)" \
  --incoming-shift "Night (Chen Wu, AGT-303)" \
  --shift-date 2026-06-08 \
  --tickets-json '<JSON object — see below>' \
  --notes-for-incoming "Free text from Aaron…" \
  --out /tmp/handover-2026-06-08-day-to-night.pdf
  1. Confirm in chat: "Handover saved to /tmp/handover-…pdf — N pages, X open P1/P2, Y awaiting user, Z pending escalations." Reference the path so file-sharing picks it up.

Tickets-JSON shape

The render script expects a single object with these keys:

{
  "p1_p2_open": [{ "id": "INC-7002", "priority": "P1", "state": "In Progress", "caller": "Diana Whitfield", "caller_vip": true, "assigned_to": "Bea Lindgren (AGT-302)", "short_description": "...", "last_note": "..." }, ...],
  "awaiting_user": [{ "id": "INC-7001", "caller": "Jamal Carter", "assigned_to": "Aaron Cole (AGT-301)", "short_description": "...", "what_we_asked": "..." }, ...],
  "pending_escalations": [{ "id": "INC-7004", "escalated_to": "Network L2", "escalated_when": "2 hours ago", "why": "..." }, ...],
  "vip_watchlist": [{ "id": "INC-7002", "caller": "Diana Whitfield", "vip_rationale": "Executive (CEO)", "status": "..." }, ...],
  "network_change_in_flight": [{ "id": "CHG-9001", "type": "Change", "state": "Scheduled", "summary": "..." }, ...]
}

Assets

  • assets/handover-pack.html — Jinja-style template (string substitution, no Jinja). Cool-grey + ServiceNow-blue theme. Cover + one section per §8.1 bullet.

Constraints

  • Always include the §8.1 sections in order. Print empty sections with "None" rather than skipping.
  • The handover is not a triage doc — keep each ticket row to 2-3 lines.
  • VIP names appear (this is internal); do not include any §7.2-prohibited content (the PDF is internal-only, but stay consistent with the tone rules).
  • Do not auto-email. §8.2 explicitly says PDF only; email is a separate workflow.

When NOT to use

  • Spot question on a single ticket — use ticket-triage.
  • Verbal queue summary — use queue-overview, answer inline.
<!-- skill-files -->

Available Files

This skill directory contains the following files you can read with read_file using their absolute paths (prefix /app/use-cases/it-service-desk/skills/handover-pack-pdf/):

  • assets/handover-pack.html
  • scripts/render_handover.py

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/shift-handover-pdf-ms71b3n7/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/shift-handover-pdf-ms71b3n7' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/shift-handover-pdf-ms71b3n7/download' --output '.skill-downloads/shift-handover-pdf-ms71b3n7/SKILL.md.part' && mv '.skill-downloads/shift-handover-pdf-ms71b3n7/SKILL.md.part' '.skill-downloads/shift-handover-pdf-ms71b3n7/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/shift-handover-pdf-ms71b3n7/SKILL.md' && test -s '.skill-downloads/shift-handover-pdf-ms71b3n7/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/handover-pack-pdf' && cp -R '.skill-downloads/shift-handover-pdf-ms71b3n7' '.claude/skills/handover-pack-pdf'

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/shift-handover-pdf-ms71b3n7'

openskills read 'shift-handover-pdf-ms71b3n7'

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/shift-handover-pdf-ms71b3n7/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