LeoYeAI/agent-master-skills / skills/ai-task-hub
ai-task-hub
VerifiedAI task hub for image analysis, background removal, speech-to-text, text-to-speech, markdown conversion, and async execute/poll/presentation orchestration. Use when users need hosted AI outcomes while host runtime manages identity, credits, payment, and risk control.
| File | Kind | Size |
|---|---|---|
| .clawhub/origin.json | config | 143 B |
| SKILL.md | skill md | 4.7 KB |
| SKILL.zh-CN.md | markdown | 4.4 KB |
| _meta.json | config | 130 B |
| references/capabilities.json | config | 20.9 KB |
| references/openapi.json | config | 6.3 KB |
| scripts/agent-task-auth.mjs | script | 2.2 KB |
| scripts/attachment-normalize.mjs | script | 5.9 KB |
| scripts/base-url.mjs | script | 1.0 KB |
| scripts/skill.mjs | script | 18.7 KB |
| scripts/telemetry.mjs | script | 912 B |
scripts/base-url.mjs
View on GitHubconst DEFAULT_BASE_URL = 'https://gateway-api.binaryworks.app';
export function getDefaultBaseUrl() {
return DEFAULT_BASE_URL;
}
export function normalizeBaseUrl(baseUrlRaw) {
const candidate = readToken(baseUrlRaw) || DEFAULT_BASE_URL;
try {
const parsed = new URL(candidate);
if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') {
throw new Error('invalid protocol');
}
return parsed.toString().replace(/\/+$/, '');
} catch {
throw createBaseUrlError(400, `invalid base_url: ${String(baseUrlRaw ?? '')}`);
}
}
export function isHttpBaseUrl(value) {
try {
const parsed = new URL(value);
return parsed.protocol === 'http:' || parsed.protocol === 'https:';
} catch {
return false;
}
}
function readToken(value) {
if (typeof value !== 'string') {
return '';
}
return value.trim();
}
function createBaseUrlError(status, message) {
const error = new Error(message);
error.status = status;
error.code = 'VALIDATION_BAD_REQUEST';
return error;
}
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 |