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.
examples/spot-plate/fan.ts
View on GitHubimport { extrude, iso, pathOf, type Plane } from "../../kit/iso-kit";
import { BLADE_LONG, BLADE_Z, DECK_H, GAPS, LEAD_H, LEAD_LONG, P, PIVOT, ROWS, angleOf, thicknessOf } from "./rig";
const RADIANS = Math.PI / 180;
const BUTT = 7.2;
const TIP = 4.2;
const LEAD_TIP = 3.2;
const ARC = 10;
export interface BladePose {
fill: string;
shades: string[];
top: string;
crease: string;
outline: string;
line: string;
}
export interface FanPose {
blades: BladePose[];
halo: string;
out: boolean[];
}
function outlineOf(length: number, tip: number): Plane[] {
const out: Plane[] = [];
for (let step = 0; step <= ARC; step++) {
const angle = -90 + (180 * step) / ARC;
out.push([length + tip * Math.cos(angle * RADIANS), tip * Math.sin(angle * RADIANS)]);
}
for (let step = 0; step <= ARC; step++) {
const angle = 90 + (180 * step) / ARC;
out.push([BUTT * Math.cos(angle * RADIANS), BUTT * Math.sin(angle * RADIANS)]);
}
return out;
}
const BLADE = outlineOf(BLADE_LONG, TIP);
const LEAD = outlineOf(LEAD_LONG, LEAD_TIP);
function place(shape: Plane[], degrees: number): Plane[] {
const a = degrees * RADIANS;
const dx = Math.sin(a);
const dy = -Math.cos(a);
const nx = Math.cos(a);
const ny = Math.sin(a);
return shape.map(([u, v]) => [PIVOT[0] + u * dx + v * nx, PIVOT[1] + u * dy + v * ny]);
}
function along(degrees: number, from: number, to: number, z: number) {
const a = degrees * RADIANS;
const dx = Math.sin(a);
const dy = -Math.cos(a);
return pathOf([iso([PIVOT[0] + from * dx, PIVOT[1] + from * dy, z], P), iso([PIVOT[0] + to * dx, PIVOT[1] + to * dy, z], P)]);
}
function bladeAt(shape: Plane[], degrees: number, z: number, height: number, length: number): BladePose {
const ring = place(shape, degrees);
const solid = extrude(ring, z, height, P, { convex: true });
return {
fill: solid.fill,
shades: solid.shades ?? [],
top: solid.top,
crease: solid.crease,
outline: solid.outline,
line: along(degrees, 13, length - 6, z + height),
};
}
export function fanOf(merge: number): FanPose {
const lead = angleOf(merge);
const blades: BladePose[] = [];
const halo: string[] = [];
const out: boolean[] = [];
GAPS.forEach((gap, index) => {
const angle = Math.min(lead, angleOf(gap));
out.push(gap < merge);
blades.push(bladeAt(BLADE, angle, BLADE_Z[index]!, thicknessOf(gap), BLADE_LONG));
halo.push(pathOf(place(BLADE, angle).map(([x, y]) => iso([x, y, DECK_H], P)), true));
});
blades.push(bladeAt(LEAD, lead, BLADE_Z[ROWS]!, LEAD_H, LEAD_LONG));
halo.push(pathOf(place(LEAD, lead).map(([x, y]) => iso([x, y, DECK_H], P)), true));
return { blades, halo: halo.join(""), out };
}
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 |