agentleFS
aryehcarmiaryehcarmi/leetcode-interview-coach/skills/visualize/SKILL.md

visualize

Skill0 starsChanged 4 months agoMITView on GitHub

Create a disclosure-safe interactive HTML visual explanation of a LeetCode-style problem, attempted solution, bug divergence, or established algorithm. Use when explicitly invoked with an attached, pictured, pasted, or previously discussed coding-interview problem.

27 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use teach and code-review.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AWSSkill

    teach

    Teach the user a new skill or concept, within this workspace.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 25 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create one focused, colorful, interactive HTML mental model whose content respects the user's current solution-reveal boundary.

    line 8
  2. Distinctive:

    Before a solution is established, show inputs, legal operations, constraints, tiny examples, choices, failure cases, or the next invariant.

    line 12
  3. Distinctive:

    After a solution is established, animate deterministic state snapshots on the smallest revealing example.

    line 13
  4. Distinctive:

    Create one self-contained HTML file in the designated user-facing output directory, or the current workspace when none is designated.

    line 18
  5. Distinctive:

    Use semantic HTML with inline CSS and JavaScript, no network calls, and no build step.

    line 19
  6. Distinctive:

    Use one dominant visual with stable semantic roles such as current, candidate, committed, rejected, and output.

    line 20
  7. Very specific:

    Treat the HTML as an artifact, not as a patch against the user's code.

    line 23
  8. Distinctive:

    Check that controls update deterministic state, JavaScript identifiers are defined, no external requests exist, labels do not clip at …

    line 28
  9. Very specific:

    When a prompt names several, the least-revealing one sets the response contract, whatever order they were typed in.

    line 36
  10. Very specific:

    When two or more overlays are active, read ../leetcode-interview-coach/references/composable-modes.md if it is installed.

    line 41

“Common” is measured: kept by at least 6 in 10 of the 25 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Visualize

Create one focused, colorful, interactive HTML mental model whose content respects the user's current solution-reveal boundary.

Choose the storyboard

  • Before a solution is established, show inputs, legal operations, constraints, tiny examples, choices, failure cases, or the next invariant. Do not encode an unrevealed algorithm in pointer motion, pseudocode, labels, or answer choices.
  • After a solution is established, animate deterministic state snapshots on the smallest revealing example. Each step should show visible state, changed items, labels, one concise explanation, and the invariant.
  • While debugging, place expected and observed state on the same timeline and stop at the earliest meaningful divergence. Reveal the cause or repair only when the active base skill permits it.

Build the artifact

  1. Create one self-contained HTML file in the designated user-facing output directory, or the current workspace when none is designated.
  2. Use semantic HTML with inline CSS and JavaScript, no network calls, and no build step.
  3. Use one dominant visual with stable semantic roles such as current, candidate, committed, rejected, and output. Pair color with text, shape, border, or icon.
  4. For playback, provide Previous, Next, Play/Pause, and visible progress. Add reset, speed, or a scrubber only when useful.
  5. Honor prefers-reduced-motion; never loop motion or spend animation on initial appearance.
  6. Treat the HTML as an artifact, not as a patch against the user's code. Return it unmarked: NEW and MOD markers belong only on a change to a file the user already has.
  7. Open or render it for visual QA before delivery, then return a concise absolute file link.

Verify before delivering

Check that controls update deterministic state, JavaScript identifiers are defined, no external requests exist, labels do not clip at roughly 736 px and 320 px, keyboard controls have visible labels, reduced motion works, and no initial frame leaks an answer beyond the active ceiling.

Compose

Base skills, ordered by how much of the solution they hand over:

follow-up → check → lcd → stuck → salvage → optimize → best

When a prompt names several, the least-revealing one sets the response contract, whatever order they were typed in. visualize is an overlay: it changes how an answer is delivered, never how much it reveals.

  • With quiz, build an interactive quiz of four to six medium-difficulty questions, native radio inputs, score and progress, and no answer-revealing feedback before submission.
  • With low-level, layer logical algorithm state, runtime representation, and the relevant reads, writes, allocations, pointer motion, stack changes, or memory access. Label invented addresses and cache boundaries illustrative, not to scale.
  • With follow-up, preserve the exactly-one-question contract.
  • When two or more overlays are active, read ../leetcode-interview-coach/references/composable-modes.md if it is installed.

Do not edit, run, or submit the user's code without permission; the HTML artifact this skill writes is its own output, not a change to their solution. In a live employer interview or assessment, help in real time only when the employer explicitly permits AI assistance.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.