Cycle d'amélioration de compétence

VérifiéPrudence

Exécute un cycle d'évaluation-amélioration-documentation sur la compétence de traçage. Crée des entrées de galerie et des commits atomiques.

Spar Skills Guide Bot
DeveloppementAvancé
29/08/2026
Claude Code
#plotting#skill-evaluation#iteration#git-commits#data-visualization

Recommandé pour

Synthèse automatique

Exécute un cycle unique évaluation–amélioration–documentation sur la skill de tracé : notation de l'état courant, choix d'un ou deux axes d'amélioration, édition ciblée des patterns, puis vérification par analyse statique et génération de graphiques en conteneur avant un commit atomique.

Points forts

  • Garde-fous explicites : 3 itérations maximum sans retour humain, aucune suppression de patterns, appels de style (set_theme, despine) immuables et un commit atomique réversible par itération.
  • Injecte l'état réel du dépôt avant décision : score d'évaluation, derniers runs clean-room, entrées de galerie récentes, branche courante et trois derniers commits.
  • Impose de rédiger un tableau « changements proposés » avec fichier, description et niveau de confiance avant toute modification.
  • Vérification en deux temps : conformité de style via evaluate_skill.py puis génération de graphiques dans un conteneur Docker, suivie d'une évaluation visuelle structurée (observer, puis comparer à style-reference.md).

Limites

  • Fortement couplée à l'arborescence et aux scripts d'un dépôt précis (.claude/skills/plotting, evaluate_skill.py, chart-test-container.sh, Docker) : peu réutilisable telle quelle ailleurs.
  • Plafonnée à 3 itérations sans intervention humaine et à 1-2 zones d'amélioration par cycle, ce qui exclut les refontes massives.
  • L'évaluation visuelle des PNG reste subjective et dépend de la capacité du modèle à lire les images générées.
Quand l'utiliser

Pour améliorer méthodiquement, un cycle à la fois, une skill de graphiques matplotlib/seaborn existante tout en conservant des preuves de non-régression.

Quand l'éviter

À éviter si vous voulez créer une skill de tracé de zéro, refondre massivement ses patterns ou l'exécuter hors de son dépôt d'origine.

Analyse de sécurité

Prudence
Score qualité82/100

The skill uses powerful local tooling—Git, Docker, and repo scripts—for a legitimate plotting/evaluation workflow. Its guardrails limit destructive changes and commits are atomic/revertible, but the broad Bash(git *) and Bash(docker *) permissions and autonomous commit behavior warrant caution rather than a fully safe rating.

Points d'attention
  • •Broad allowed-tools include Bash(git *) and Bash(docker *), which permit arbitrary git/docker commands if the agent ignores the stated guardrails.
  • •Executes local repository scripts via `uv run scripts/evaluate_skill.py` and `scripts/chart-test-container.sh`, so safety depends on the integrity of those external scripts.
  • •Autonomous mode can create branches and commits without human review, up to 3 iterations.
  • •No evidence of secret exfiltration, destructive filesystem commands, obfuscated payloads, or safety-disabling instructions.
Comment cette analyse est faite

Exemples

Single focused iteration
/iterate tick marks — run one cycle on the plotting skill and prioritize tick mark improvements.
Quick verification cycle
/iterate --quick — run a quick evaluation-improvement-documentation cycle on the plotting skill using the 3-prompt container test.
Three staged iterations
/iterate --iterations 3 legend styling — run three cycles on a staging branch, then merge once the gallery entries and commits are in place.

description: Run a single evaluation-improvement-documentation cycle on the plotting skill. Creates gallery entries and atomic commits. argument-hint: [--iterations N] [--quick] [focus area] disable-model-invocation: true allowed-tools: Bash(uv run ), Bash(scripts/), Bash(git *), Bash(mkdir *), Bash(cp *), Bash(ls *), Bash(docker *)

Iterate Skill

Run a single evaluation-improvement-documentation cycle on the plotting skill.

Guardrails

  • Max 3 iterations without human feedback
  • No destructive changes — add/modify only, never delete patterns
  • Style invariants — sns.set_theme() and sns.despine() calls are immutable
  • Rollback — each iteration is an atomic commit; git revert any single one

Current State

Evaluation score: !uv run scripts/evaluate_skill.py 2>&1 || true

Latest clean-room runs: !ls -1t logs/clean-room/ 2>/dev/null | head -5 || echo "No runs yet"

Current gallery entries: !ls -1d gallery-archive/[0-9]* 2>/dev/null | tail -5 || echo "None"

Git branch: !git branch --show-current

Recent commits: !git log --oneline -3

Arguments

Parse $ARGUMENTS for:

  • --iterations N (1-3): Run N cycles on a staging branch, merging at the end. Default: 1 (no branch).
  • --quick: Use --quick flag for chart-test-container.sh (3 prompts instead of 5).
  • Remaining text: Focus area hint (e.g., "tick marks", "P9 spelling"). Prioritize this in Step 2.

${ARGUMENTS ? **User input:** ${ARGUMENTS} : ""}

Workflow

Step 1: Evaluate Current State

  1. Read the skill files:

    • .claude/skills/plotting/SKILL.md
    • .claude/skills/plotting/style-reference.md
    • The pattern files in .claude/skills/plotting/patterns/
  2. Review the injected evaluation score above — note any failures or style compliance gaps.

  3. If previous clean-room results exist (logs/clean-room/latest/), read each PNG and perform a Visual Evaluation (see protocol in Step 5 item 3). Record visual observations as the qualitative baseline.

Step 2: Identify Improvements

Select 1-2 areas for improvement. If a focus area was provided in arguments, prioritize it. Otherwise prioritize in this order:

  1. Style compliance gaps flagged by evaluate_skill.py
  2. Visual issues identified during Step 1 evaluation (layout, readability, color, spacing)
  3. Pattern inconsistencies (different annotations, missing legend styling)
  4. Code quality issues (deprecated API calls, unclear variable names)
  5. Visual polish and refinements

If a pattern shows inconsistent visual quality across recent runs, consider running /variation-analysis PN for targeted quality checks instead of ad-hoc fixes.

Do NOT:

  • Delete existing patterns
  • Change sns.set_theme(font_scale=1.0, style="whitegrid", font="DejaVu Sans") — this is immutable
  • Change sns.despine(left=True, bottom=True) — this is immutable
  • Make changes that affect more than 3 patterns at once

Step 3: Propose Changes

Write the proposed changes BEFORE making them. Create a structured evaluation:

## Proposed Changes
| Pattern | File | Change | Confidence |
|---------|------|--------|------------|
| P3 | patterns/P3-time-series.md | Added rolling window annotation | High |

Step 4: Apply Changes

Make targeted edits to skill files in .claude/skills/plotting/.

Step 5: Verify

  1. Run static analysis for style compliance:

    uv run scripts/evaluate_skill.py --check-renders
    
  2. Run the container-based skill test (Claude Code generates charts from minimal prompts in a Docker clean room):

    scripts/chart-test-container.sh --quick
    
  3. Visual Evaluation — for each generated PNG, perform this sequence IN ORDER. Write your observations into the gallery README (Step 6).

    Observe: Describe what you see in 2-3 sentences. Layout, colors, text, spacing, composition. No judgments yet — just describe what is there.

    Compare: Open style-reference.md and note any gaps:

    • Typography: readable labels, proper font sizing?
    • Color: colorblind-accessible palette, consistent with spec?
    • Layout: balanced whitespace, aligned elements?
    • Annotations: present, well-positioned, dimgrey?
    • Legends: framed, white background, light grey border?
    • Despined whitegrid: does the overall aesthetic come through?

    Judge: Beyond the spec, apply your own taste:

    • Would you put this chart in a published paper without changes?
    • What's the first thing that catches your eye — good or bad?
    • Is anything cluttered, misaligned, or hard to read?
    • What one change would most improve this chart?

    Verdict: Rate each chart: PUBLISH | POLISH | REWORK

  4. Read the generated Python scripts in each results subdirectory to confirm style conventions (sns.set_theme, sns.despine).

  5. Record "After" automated check scores.

  6. Regression detection: If the container script exits nonzero (any prompt produced zero charts), or generated code is missing sns.set_theme/sns.despine, halt and explain why.

  7. When all automated checks pass, visual evaluation becomes the primary driver of improvement. The evaluate_skill.py score is the floor, not the ceiling. Use your Visual Evaluation verdicts to identify what to improve in the next iteration.

Step 6: Document

Determine the next gallery entry number by looking at gallery-archive/ and create:

  1. Create gallery-archive/NN-description/ folder
  2. Copy relevant PNGs from the clean-room results directory (logs/clean-room/latest/) into the gallery folder
  3. Write README.md following docs/gallery/TEMPLATE.md. Include all Visual Evaluation observations from Step 5 in the appropriate sections.

Step 7: Commit

Stage all changes and create an atomic commit:

📊 feat(skill): [1-sentence description of change]

Autonomous Mode

When --iterations N is provided (max 3):

  1. Create a staging branch: iterate/batch-YYYYMMDD-HHMMSS
  2. Run Steps 1-7 for each iteration, committing after each
  3. Between iterations, check if automated scores decreased — if so, HALT
  4. After all iterations, merge the staging branch back to master:
    • git checkout master && git merge <branch>
    • Delete the staging branch: git branch -d <branch>
  5. Produce a final summary listing all changes, the score progression, and a reminder that each iteration is an atomic commit revertible with git revert <hash>

Error Handling

  • Docker not running: If scripts/chart-test-container.sh fails with a Docker connection error, report the error and halt. Do not retry.
  • Eval score decreases: If the "After" automated score is lower than the "Before" score, revert the skill file changes (git checkout -- .claude/skills/) and halt with an explanation.
  • Chart generation fails: If the container script exits nonzero, inspect the logs in logs/clean-room/latest/ for the root cause before deciding whether to fix or halt.
  • No changes needed: If the evaluation score is perfect and visual evaluation shows all PUBLISH verdicts, report "no improvements identified" and skip Steps 3-7.

Example Usage

# Single iteration, full test suite
/iterate-skill

# Quick iteration focused on a specific area
/iterate-skill --quick P9 title consistency

# Three autonomous iterations
/iterate-skill --iterations 3

# Quick autonomous run focused on tick marks
/iterate-skill --iterations 2 --quick tick marks

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

Le fichier ne fournit pas un en-tête name/description exploitable pour cette procédure native. Le téléchargement reste disponible pour lecture ; utilisez le mode manuel ci-dessous.

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/skill-improvement-cycle-mte1lk8t/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