mascot-design
v0.2.0
Published
Pull your Mascot Design mascots and their asset kits into any project — built for AI coding agents.
Maintainers
Readme
mascot-design
Pull your Mascot Design mascots and their asset kits into any project — built for AI coding agents (Claude Code, Codex) and humans alike.
The CLI is a pure data plane: it downloads the assets you created in the web
app, plus a machine-readable manifest.json and an integration-brief.md
that tells your AI agent exactly how to build the mascot component. It never
generates assets and never edits your app code.
Quick start
In Studio → Profile → API keys, create a key. The dialog shows a ready-to-paste command:
npx mascot-design@latest login --key msk_…See what you have, then pull a mascot into your project:
npx mascot-design list npx mascot-design pull pixel-fox ./public/mascotsHand
integration-brief.mdto your AI agent (or follow it yourself) to build the component.
For AI agents
Paste this into Claude Code / Codex after creating a key:
Connect to my Mascot Design account by running
npx mascot-design@latest login --key <KEY>(I'll paste the exact command from Studio). Thennpx mascot-design list --json, pull the mascot I pick withnpx mascot-design pull <slug> ./public/mascots --json, readmanifest.jsonandintegration-brief.mdfrom that folder, and implement the mascot component in this app following the brief.
Agent-friendly contract:
--jsonprints machine output on stdout; all logs go to stderr.- Exit codes:
0ok ·1unexpected ·2auth ·3not found / ambiguous slug ·4partial download (failed files listed underskippedinmanifest.json; re-run to retry). - Auth resolution:
--key>MASCOT_API_KEY> config file. Config lives at~/.config/mascot-design/config.json(0600). The CLI talks toapi.mascot-design.app;MASCOT_API_BASE/--api-baseexist only as self-host/dev overrides.
Commands
| Command | Description |
| --- | --- |
| login [--key msk_…] [--api-base <url>] | Validate and save credentials |
| whoami [--json] | Show the signed-in account and plan |
| list [--json] | List your mascots (slug, name, style, id) |
| pull <mascot> [dir] [--all] [--images-only\|--videos-only] [--force] [--json] | Download a mascot's asset kit |
pull accepts a mascot id or slug and defaults dir to ./<slug>/. By
default it fetches the current version of every asset slot; --all includes
superseded versions. Existing files are kept unless --force.
What lands on disk
pixel-fox/
pixel-fox-turnaround-front.png ← stills (transparent PNG)
pixel-fox-idle.webm ← animation clips (VP9 + alpha)
…
manifest.json ← machine-readable inventory
integration-brief.md ← instructions for your AI agentmanifest.json carries the mascot's identity (name, slug, palette,
personality, animation states) and one entry per file with media type, format,
transparency, dimensions, and provenance ids.
Keys and security
Keys are read-only, shown once at creation, stored server-side as a hash, and
revocable from Studio at any time. Requests are rate-limited per key. Treat a
key like a password: prefer MASCOT_API_KEY over flags in shared shells.
