Skip to content

Sixian-Li/knowledge-base-kit / skills/process_docs

process_docs

Unverified

Ingest documents into this local knowledge workspace, preserving source content, drafting full text and summaries, validating, classifying and updating the catalog. Also supports check, batch, group, delete and teach requests.

scripts/check_tex.js

View on GitHub
#!/usr/bin/env node
// Validate TeX spans against the pinned KaTeX engine, independently of viewers.
// stdin:  JSON array of {tex, display} objects (a bare string means inline)
// stdout: JSON array of {tex, display, error} for the ones that do not render
// See vendor/README.md for why this is KaTeX rather than pandoc's texmath.
const path = require("path");
const katex = require(path.join(__dirname, "..", "vendor", "katex.min.js"));

let raw = "";
process.stdin.on("data", (c) => (raw += c));
process.stdin.on("end", () => {
  let spans;
  try {
    spans = JSON.parse(raw);
  } catch (e) {
    console.error("check_tex.js: bad stdin JSON: " + e.message);
    process.exit(2);
  }
  const bad = [];
  for (const span of spans) {
    const tex = typeof span === "string" ? span : span.tex;
    const display = typeof span === "string" ? false : Boolean(span.display);
    try {
      katex.renderToString(tex, { throwOnError: true, strict: false, displayMode: display });
    } catch (e) {
      bad.push({ tex, display, error: String(e.message || e).slice(0, 200) });
    }
  }
  process.stdout.write(JSON.stringify(bad));
});
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: 196kUpdated 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: 192kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 192kUpdated 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: 192kUpdated Claude CodeCodexVerifiedInstall