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-profile.test.mjs
View on GitHubimport assert from "node:assert/strict";
import test from "node:test";
import * as A from "../kit/audit.mjs";
import * as G from "../kit/lathe.mjs";
const F = G.frameAlong([0, 0, 0], [0, 0, 1]);
const radius = (s) => 2 + Math.sin(2 * Math.PI * s / 10);
const slope = (s) => Math.cos(2 * Math.PI * s / 10) * 2 * Math.PI / 10;
const profile = [[0, 2], [10, 2]];
const radialAt = (points, s) => {
const index = points.findIndex((p) => p[0] >= s);
if (!index) return points[0][1];
const [a, ra] = points[index - 1]; const [b, rb] = points[index];
return ra + (rb - ra) * (s - a) / (b - a);
};
test("inflected analytic recording follows the actual band side geometry", () => {
const bands = G.bandsOf(profile, [], F, { origin: [0, 0], scale: 10 }, { radius, slope });
const recorded = A.traced(profile, { radius });
const actual = bands.sidesOf().points.flat();
const bulge = actual.filter((p) => Math.abs(p[2] - 2.5) < 1e-8);
assert.equal(bulge.length, 2);
for (const p of bulge) assert.ok(Math.abs(radialAt(recorded, p[2]) - Math.hypot(p[0], p[1])) <= 0.02);
});
test("analytic tracing keeps bulge points inside the recorded solid", () => {
assert.ok(A.sdf(A.solid(F, profile, { radius }), [0, 2.5, 2.5]) < 0);
});
test("analytic tracing keeps neck points outside the recorded solid", () => {
assert.ok(A.sdf(A.solid(F, profile, { radius }), [0, 1.5, 7.5]) > 0);
});
test("smooth Hermite inflection retains its quarter-span curvature", () => {
const knots = [[0, 2, 1], [1, 2, 1], [2, 3, 1], [3, 3, 1]];
const curve = G.profileCurve(knots);
assert.ok(Math.abs(radialAt(A.traced(knots), 1.25) - curve.radius(1.25)) <= 0.02);
assert.ok(Math.abs(radialAt(A.traced(knots), 1.75) - curve.radius(1.75)) <= 0.02);
});
test("constant and linear radius controls keep their exact two endpoints", () => {
assert.deepEqual(A.traced([[0, 2], [10, 2]], { radius: () => 2 }), [[0, 2], [10, 2]]);
assert.deepEqual(A.traced([[0, 1], [10, 3]], { radius: (s) => 1 + s / 5 }), [[0, 1], [10, 3]]);
});
test("explicit zero recursion depth retains the requested coarse profile", () => {
assert.deepEqual(A.traced(profile, { radius, depth: 0 }), profile);
});
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 |