BumpyClock/agent-templates / skills/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 publishes a finished figure to the Anatomy community gallery when asked.
scripts/audit-cache.test.mjs
View on GitHubimport assert from "node:assert/strict";
import test from "node:test";
import * as A from "../kit/audit.mjs";
function fixture(move = [1, 0, 0]) {
return [
A.box([0, 0, 0], [2, 2, 2], { name: "moving", move, piece: "moving" }),
A.box([1.7, 0.6, 0.6], [2.2, 1.4, 1.4], { name: "fixed" }),
];
}
const inspect = (shapes, options = {}) => A.solidClearances(shapes, { state: 1, sunk: 0.05, ...options });
test("rebuilds the surface grid when the opted-in cell size changes", () => {
const shapes = fixture();
assert.equal(inspect(shapes, { cell: 0.1 }).length, 1);
const cached = inspect(shapes);
const fresh = inspect(fixture());
assert.equal(cached.length, 1);
assert.deepEqual(cached, fresh);
assert.ok(Math.abs(cached[0].clearance + 0.8) < 1e-12);
});
test("refines surface samples when the opted-in spacing changes", () => {
const shapes = fixture(); inspect(shapes, { spacing: 2 });
const refined = inspect(shapes, { spacing: 0.1 });
const fresh = inspect(fixture(), { spacing: 0.1 });
assert.deepEqual(refined, fresh);
assert.ok(Math.abs(refined[0].clearance + 0.8) < 1e-12);
});
test("preserves repeated default audits of the same moving overlap", () => {
const shapes = fixture(); const first = inspect(shapes);
assert.equal(first.length, 1); assert.deepEqual(inspect(shapes), first);
});
test("keeps a separated motion clear across sampling options", () => {
const shapes = fixture([-1, 0, 0]);
assert.deepEqual(inspect(shapes, { cell: 0.1 }), []);
assert.deepEqual(inspect(shapes), []);
assert.deepEqual(inspect(shapes, { spacing: 0.1 }), []);
});
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: 319k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 319k | 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: 196k | Updated | Claude CodeCodex | Verified | Install |