Skip to content

JaimeJunr/claude-code-frontend-skills / plugins/hyperframes/skills/hyperframes

hyperframes

Verified

Read 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.

FileKindSize
SKILL.mdskill md7.5 KB
assets/frame-presets/biennale-yellow/FRAME.mdmarkdown17.4 KB
assets/frame-presets/biennale-yellow/caption-skin.htmlother7.9 KB
assets/frame-presets/biennale-yellow/frame-showcase.htmlother34.1 KB
assets/frame-presets/blockframe/FRAME.mdmarkdown15.9 KB
assets/frame-presets/blockframe/caption-skin.htmlother8.1 KB
assets/frame-presets/blockframe/frame-showcase.htmlother37.9 KB
assets/frame-presets/blue-professional/FRAME.mdmarkdown16.8 KB
assets/frame-presets/blue-professional/caption-skin.htmlother8.1 KB
assets/frame-presets/blue-professional/frame-showcase.htmlother38.2 KB
assets/frame-presets/bold-poster/FRAME.mdmarkdown15.6 KB
assets/frame-presets/bold-poster/caption-skin.htmlother8.5 KB
assets/frame-presets/bold-poster/frame-showcase.htmlother31.6 KB
assets/frame-presets/broadside/FRAME.mdmarkdown15.9 KB
assets/frame-presets/broadside/caption-skin.htmlother8.2 KB
assets/frame-presets/broadside/frame-showcase.htmlother33.1 KB
assets/frame-presets/capsule/FRAME.mdmarkdown16.8 KB
assets/frame-presets/capsule/caption-skin.htmlother8.2 KB
assets/frame-presets/capsule/frame-showcase.htmlother42.0 KB
assets/frame-presets/cartesian/FRAME.mdmarkdown16.9 KB
assets/frame-presets/cartesian/caption-skin.htmlother8.1 KB
assets/frame-presets/cartesian/frame-showcase.htmlother34.5 KB
assets/frame-presets/cobalt-grid/FRAME.mdmarkdown16.9 KB
assets/frame-presets/cobalt-grid/caption-skin.htmlother8.6 KB
assets/frame-presets/cobalt-grid/frame-showcase.htmlother45.9 KB
assets/frame-presets/code-editorial/FRAME.mdmarkdown20.1 KB
assets/frame-presets/code-editorial/caption-skin.htmlother8.1 KB
assets/frame-presets/code-editorial/fonts/EBGaramond-400.woff2binary21.2 KB
assets/frame-presets/code-editorial/fonts/EBGaramond-700.woff2binary22.5 KB
assets/frame-presets/code-editorial/fonts/Inter-400.woff2binary23.1 KB
assets/frame-presets/code-editorial/fonts/Inter-700.woff2binary23.8 KB
assets/frame-presets/code-editorial/fonts/JetBrainsMono-400.woff2binary20.7 KB
assets/frame-presets/code-editorial/fonts/JetBrainsMono-700.woff2binary21.4 KB
assets/frame-presets/code-editorial/fonts/OFL-eb-garamond.txtmarkdown4.4 KB
assets/frame-presets/code-editorial/fonts/OFL-inter.txtmarkdown4.4 KB
assets/frame-presets/code-editorial/fonts/OFL-jetbrains-mono.txtmarkdown4.4 KB
assets/frame-presets/code-editorial/frame-showcase.htmlother42.7 KB
assets/frame-presets/coral/FRAME.mdmarkdown18.5 KB
assets/frame-presets/coral/caption-skin.htmlother8.1 KB
assets/frame-presets/coral/frame-showcase.htmlother35.6 KB
assets/frame-presets/creative-mode/FRAME.mdmarkdown19.1 KB
assets/frame-presets/creative-mode/caption-skin.htmlother8.2 KB
assets/frame-presets/creative-mode/frame-showcase.htmlother37.8 KB
assets/frame-presets/daisy-days/FRAME.mdmarkdown17.0 KB
assets/frame-presets/daisy-days/caption-skin.htmlother8.3 KB
assets/frame-presets/daisy-days/frame-showcase.htmlother41.3 KB
assets/frame-presets/editorial-forest/FRAME.mdmarkdown16.6 KB
assets/frame-presets/editorial-forest/caption-skin.htmlother8.2 KB
assets/frame-presets/editorial-forest/frame-showcase.htmlother36.0 KB
references/captions.mdmarkdown4.9 KB
references/film.mdmarkdown7.1 KB
references/format.mdmarkdown13.4 KB
references/look.mdmarkdown5.9 KB
references/motion.mdmarkdown12.2 KB
references/overlays.mdmarkdown2.6 KB
references/path-tracing.mdmarkdown5.6 KB
references/plugin-installation.mdmarkdown4.1 KB
references/review.mdmarkdown5.2 KB
references/runtimes.mdmarkdown4.1 KB
references/skill-lifecycle.mdmarkdown4.8 KB
references/sound.mdmarkdown3.6 KB
references/spec.mdmarkdown5.9 KB
references/story.mdmarkdown11.2 KB
references/storyboard-format.mdmarkdown6.5 KB
references/storyboard.mdmarkdown4.4 KB
references/types/3d.mdmarkdown1.8 KB
references/types/character.mdmarkdown1.6 KB
references/types/data.mdmarkdown1.3 KB
references/types/explainer.mdmarkdown3.0 KB
references/types/launch.mdmarkdown4.6 KB
references/types/music.mdmarkdown1.6 KB
references/types/vertical.mdmarkdown1.6 KB
scripts/bake-basemap.mjsscript17.8 KB
scripts/lib/main-module.mjsscript479 B
scripts/lib/main-module.test.mjsscript1.9 KB
scripts/lib/windows-exe-search.mjsscript640 B
scripts/lib/windows-exe-search.test.mjsscript5.6 KB
scripts/locate.mjsscript8.1 KB
scripts/plugin-cli.mjsscript5.5 KB
scripts/plugin-cli.test.mjsscript12.3 KB

scripts/lib/windows-exe-search.test.mjs

View on GitHub
import assert from "node:assert/strict";
import { spawnSync } from "node:child_process";
import { randomUUID } from "node:crypto";
import {
  chmodSync,
  existsSync,
  mkdirSync,
  mkdtempSync,
  readdirSync,
  readFileSync,
  rmSync,
  writeFileSync,
} from "node:fs";
import { tmpdir } from "node:os";
import { dirname, join, relative, resolve } from "node:path";
import { fileURLToPath, pathToFileURL } from "node:url";
import { afterEach, test } from "node:test";

const VAR = "NoDefaultCurrentDirectoryInExePath";
const here = dirname(fileURLToPath(import.meta.url));
const skillsRoot = resolve(here, "../../..");
const guards = ["hyperframes/scripts/lib", "media-use/scripts/lib", "figma/scripts/lib"].map(
  (dir) => join(skillsRoot, dir, "windows-exe-search.mjs"),
);
const realPlatform = process.platform;
const realValue = process.env[VAR];
const realPath = process.env.PATH;

afterEach(() => {
  Object.defineProperty(process, "platform", { value: realPlatform, configurable: true });
  if (realValue === undefined) delete process.env[VAR];
  else process.env[VAR] = realValue;
  if (realPath === undefined) delete process.env.PATH;
  else process.env.PATH = realPath;
});

async function loadAs(platform, value, path = realPath) {
  Object.defineProperty(process, "platform", { value: platform, configurable: true });
  if (value === undefined) delete process.env[VAR];
  else process.env[VAR] = value;
  if (path === undefined) delete process.env.PATH;
  else process.env.PATH = path;
  await import(`${pathToFileURL(guards[0]).href}?load=${randomUUID()}`);
  return process.env[VAR];
}

test("every skill ships the same guard", () => {
  const [first, ...rest] = guards.map((file) => readFileSync(file, "utf8"));
  for (const copy of rest) assert.equal(copy, first);
});

test("turns off the working-directory program lookup on Windows", async () => {
  assert.equal(await loadAs("win32", undefined), "1");
});

test("keeps a value the person set", async () => {
  assert.equal(await loadAs("win32", "yes"), "yes");
});

test("leaves the Windows variable unset on other platforms", async () => {
  assert.equal(await loadAs("linux", undefined), undefined);
});

test("drops relative and empty PATH entries elsewhere and keeps absolute ones in order", async () => {
  await loadAs(
    "linux",
    undefined,
    ["", "node_modules/.bin", "/opt/b", ".", "~/bin", "/usr/bin", ""].join(":"),
  );
  assert.equal(process.env.PATH, "/opt/b:/usr/bin");
});

test("leaves PATH unset rather than empty when no entry is absolute", async () => {
  await loadAs("darwin", undefined, "node_modules/.bin::.");
  assert.equal(process.env.PATH, undefined);
});

test("keeps Windows PATH as it is", async () => {
  await loadAs("win32", undefined, "bin;C:\\tools");
  assert.equal(process.env.PATH, "bin;C:\\tools");
});

test(
  "a relative PATH entry cannot run a program planted in the project",
  { skip: process.platform === "win32" },
  (t) => {
    const project = mkdtempSync(join(tmpdir(), "hf-exe-search-"));
    t.after(() => rmSync(project, { recursive: true, force: true }));
    const marker = join(project, "planted-ran");
    mkdirSync(join(project, "node_modules", ".bin"), { recursive: true });
    const planted = join(project, "node_modules", ".bin", "ffprobe");
    writeFileSync(planted, `#!/bin/sh\ntouch "${marker}"\n`);
    chmodSync(planted, 0o755);
    const script = 'require("node:child_process").spawnSync("ffprobe", ["-version"]);';
    const run = (guard) =>
      spawnSync(
        process.execPath,
        [...(guard ? ["--import", pathToFileURL(guards[0]).href] : []), "-e", script],
        { cwd: project, env: { ...process.env, PATH: `node_modules/.bin:${process.env.PATH}` } },
      );

    run(false);
    assert.ok(existsSync(marker), "the fixture must reach the planted program without the guard");
    rmSync(marker);
    run(true);
    assert.equal(existsSync(marker), false);
  },
);

function readdirTree(dir, pattern) {
  return readdirSync(dir, { withFileTypes: true }).flatMap((entry) => {
    const path = join(dir, entry.name);
    if (entry.isDirectory()) return entry.name === "node_modules" ? [] : readdirTree(path, pattern);
    return pattern.test(entry.name) ? [path] : [];
  });
}

function scripts(dir) {
  return readdirTree(dir, /\.mjs$/).filter((file) => !/\.test\.mjs$/.test(file));
}

test("every skill Python script that starts programs resolves them through trusted_program", () => {
  const starters = readdirTree(skillsRoot, /\.py$/).filter((file) =>
    /^(import subprocess|from subprocess import)/m.test(readFileSync(file, "utf8")),
  );
  assert.ok(starters.length > 0, "must inspect the Python scripts that start programs");
  const missing = starters
    .filter((file) => {
      const source = readFileSync(file, "utf8");
      const resolver = join(dirname(file), "trusted_program.py");
      return !/^from trusted_program import find_program$/m.test(source) || !existsSync(resolver);
    })
    .map((file) => relative(skillsRoot, file));
  assert.deepEqual(missing, []);
});

test("every skill script that starts programs loads the guard before its other imports", () => {
  const starters = scripts(skillsRoot).filter((file) =>
    /from "(node:)?child_process"/.test(readFileSync(file, "utf8")),
  );
  assert.ok(starters.length > 10, "must inspect the scripts that start programs");
  const missing = starters
    .filter((file) => {
      const firstImport = readFileSync(file, "utf8").match(/^import [^\n]*$/m)?.[0] ?? "";
      return !/^import "[./]+(scripts\/)?(lib\/)?windows-exe-search\.mjs";$/.test(firstImport);
    })
    .map((file) => relative(skillsRoot, file));
  assert.deepEqual(missing, []);
});
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
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: 196kUpdated Claude CodeCodexVerifiedInstall