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-order-convergence.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 P = { origin: [0, 0], scale: 1, azimuth: 0, elevation: 0 };
const cam = A.cameraBasis(P);
const at = (screen, depth) => G.add3(G.mul3(cam.R, screen), G.mul3(cam.V, depth));
const inspect = (items) => A.overlapsOf(items, P, { step: 0.25, tolerance: 0.01, least: 0.01 });
const chain = (count) => Array.from({ length: count }, (_, i) => ({ name: `ball${i}`, key: 0, shapes: [A.ball(at(i * 1.5, -i * 0.5), 1)] }));
const assertRules = (overlaps, solved) => {
for (const pair of overlaps.pairs) {
const front = pair.front[0].area >= overlaps.least ? pair.a : pair.b;
const back = front === pair.a ? pair.b : pair.a;
assert.ok(solved.keys[front] - solved.keys[back] >= 0.02 - 1e-9);
}
};
test("a 410-part acyclic drawn overlap chain converges without losing constraints", () => {
const items = chain(410); const overlaps = inspect(items);
assert.equal(overlaps.pairs.length, 409);
assert.ok(overlaps.pairs.every((p) => p.front[0].area >= overlaps.least && p.front[1].area < overlaps.least));
const solved = A.orderKeys(items, overlaps);
assert.deepEqual(solved.dropped, []);
assert.deepEqual(solved.cycles, []);
assertRules(overlaps, solved);
});
test("an explicit final-round budget does not invent a victim once all rules are satisfied", () => {
const items = chain(10); const overlaps = inspect(items);
const solved = A.orderKeys(items, overlaps, { rounds: 9 });
assert.deepEqual(solved.dropped, []);
assertRules(overlaps, solved);
});
test("small acyclic figures preserve the existing zero-drop solution", () => {
const items = chain(10); const overlaps = inspect(items); const solved = A.orderKeys(items, overlaps);
assert.deepEqual(solved.dropped, []);
assertRules(overlaps, solved);
assert.ok(Math.abs(solved.keys[0] - 0.18) < 1e-12);
});
test("an actual three-item geometric cycle still drops its weakest conflicting rule", () => {
const items = [
{ name: "a", key: 0, shapes: [A.ball(at(0, 3), 1), A.ball(at(20, 0), 1)] },
{ name: "b", key: 0, shapes: [A.ball(at(0, 0), 1), A.ball(at(10, 3), 1)] },
{ name: "c", key: 0, shapes: [A.ball(at(10, 0), 1), A.ball(at(20, 3), 1)] },
];
const overlaps = inspect(items); assert.equal(overlaps.pairs.length, 3);
const solved = A.orderKeys(items, overlaps);
assert.equal(solved.rules, 3);
assert.equal(solved.dropped.length, 1);
assert.equal(solved.cycles.length, 0);
for (const pair of overlaps.pairs) {
const front = pair.front[0].area >= overlaps.least ? pair.a : pair.b;
const back = front === pair.a ? pair.b : pair.a;
if (solved.dropped.some((rule) => rule.front === front && rule.back === back)) continue;
assert.ok(solved.keys[front] - solved.keys[back] >= 0.02 - 1e-9);
}
});
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 |