baneeishaque/ljt-520_openclaw-backup / skills/0x5446/ohmytoken
ohmytoken
Verified| File | Kind | Size |
|---|---|---|
| README.md | markdown | 1.0 KB |
| SKILL.md | skill md | 3.5 KB |
| _meta.json | config | 270 B |
| claw.json | config | 369 B |
| clawhub.json | config | 593 B |
| instructions.md | markdown | 1.2 KB |
| src/index.ts | script | 864 B |
src/index.ts
View on GitHubconst 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
}
},
};
}
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: 194k | 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: 194k | 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: 194k | Updated | Claude CodeCodex | Verified | Install |