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-projection.test.mjs
View on GitHubimport assert from "node:assert/strict";
import test from "node:test";
import * as A from "../kit/audit.mjs";
const projection = (azimuth, elevation, scale = 1) => ({ origin: [0, 0], scale, azimuth, elevation });
const options = { step: 0.5, tolerance: 0.1, least: 0.25 };
const fixture = () => [{ name: "body", key: 0, shapes: [A.cylinder(0, 0, 2, 0, 10)] }, { name: "probe", key: 0, shapes: [A.ball([1.5, 0, 5], 1)] }];
for (const [name, before, after] of [
["azimuth reversal", projection(45, 30), projection(180, 30)],
["elevation change", projection(45, 30), projection(45, 60)],
["side view to oblique", projection(0, 0), projection(45, 30)],
]) test(`reused body ray geometry matches a fresh build after ${name}`, () => {
const items = fixture();
A.overlapsOf(items, before, options);
const reused = A.overlapsOf(items, after, options);
const fresh = A.overlapsOf(fixture(), after, options);
assert.equal(fresh.pairs.length, 1);
assert.deepEqual(reused, fresh);
});
test("azimuth reversal retains the physically nearer body in the key solver", () => {
const items = fixture();
A.overlapsOf(items, projection(45, 30), options);
const solved = A.orderKeys(items, A.overlapsOf(items, projection(180, 30), options));
assert.equal(solved.cycles.length, 0);
assert.ok(solved.keys[0] > solved.keys[1]);
});
test("repeated identical projections keep identical depth results", () => {
const items = fixture(); const P = projection(45, 30);
const first = A.overlapsOf(items, P, options);
assert.equal(first.pairs.length, 1);
assert.deepEqual(A.overlapsOf(items, P, options), first);
});
test("scale and origin changes keep the unchanged camera direction valid", () => {
const items = fixture(); A.overlapsOf(items, projection(45, 30), options);
const P = { ...projection(45, 30, 2), origin: [20, 30] };
assert.deepEqual(A.overlapsOf(items, P, options), A.overlapsOf(fixture(), P, options));
});
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 |