Makkov-design/makkov-harness / skills/hyperframes
hyperframes
VerifiedRead first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.
scripts/lib/main-module.test.mjs
View on GitHub// Changed by makkov-harness (see NOTICE at the repository root); the original is HeyGen's, Apache-2.0.
import { strict as assert } from "node:assert";
import { test } from "node:test";
import { existsSync, mkdtempSync, readFileSync, readdirSync, rmSync, symlinkSync } from "node:fs";
import { spawnSync } from "node:child_process";
import { dirname, join, relative, resolve } from "node:path";
import { tmpdir } from "node:os";
import { fileURLToPath } from "node:url";
const SKILLS = resolve(dirname(fileURLToPath(import.meta.url)), "../../..");
const CLI_MEDIA_USE = resolve(SKILLS, "../packages/cli/src/media-use");
// Agents install skills by symlinking the skills dir, so each script must still run its CLI.
test("skill CLIs run when invoked through a symlinked skills dir", () => {
const dir = mkdtempSync(join(tmpdir(), "skills-link-"));
try {
symlinkSync(SKILLS, join(dir, "skills"), "dir");
for (const script of ["media-use/audio/scripts/heygen-voice.mjs"]) {
const run = spawnSync(process.execPath, [join(dir, "skills", script), "not-a-command"], {
encoding: "utf8",
});
assert.notEqual(run.status, 0, `${script} exited ${run.status} without running its CLI`);
assert.match(run.stderr, /usage/, script);
}
} finally {
rmSync(dir, { recursive: true, force: true });
}
});
function skillScripts(dir) {
return readdirSync(dir, { withFileTypes: true }).flatMap((entry) => {
const path = join(dir, entry.name);
if (entry.isDirectory()) return entry.name === "node_modules" ? [] : skillScripts(path);
return /\.(mjs|js)$/.test(entry.name) && !/\.test\.mjs$/.test(entry.name) ? [path] : [];
});
}
test("skill scripts detect their CLI entry through lib/main-module.mjs only", () => {
// makkov-harness: the CLI sources live only in the HyperFrames repository, not in this copy.
const cli = existsSync(CLI_MEDIA_USE) ? skillScripts(CLI_MEDIA_USE) : [];
const handRolled = [...skillScripts(SKILLS), ...cli].filter(
(path) =>
!path.endsWith("main-module.mjs") && readFileSync(path, "utf8").includes("process.argv[1]"),
);
assert.deepEqual(
handRolled.map((path) => relative(SKILLS, path)),
[],
);
});
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |