anbeime/skill / skills/anatomy/anatomy
anatomy
UnverifiedBuild crafted, highly detailed, interactive isometric SVG figures that explain a technical idea as a real physical object (a test rig, a dial gauge, a cabinet of drawers, a plotter, a lock), with many small precise solid parts, four-tone shading, correct painter's order, a framed card with title, hint and live readout, and calm eased motion. Use this whenever someone wants an isometric illustration, an explanatory diagram or figure for docs, a blog post, a landing page or an article, a "Linear-style" or "premium" technical drawing, an interactive explainer, or an SVG that shows how a system, algorithm or component works, even if they never say "isometric". Works framework-free (TypeScript/JS that writes SVG and HTML) and in React/Next.js, and can add realistic WebGL shaders (fire, exhaust, water, caustics, lamp light) that live inside the drawing in the same isometric perspective. Also prints a figure as an A4 PDF (poster, drawing or handout) and publishes it to the Anatomy community gallery when asked.
scripts/turn-audit-samples.test.mjs
View on GitHubimport assert from "node:assert/strict";
import test from "node:test";
import { samplesOf } from "../kit/turn-audit.mjs";
const clip = (from, to) => ({ from, to, periodic: false });
test("a clip is sampled through its final instant and never past it", () => {
for (const [from, to, frame] of [[0, 1, 0.4], [0, 1, 0.3], [0, 0.42, 1 / 60], [0.5, 1.01, 1 / 60], [0, 2.5, 4 / 60]]) {
const xs = samplesOf(clip(from, to), frame);
assert.equal(xs[0], from);
assert.equal(xs[xs.length - 1], to);
assert.ok(xs.every((x, i) => x >= from && x <= to && (i === 0 || x > xs[i - 1])), `${from}..${to} by ${frame}: ${xs}`);
assert.ok(xs.every((x, i) => i === 0 || x - xs[i - 1] <= frame + 1e-9));
}
});
test("a clip whose length is a whole number of frames keeps its frames", () => {
assert.deepEqual(samplesOf(clip(0, 1), 0.25), [0, 0.25, 0.5, 0.75, 1]);
assert.equal(samplesOf(clip(0, 1), 1 / 60).length, 61);
assert.equal(samplesOf(clip(0, 1.5), 1 / 60).length, 91);
});
test("an empty clip has a single sample", () => {
assert.deepEqual(samplesOf(clip(2, 2), 1 / 60), [2]);
});
test("a periodic sweep still stops one frame short of the repeat", () => {
const xs = samplesOf({ from: 0, to: 360, periodic: true }, 90);
assert.deepEqual(xs, [0, 90, 180, 270]);
assert.equal(samplesOf({ from: 0, to: 360, periodic: true }, 0.3).length, 1200);
});
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |