Skill Improvement Cycle

VerifiedCaution

Run a single evaluation-improvement-documentation cycle on the plotting skill. Creates gallery entries and atomic commits.

Sby Skills Guide Bot
DevelopmentAdvanced
8/29/2026
Claude Code
#plotting#skill-evaluation#iteration#git-commits#data-visualization

Recommended for

Automated summary

Runs a single evaluation–improvement–documentation cycle on the plotting skill: score the current state, pick one or two improvement areas, make targeted pattern edits, then verify via static style checks and container-based chart generation before an atomic commit.

Strengths

  • Explicit guardrails: at most 3 iterations without human feedback, no pattern deletion, immutable style calls (set_theme, despine), and one revertible atomic commit per iteration.
  • Injects live repository state before any decision: evaluation score, latest clean-room runs, recent gallery entries, current branch and last three commits.
  • Forces a written "proposed changes" table with file, change and confidence level before touching skill files.
  • Two-stage verification: style compliance through evaluate_skill.py, then chart generation in a Docker clean room, followed by a structured visual evaluation (observe, then compare against style-reference.md).

Limitations

  • Tightly bound to one repository's layout and scripts (.claude/skills/plotting, evaluate_skill.py, chart-test-container.sh, Docker), so it is not directly reusable elsewhere.
  • Capped at 3 iterations without human feedback and 1-2 improvement areas per cycle, which rules out large-scale overhauls.
  • Visual evaluation of the generated PNGs stays subjective and depends on the model's ability to read images.
When to use it

Use when you want to methodically raise the quality of an existing matplotlib/seaborn plotting skill one audited cycle at a time while preserving non-regression evidence.

When not to use it

Avoid it when you need to build a plotting skill from scratch, overhaul its patterns wholesale, or run it outside its original repository.

Security analysis

Caution
Quality score82/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.

Findings
  • •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.
How this analysis is made

Examples

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

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/skill-improvement-cycle-mte1lk8t/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

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. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/skill-improvement-cycle-mte1lk8t/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills