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.
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.
À é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é
PrudenceThe 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.
- •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.
Exemples
/iterate tick marks — run one cycle on the plotting skill and prioritize tick mark improvements./iterate --quick — run a quick evaluation-improvement-documentation cycle on the plotting skill using the 3-prompt container test./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()andsns.despine()calls are immutable - Rollback — each iteration is an atomic commit;
git revertany 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--quickflag 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
-
Read the skill files:
.claude/skills/plotting/SKILL.md.claude/skills/plotting/style-reference.md- The pattern files in
.claude/skills/plotting/patterns/
-
Review the injected evaluation score above — note any failures or style compliance gaps.
-
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:
- Style compliance gaps flagged by evaluate_skill.py
- Visual issues identified during Step 1 evaluation (layout, readability, color, spacing)
- Pattern inconsistencies (different annotations, missing legend styling)
- Code quality issues (deprecated API calls, unclear variable names)
- 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
-
Run static analysis for style compliance:
uv run scripts/evaluate_skill.py --check-renders -
Run the container-based skill test (Claude Code generates charts from minimal prompts in a Docker clean room):
scripts/chart-test-container.sh --quick -
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
-
Read the generated Python scripts in each results subdirectory to confirm style conventions (
sns.set_theme,sns.despine). -
Record "After" automated check scores.
-
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. -
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:
- Create
gallery-archive/NN-description/folder - Copy relevant PNGs from the clean-room results directory (
logs/clean-room/latest/) into the gallery folder - Write
README.mdfollowingdocs/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):
- Create a staging branch:
iterate/batch-YYYYMMDD-HHMMSS - Run Steps 1-7 for each iteration, committing after each
- Between iterations, check if automated scores decreased — if so, HALT
- After all iterations, merge the staging branch back to master:
git checkout master && git merge <branch>- Delete the staging branch:
git branch -d <branch>
- 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.shfails 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 annexesCe 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.mdDepuis 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.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.