Skip to content

baneeishaque/ljt-520_openclaw-backup / skills/0x5446/ohmytoken

ohmytoken

Verified

FileKindSize
README.mdmarkdown1.0 KB
SKILL.mdskill md3.5 KB
_meta.jsonconfig270 B
claw.jsonconfig369 B
clawhub.jsonconfig593 B
instructions.mdmarkdown1.2 KB
src/index.tsscript864 B

src/index.ts

View on GitHub
const ENDPOINT = "https://api.ohmytoken.dev/api/v1/ingest";

export default function ohmytoken(config: { api_key: string }) {
  const key = config.api_key || process.env.OHMYTOKEN_API_KEY;
  if (!key) return {};

  return {
    name: "ohmytoken",
    async onLLMResponse(usage: {
      model: string;
      prompt_tokens: number;
      completion_tokens: number;
    }) {
      try {
        await fetch(ENDPOINT, {
          method: "POST",
          headers: {
            "Content-Type": "application/json",
            "X-API-Key": key,
          },
          body: JSON.stringify({
            model: usage.model || "unknown",
            prompt_tokens: usage.prompt_tokens || 0,
            completion_tokens: usage.completion_tokens || 0,
          }),
        });
      } catch {
        // silent — never break the user's workflow
      }
    },
  };
}
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: 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