api-client

api-client is a skill for Claude Code, Codex from MauricioPerera/llms-txt-skills. It costs 42 tokens per session (569 once invoked), scanned A, original, MIT.

A recipe for using an HTTP service that returns SVG placeholder images at requested sizes and background colors. SVG is an image format that stays sharp when resized.

In plain words
What is it for?
Use it when building HTML or CSS mockups that need temporary images with specific dimensions or colors.
Why use it?
It lets prototypes display correctly sized stand-in images without preparing real artwork. It also includes request and error-handling patterns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building HTML or CSS mockups that need temporary images with specific dimensions or colors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mauricioperera/llms-txt-skills/api-client
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MauricioPerera/llms-txt-skills --skill api-client
Clone the repo
git clone --depth 1 https://github.com/MauricioPerera/llms-txt-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-client

README.md
[![agentmods](https://agentmods.dev/badge/skills/mauricioperera/llms-txt-skills/api-client/github.svg)](https://agentmods.dev/skills/mauricioperera/llms-txt-skills/api-client)
Your own site
<a href="https://agentmods.dev/skills/mauricioperera/llms-txt-skills/api-client"><img src="https://agentmods.dev/badge/skills/mauricioperera/llms-txt-skills/api-client/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-client

Your own site · 80×15
<a href="https://agentmods.dev/skills/mauricioperera/llms-txt-skills/api-client"><img src="https://agentmods.dev/badge/skills/mauricioperera/llms-txt-skills/api-client.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 569 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00569
Opus 5 $0.00021 $0.00284
Sonnet 5 $0.00008 $0.00114
Haiku 4.5 $0.00004 $0.00057

Measured 11d ago against content hash 2a2493a78e2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

api-client scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

import urllib.request
skills/api-client/SKILL.md · 77 lines

What it actually says

api-client

Patterns for calling the img.automators.work HTTP API to generate SVG placeholder images.

When to use

  • The user needs a placeholder image for a UI mockup.
  • The user wants an SVG with specific dimensions ({width}x{height}).
  • The user wants a colored background (?bg={hex6}).
  • The user is building HTML or CSS that references a placeholder image.

Do NOT use this skill for:

  • Production images, photography, or real content.
  • Images larger than 4000px in any dimension.
  • When the user is already using a design system with built-in skeleton components.

Base URL

https://img.automators.work

Endpoint

GET /{width}x{height}[?bg={hex6}]
  • width, height: integers in px, each <= 4000.
  • bg (optional): 6-digit hex without #. Defaults to cccccc.

Python request pattern

import urllib.request

url = "https://img.automators.work/400x300?bg=1e3a5f"
req = urllib.request.Request(url, headers={"Accept": "image/svg+xml"})
with urllib.request.urlopen(req, timeout=15) as resp:
    svg = resp.read().decode("utf-8")

Error handling

import urllib.error

try:
    with urllib.request.urlopen(req, timeout=15) as resp:
        svg = resp.read().decode("utf-8")
except urllib.error.HTTPError as e:
    if e.code == 400:
        raise RuntimeError("Invalid dimensions: must be integers in format {width}x{height}")
    raise RuntimeError(f"HTTP {e.code}: {e.reason}")
except urllib.error.URLError as e:
    raise RuntimeError(f"Connection failed: {e.reason}")

Constraints

  • Stateless, no auth, no rate limit beyond Cloudflare platform default.
  • Responses are immutable and cached one year.
  • Only endpoint is /{W}x{H}. Do not invent paths.

Failure modes

  • HTTP 400: width or height is not an integer, or path does not match {int}x{int}.
  • Invalid bg: SVG still returns but with default gray background (cccccc).
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 77 lines · 42 tokens per session scan A 2a2493a78e2f

Subscribe to this mod's changes

api-client is a skill published in the GitHub repository MauricioPerera/llms-txt-skills (2 stars, last pushed 12d ago), licensed MIT. It adds 42 tokens to every session and 569 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories