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-slide-clearance.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: 45, elevation: 30 };
const F = G.frameAlong([0, 0, 0], [0, 0, 1]);
function scene(axis = [0, 0, 1]) {
const frame = G.frameAlong([0, 0, 0], axis);
const move = G.mul3(axis, 8);
const rod = A.slide(frame, 0, 2, 1, { name: "piston", move, piece: "piston" });
const obstacle = A.disc(frame, 6, 8, 2, { name: "obstacle" });
const drawn = G.rodOut(frame, 0, 2, 1, P, { stroke: 8 });
assert.equal(drawn.reach, 10);
assert.ok(drawn.paths.fill.length > 0 && drawn.clip.length > 0);
return { rod, obstacle, frame };
}
for (const axis of [[0, 0, 1], [1, 0, 0]]) test(`native solid clearance checks an extending rod along ${axis}`, () => {
const { rod, obstacle, frame } = scene(axis);
const state = { label: "stroke", shares: { piston: 1 } };
const posed = A.moved(rod, A.offsetOf(rod, state));
const inside = G.add3(frame.o, G.mul3(frame.a, 7));
assert.equal(posed.slide.to, 10);
assert.ok(A.sdf(posed, inside) < -0.9 && A.sdf(obstacle, inside) < -0.9);
const result = A.solidClearances([rod, obstacle], { state, spacing: 0.2, sunk: 0.2 });
assert.equal(result.length, 1);
assert.equal(result[0].tube, "piston");
assert.equal(result[0].other, "obstacle");
assert.equal(result[0].state, "stroke");
assert.ok(result[0].clearance < -0.9);
});
test("native recorder audit reports an extending rod with a stationary obstacle in either input order", () => {
const { rod, obstacle } = scene();
for (const shapes of [[rod, obstacle], [obstacle, rod]]) {
const R = A.recorder(P, { order: ["piston"] });
for (const shape of shapes) R.solid(shape);
const result = A.audit(R, P, { frames: [], apart: true });
assert.equal(result.apart.length, 1);
assert.ok(result.apart[0].clearance <= -0.5);
assert.ok(A.failures(result) > 0);
}
});
test("native solid clearance preserves rest, intermediate and retracted rod controls", () => {
const { rod, obstacle } = scene();
for (const state of [0, 0.4, -0.1]) assert.deepEqual(A.solidClearances([rod, obstacle], { state, spacing: 0.2, sunk: 0.2 }), []);
});
test("native solid clearance preserves translated solid penetration detection", () => {
const { obstacle } = scene();
const moving = A.ball([0, 0, 1], 1, { name: "moving", move: [0, 0, 6] });
const result = A.solidClearances([moving, obstacle], { state: 1, spacing: 0.2, sunk: 0.2 });
assert.equal(result.length, 1);
assert.ok(result[0].clearance < -0.9);
});
test("native sliding clearance preserves a seated host exemption", () => {
const { rod, obstacle } = scene();
rod.seated = true;
rod.cut = obstacle;
assert.deepEqual(A.solidClearances([rod, obstacle], { state: 1, spacing: 0.2, sunk: 0.2 }), []);
});
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 |