Skip to content

TsukiNi22/ai-utils / skills/docs/html-doc

html-doc

Verified

FileKindSize
SKILL.mdskill md26.5 KB
requires.txtmarkdown11 B
scripts/build_explorer.mjsscript1.9 KB
scripts/build_graph.mjsscript5.7 KB
scripts/sync_nav.pyexecutablescript665 B
templates/graph.htmlother311.8 KB
templates/technical.htmlother57.5 KB
templates/user.htmlother61.0 KB

scripts/build_explorer.mjs

View on GitHub
#!/usr/bin/env node
// Build the graph explorer: the graph page of the skill without embedded project, which asks the user for a public
// GitHub / GitLab repository (remembered until Ctrl + Shift + R, or ?repo=owner/name) and builds its graph in the browser.
//
// Usage: node build_explorer.mjs [--out graph.html] [--home https://github.com/TsukiNi22/ai-utils] [--template <html>]
// Published on the gh-pages branch of the ai-utils repository (graph.html + index.html redirecting to it).

import {readFileSync, writeFileSync, mkdirSync} from "node:fs";
import {dirname, join, resolve} from "node:path";
import {fileURLToPath} from "node:url";

const SKILL_DIR = resolve(dirname(fileURLToPath(import.meta.url)), "..");
const argv = process.argv.slice(2);
const opt = (name, def) => { const i = argv.indexOf("--" + name); return i >= 0 ? argv[i + 1] : def; };
const out = resolve(opt("out", "graph.html"));
const home = opt("home", "https://github.com/TsukiNi22/ai-utils");

let html = readFileSync(opt("template", join(SKILL_DIR, "templates", "graph.html")), "utf8");
const json = (o) => JSON.stringify(o).replace(/<\//g, "<\\/");
html = html.replace(/(<script id="graph-config" type="application\/json">)[\s\S]*?(<\/script>)/, (_, a, b) => a + json({project: "Graph explorer", repo: "", branch: "", storageKey: "graph-explorer", explorer: true}) + b);
html = html.replace(/(<script id="graph-snapshot" type="application\/json">)[\s\S]*?(<\/script>)/, (_, a, b) => a + json({meta: {}, nodes: [], links: []}) + b);
html = html.replace(/<nav class="tabs"[\s\S]*?<\/nav>\s*/, ""); // single page
html = html.replace(/ data-repo="\{\{GITHUB_REPO\}\}"/, "");
html = html.replaceAll("{{GITHUB_REPO}}", "").replaceAll("{{VERSION}}", "").replaceAll("{{PROJECT}}", "Graph explorer").replaceAll("{{STORAGE_KEY}}", "graph-explorer").replaceAll("{{REPO_URL}}", home);
mkdirSync(dirname(out), {recursive: true});
writeFileSync(out, html);
console.log("explorer -> " + out);
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: 197kUpdated 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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated 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: 194kUpdated Claude CodeCodexVerifiedInstall