/clubmed-tracking-data:tracking-plan-renderfrom Club Med - Tracking & Analytics
Renders a validated plan.json into Excel, Markdown, and/or PDF. Replicates the Club Med legacy tracking plan Excel layout with improvements (embedded screenshots, origin/confidence column, target anchor). Triggers: '/tracking-plan-render', 'generate excel from plan', 'exporter le plan de tracking', 'render tracking plan', 'générer le fichier excel du plan'.
Ships in Club Med - Tracking & Analytics. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Transforms a validated plan.json into one or more output formats:
The skill checks for required libraries and installs them if missing. You can also install them manually:
# Excel renderer
pip3 install openpyxl pillow
# PDF renderer
pip3 install reportlab
# Markdown renderer — no dependencies
Required versions:
| Library | Min version | Usage |
|---|---|---|
openpyxl | 3.1+ | Excel file generation |
pillow | 10.0+ | Image embedding in Excel cells |
reportlab | 4.0+ | PDF generation |
The skill will print a clear error and stop if a required library is missing and auto-install fails (e.g. no pip access in the environment).
/tracking-plan-render <path/to/plan.json> [--format excel,markdown,pdf]
If --format is omitted, the skill asks which formats to generate.
Input must be a plan.json with meta.status = "ready". If meta.status is
not "ready", the skill stops with an error — run /tracking-plan first.
SKILL (orchestrator)
│ 1. Validate plan.json (meta.status = "ready")
│ 2. Ask formats if not specified
│ 3. Auto-install missing libraries
│ 4. Spawn renderers in parallel
│
├─ SUBAGENT [steps/excel/agent.md] → <plan-name>.xlsx
├─ SUBAGENT [steps/markdown/agent.md] → <plan-name>.md
└─ SUBAGENT [steps/pdf/agent.md] → <plan-name>.pdf
All renderers receive the same inputs and run independently. Wall-clock time = slowest single renderer (not sum).
python3 -c "
import json, sys
plan = json.load(open('${PLAN_FILE}'))
status = plan.get('meta', {}).get('status')
if status != 'ready':
print(f'ERROR: plan.json has status={status}, expected ready.')
print('Run /tracking-plan first to complete the confirmation phase.')
sys.exit(1)
approved = sum(1 for e in plan['entries'] if e.get('_status') == 'approved')
print(f'OK: {approved} approved entries, status=ready')
"
Ask both in a single AskUserQuestion call (2 questions = 2 tabs):
AskUserQuestion(questions: [
{
header: "Formats",
question: "Which formats do you want to generate?",
options: [
{ label: "Excel + PDF + Markdown", description: "All 3 formats in parallel." },
{ label: "Excel only", description: ".xlsx file only." },
{ label: "Markdown only", description: ".md file only." },
{ label: "PDF only", description: ".pdf file only." }
]
},
{
header: "Language",
question: "In which language should the documents be rendered?",
options: [
{ label: "English (default)", description: "All labels, headers and column names in English." },
{ label: "French", description: "Tous les labels en français." }
]
}
])
Default: English if no answer provided.
If the user chose a non-English language, translate the textual fields of the plan before rendering. The payload (JS code) is never translated — only human-readable fields.
Fields to translate per entry:
description — what this event measurestrigger — when it firesrationale — why it was inferred / justificationFields to leave untouched:
event, id, params, payload, origin, confidence, _status, targetTranslate inline and write a temporary <plan-name>.<lang>.json alongside plan.json:
import json, copy
plan = json.load(open(PLAN_FILE))
translated = copy.deepcopy(plan)
# Translate each approved entry's textual fields
for entry in translated["entries"]:
if entry.get("_status") != "approved":
continue
entry["description"] = translate(entry.get("description", ""), lang)
entry["trigger"] = translate(entry.get("trigger", ""), lang)
entry["rationale"] = translate(entry.get("rationale", ""), lang)
# Also translate open questions rationale for rejected entries
for entry in translated["entries"]:
if entry.get("_status") == "rejected":
entry["rationale"] = translate(entry.get("rationale", ""), lang)
translated["meta"]["lang"] = lang
json.dump(translated, open(TRANSLATED_PLAN_FILE, "w"), ensure_ascii=False, indent=2)
The translate() function is Claude itself — process all entries in a single pass,
not one LLM call per field. Build a JSON object of all strings to translate, translate
the whole object at once, then apply results back. Prefer batch over per-field calls.
The translated file is used only for rendering — plan.json (the source of truth) is
never modified.
If lang == "en": skip this step, use plan.json directly as RENDER_PLAN_FILE.
python3 "${SKILL_DIR}/scripts/check_deps.py" --formats "${FORMATS}"
Read each selected agent file, then spawn all in a single message:
# For each selected format, read steps/<format>/agent.md → <AGENT_CONTENT>
# Then spawn all in one parallel call:
Agent(prompt: "<EXCEL_AGENT>\n\nCONTEXT:\n PLAN_FILE=${RENDER_PLAN_FILE}\n OUTPUT_DIR=${OUTPUT_DIR}\n SKILL_DIR=${SKILL_DIR}\n LANG=${LANG}")
Agent(prompt: "<MARKDOWN_AGENT>\n\nCONTEXT:\n PLAN_FILE=${RENDER_PLAN_FILE}\n OUTPUT_DIR=${OUTPUT_DIR}\n SKILL_DIR=${SKILL_DIR}\n LANG=${LANG}")
Agent(prompt: "<PDF_AGENT>\n\nCONTEXT:\n PLAN_FILE=${RENDER_PLAN_FILE}\n OUTPUT_DIR=${OUTPUT_DIR}\n SKILL_DIR=${SKILL_DIR}\n LANG=${LANG}")
# RENDER_PLAN_FILE = translated plan (lang != "en") or original plan.json (lang == "en")
✓ Rendering complete
Excel : <output-dir>/<plan-name>.xlsx
Markdown : <output-dir>/<plan-name>.md
PDF : <output-dir>/<plan-name>.pdf
Files are written alongside plan.json in the same <output-dir>/:
<output-dir>/
plan.json ← source of truth (NEVER modified)
<plan-name>.<lang>.json ← translated plan (only when lang != "en"), temp
<plan-name>.xlsx ← Excel workbook
<plan-name>.md ← Markdown document
<plan-name>.pdf ← PDF for sharing
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub clubmediterranee/ai-core --plugin clubmed-tracking-data5 skills in this plugin
/agent-browserBrowser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction./figma-authenticationGenerates, validates, and persists a Figma personal access token to .claude/settings.local.json (Claude Code local settings). Use this skill whenever a Figma token is needed, missing, expired, or must be refreshed — before any task that calls the Figma API. Triggers on: "generate figma token", "create figma token", "set up figma token", "update figma token", "FIGMA_TOKEN missing", "FIGMA_TOKEN not set", "FIGMA_TOKEN expired", "figma token invalid", "figma authentication", "configure figma access", or any task that requires Figma API access and the token is absent or invalid. Works by checking for an existing valid token first, then auto-login with FIGMA_USERNAME/FIGMA_PASSWORD if available, otherwise falls back to manual login — no manual copy-paste required. Token is stored in .claude/settings.local.json and auto-injected by Claude Code into every shell session.