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/audit-taper.test.mjs
View on GitHubimport assert from "node:assert/strict";
import test from "node:test";
import * as A from "../kit/audit.mjs";
const taper = () => A.tube([[0, 0, 0], [10, 0, 0]], t => 1 + 2 * t);
const close = (actual, expected) => assert.ok(Math.abs(actual - expected) < 1e-12, `${actual} differs from ${expected}`);
test("the narrow portion of a taper does not invent a collision", () => {
close(A.sdf(taper(), [1, 2, 0]), 0.8 / Math.sqrt(1.04));
});
test("the wide portion of a taper does not hide a collision", () => {
close(A.sdf(taper(), [9, 2.5, 0]), -0.3 / Math.sqrt(1.04));
});
test("the actual conical surface has zero signed distance", () => {
close(A.sdf(taper(), [1, 1.2, 0]), 0);
});
test("taper distance follows a rotated and translated tube frame", () => {
const shape = A.tube([[5, 3, 2], [5, 13, 2]], [1, 3]);
close(A.sdf(shape, [7, 4, 2]), 0.8 / Math.sqrt(1.04));
});
test("constant-radius cylinders retain their sides, caps and interior", () => {
const shape = A.tube([[0, 0, 0], [10, 0, 0]], 2);
close(A.sdf(shape, [5, 3, 0]), 1);
close(A.sdf(shape, [-1, 0, 0]), 1);
close(A.sdf(shape, [5, 0, 0]), -2);
});
test("taper end caps keep their true radii", () => {
close(A.sdf(taper(), [-1, 0, 0]), 1);
close(A.sdf(taper(), [11, 0, 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: 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: 198k | Updated | Claude CodeCodex | Verified | Install |