BumpyClock/agent-templates / skills/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 publishes a finished figure to the Anatomy community gallery when asked.
scripts/navigation.test.mjs
View on GitHubimport assert from "node:assert/strict";
import { execFile } from "node:child_process";
import { mkdtemp, rm, writeFile } from "node:fs/promises";
import { createServer } from "node:net";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { promisify } from "node:util";
import { fileURLToPath } from "node:url";
import test from "node:test";
const execute = promisify(execFile);
async function run(name, kind) {
const directory = await mkdtemp(join(tmpdir(), "anatomy-navigation-"));
try {
let target = join(directory, "figure.html");
if (kind === "valid") await writeFile(target, '<!doctype html><div class="iso-plate" style="width:100px;height:100px">Figure</div>');
if (kind === "refused") {
const server = createServer();
await new Promise((resolve) => server.listen(0, "127.0.0.1", resolve));
target = `http://127.0.0.1:${server.address().port}/`;
await new Promise((resolve) => server.close(resolve));
}
const args = [fileURLToPath(new URL(`${name}.mjs`, import.meta.url)), target, ...(name === "capture" ? ["--out", join(directory, "shot.png"), "--wait", "0"] : ["[]"])];
try {
return { code: 0, ...await execute(process.execPath, args, { timeout: 30000 }) };
} catch (error) {
return { code: error.code, stdout: error.stdout, stderr: error.stderr };
}
} finally {
await rm(directory, { recursive: true, force: true });
}
}
for (const name of ["capture", "drive"]) {
test(`${name} fails a missing local page`, async () => {
const result = await run(name, "missing");
assert.equal(result.code, 1);
assert.match(result.stderr, /Navigation failed.*ERR_FILE_NOT_FOUND/);
assert.doesNotMatch(result.stdout, /console: clean/);
});
test(`${name} fails refused HTTP navigation`, async () => {
const result = await run(name, "refused");
assert.equal(result.code, 1);
assert.match(result.stderr, /Navigation failed.*ERR_CONNECTION_REFUSED/);
assert.doesNotMatch(result.stdout, /console: clean/);
});
test(`${name} preserves successful local navigation`, async () => {
const result = await run(name, "valid");
assert.equal(result.code, 0);
assert.match(result.stdout, /console: clean/);
});
}
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: 319k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 319k | 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: 196k | Updated | Claude CodeCodex | Verified | Install |