Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

salvador

БесплатноЗапускает вложенные скриптыНе проверен

Autonomous p5.js visualization agent. It implements, inspects, critiques design/UX, fixes, and launches the result.

tolitiusот tolitius★ 16 звёзд на GitHub11 установок в других каталогах

Об этом скилле

Salvador Agent

Use this skill to visualize concepts using p5.js with a focus on high-quality UX, aesthetics, and continuous motion.

The visual IS the explanation. Teach through visual metaphor — show concepts as physical actions the viewer can follow (a pile splitting into chunks, elements rearranging, quantities flowing). Text is annotation, not content. If you can show it with animation or transformation, don't write it in words.

Workflow

Follow this strict loop when asked to visualize a concept:

Phase 1: Bootstrap

  1. Check Context: If package.json is missing, run bash .claude/skills/salvador/scripts/setup.sh.
  2. Scaffold: Ensure index.html and src/main.js exist.
  3. Read p5.js Reference: Read resources/p5-missing-knowledge.md for p5.js 2.x API changes before writing any code.
  4. Read Responsive Design: Read resources/responsive-design.md for the scale factor pattern.
  5. Read Visual Quality Rules: Read resources/visual-quality.md for layout, typography, and color rules.
  6. Read Design Defaults: Read resources/design-defaults.md for spacing values and code patterns.

Phase 1.5: Concept Analysis (Before Coding!)

Before writing any code, decompose the concept:

  1. Decide the visualization type:

    • Staged: concept needs step-by-step explanation (how a qubit works, how sorting algorithms compare, how photosynthesis works). Has multiple stages with ← → navigation.
    • Standalone: single living scene (starfield, fractal, lava lamp, particle system, a physics sandbox). No stages — one continuous experience with interactivity.
    • Hybrid: mostly one scene but with modes or layers the user can toggle (solar system with clickable planets, waveform explorer with parameter sliders).

    This decision shapes everything below. Don't force stages on a concept that doesn't need them.

  2. Research the Domain: Look up the actual facts (angles, counts, formulas, rules)

    • Don't guess scientific/mathematical details
    • Get the real values (e.g., H2O bond angle is 104.5°, not "about 109°")
  3. If staged: Read resources/storytelling.md for narrative structure, then plan the arc:

    • Setup: introduce the actors and the world
    • Tension: what's the question or unknown? create curiosity
    • Revelation: the moment of insight (this is where learning happens)
    • Understanding: show the mechanism, the "why"
    • Mastery: let the user interact or explore variations
  4. If staged — STOP — Write the Bridge Chain (do NOT proceed to coding without it):

    Write out this exact structure for every stage:

    stage 1: [title]
      BEFORE: [what the viewer sees at the START of this stage]
      AFTER:  [what the viewer sees at the END — what changed and why]
      teaches: [what this visual change communicates to the viewer]
      analogy: [everyday thing that works like this]
      → "[question that creates pull to stage 2]"
    stage 2: [title]
      BEFORE: [starting visual state — must answer the bridge from stage 1]
      AFTER:  [ending visual state — what transformed]
      teaches: [what the contrast communicates]
      analogy: [...]
      → "[question that creates pull to stage 3]"
    stage 3: ...
    

    Example — BAD:

    stage 2: Cooper Pairs
      BEFORE: lattice with electrons
      AFTER:  lattice with paired electrons
      teaches: Cooper pairs have zero resistance
    

    Example — GOOD:

    stage 2: Cooper Pairs
      BEFORE: 12 electrons bouncing chaotically off lattice nodes, leaving short jittery trails
      AFTER:  temperature gauge drops, electrons slow, snap into pairs with glowing bonds, glide smoothly through lattice without deflecting
      teaches: the CONTRAST between chaotic-bouncing and smooth-gliding IS the explanation of superconductivity — no text needed
    

    Rules:

    • every stage MUST have a visible transformation (BEFORE ≠ AFTER). if a stage has no change, it's a static exhibit — merge it or rethink it.
    • if you can't write a bridge question between two stages, they are disconnected — rethink the order or merge them
    • each bridge question MUST appear visually in the rendered stage
    • each analogy MUST appear visually in the rendered stage alongside the real concept — not as text in a card
    • after the chain, write a scene plan: for each transition (1→2, 2→3, ...) decide same canvas or new scene and say why. when in doubt, same canvas is better — the viewer sees the scene evolve instead of jumping between slides. this decides which transition pattern from design-defaults.md to use.
    • this chain is your contract — the code must implement it
  5. If standalone/hybrid: Plan the scene and interactions:

    • what is the visual core? (the main thing the viewer sees and interacts with)
    • what parameters can the user control? (sliders, mouse, click, keyboard)
    • what makes it alive? (physics, particles, procedural generation, response
Полный SKILL.md на GitHub

Установить salvador в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

resources/design-defaults.mdresources/p5-missing-knowledge.mdresources/responsive-design.mdresources/storytelling.mdresources/visual-quality.mdscripts/inspect.jsscripts/setup.shtemplates/index.htmltemplates/main.js

FAQ

Что делает скилл salvador?

Autonomous p5.js visualization agent. It implements, inspects, critiques design/UX, fixes, and launches the result.

Как установить скилл salvador?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл salvador запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить salvador с