Generate, compose, and edit product images, brand visuals, posters, social graphics, illustrations, and photo variations, from inside Claude Code, Codex, or OpenClaw. The work is produced on the hosted, paid Beatra service
(mcp.beatra.ai).
This catalog entry is a reviewed pointer, not the executable package. It contains no client code and performs no Beatra operation by itself. The package it points to bundles three standard-library Python scripts that make network calls and store a credential. It has no self-updater: it never downloads code and never changes its own files. Read Install and Security & Safety Notes before activating it.
| Pinned identity | Value |
|---|---|
| Package | ai-image-generation-studio 0.2.3 |
| Source commit | beatra-ai/ai-image-generator-skill@8e1b53d (full SHA 8e1b53d105701194f03a8d4566a37b33fc7560b9) |
| Package tree | b27876bca12d5eeb07fc7c41cb2ab64d086af519 (Git tree ID of skills/ai-image-generation-studio at that commit) |
| License | MIT No Attribution (MIT-0) |
The pinned tree holds regular files only (no symlinks, no executable bits, no binaries). Confirm that with the inspect commands below.
Explain that this fetches an external package from github.com, then ask
for approval. Only after approval:
umask 077
review_dir="$(mktemp -d)"
cd "$review_dir" || exit 1
git clone --quiet --filter=blob:none --no-checkout https://github.com/beatra-ai/ai-image-generator-skill.git src
git -C src checkout --quiet 8e1b53d105701194f03a8d4566a37b33fc7560b9 -- skills/ai-image-generation-studio
test "$(git -C src rev-parse '8e1b53d105701194f03a8d4566a37b33fc7560b9:skills/ai-image-generation-studio')" = 'b27876bca12d5eeb07fc7c41cb2ab64d086af519' && echo TREE-OK
Stop if the last command does not print TREE-OK. The expected commit and
tree IDs come from this catalog entry, not from the package or its website,
and Git addresses every fetched object by its hash.
git -C src ls-tree -r 8e1b53d105701194f03a8d4566a37b33fc7560b9 -- skills/ai-image-generation-studio | awk '$1 != "100644"' # expect no output
grep -n -E 'maybe_auto_update|download_update|_apply_update' src/skills/ai-image-generation-studio/scripts/mcp_client.py # expect no output
The first check lists any symlink, executable, or submodule entry; the second finds the entry points of the self-updater that earlier versions shipped.
Report to the user what the review found: SKILL.md, manifest.json,
install-source.json (the one-line marker {"schema_version":1,"source":"github"}),
the bundled Markdown references, and scripts/authorize.py,
scripts/mcp_client.py, scripts/uninstall.py (Python 3.10+, standard
library only, no dependency installation, no lifecycle hooks). Summarize the
network, credential, local-state, telemetry, and version-notice behavior
listed under Security & Safety Notes.
Obtain explicit authorization for this host configuration change if it is not already covered by the user's request; do not repeat an existing scoped approval. Then copy the reviewed tree to the host's skills directory (Claude Code shown; use the equivalent path for other hosts):
dest="$HOME/.claude/skills/ai-image-generation-studio"
test ! -e "$dest" && test ! -L "$dest" || { echo "destination exists; stop and ask the user"; exit 1; }
cp -R "src/skills/ai-image-generation-studio" "$dest"
There is no update switch to turn off in this version.
Authorization opens a browser sign-in and stores a bearer token. Ask first.
python3 "$dest/scripts/authorize.py"
Start a new agent session if the host discovers skills only at startup.
SKILL.md and its references; they define the
routes, payload shapes, and review loop.beatra.models.list, task list) to
read current model cards and credit estimates.client_request_id and poll the returned task.billing.net_charged_credits, review the
result with the user, and ask again before any further paid stage.python3 "$HOME/.claude/skills/ai-image-generation-studio/scripts/mcp_client.py" verify
After the user approved the cost card for this exact payload, submit once with
a stable request id using the tool name from the installed SKILL.md. If the
response is lost, retry only with the same client_request_id and identical
arguments; never submit a replacement while the task is running.
This pinned version cannot update itself: it has no code that downloads or
replaces package files. update only reports what the store or tool that
installed the copy offers; for a copy installed by the steps above it finds
no such record and says to update the way you installed it. See the version
notice under Security & Safety Notes.
To move to a newer version, repeat Steps 1 to 3 for that commit in a new
review directory, show the user the file-level changes against the installed
copy (for example git -C src diff --stat 8e1b53d <new-commit> -- skills/ai-image-generation-studio),
and replace the directory only after approval. A version not listed in this
entry has not been reviewed here.
dest="$HOME/.claude/skills/ai-image-generation-studio"
python3 "$dest/scripts/uninstall.py" --dry-run
python3 "$dest/scripts/uninstall.py"
Read the JSON decision. disconnected means this was the last Beatra skill on
the device: the token was revoked (when revoked is true) and the files
credentials.json, installation.json, host.json, skills.json,
network.json, balance-holds.json, pending_authorization.json, and
.authorize.lock under ~/.beatra were removed. keep_connection means
another Beatra skill still uses the shared token, which stays.
revoke_retry means the server refused the revocation and nothing changed;
run it again shortly. The script never deletes the package directory: after
confirming the path it prints with the user, delete $dest.
uninstall.py does not remove ~/.beatra/updates/. When the decision is
disconnected and no other Beatra skill is installed, remove that directory
and then the empty ~/.beatra; otherwise leave them. A token that could not
be revoked expires after 15 days idle and can be revoked at once in the
Beatra Console under Agents.
~/.beatra/credentials.json.risk: critical is deliberate.
api.beatra.ai and tool calls go to mcp.beatra.ai; an upload is a
PUT of the approved file to the HTTPS address the server returns, without
the bearer token. Unless a cached decision is still valid (10 minutes to 7
days), each run first asks https://api.beatra.ai/skill-route, and also
https://api.beatra.cn/skill-route when the first is slow or answers cn,
which network to use. These probes carry no credential or package identity.
When the answer is cn, authorization and tool calls go to api.beatra.cn
and mcp.beatra.cn with the same bearer token, and the version notice
reads from www.beatra.cn; Beatra serves these .cn hosts from mainland
China.
python3 "$dest/scripts/mcp_client.py" network --use ai pins the .ai
hosts and stops the probes; a failed version-notice read can still retry
once on the other network.verify, tools, upload, or call, at most once every 24 hours
per install path, it records the check time and looks, read-only, for
records another installer left beside the package (ClawHub origin.json,
SkillHub or skills CLI lock entries, gh skill frontmatter). A copy
installed by the steps above normally has none and makes no request. When
one is found, it reads https://beatra.ai/skills/ai-image-generation-studio/sources.json
(no credential, 3-second timeout, 64 KiB cap) and, if that installer offers a
newer version, prints one line to stderr with the installer's own update
command. It never runs the command.cn route (see Network)
requests reach it through Beatra's hosts in mainland China. See the
privacy policy.authorize.py runs an OAuth device flow, opens the browser
on the approval page, and stores one bearer token in
~/.beatra/credentials.json (directory 0700, file 0600). The token never
goes into argv, environment variables, or output. It carries full Beatra
scope, including wallet:spend, has a sliding 15-day idle lifetime, and is
shared by every Beatra skill on the device. While the user has not yet
selected Allow, the pending device code is kept in
~/.beatra/pending_authorization.json (0600) so a rerun finishes the same
approval instead of opening a new one. When verify, tools, upload, or
call finds no working token, the client makes one check of that saved
approval and stores the token if the user has already selected Allow; it
never starts a new authorization or opens a browser.~/.beatra/ also holds installation.json (random
installation reference), host.json (agent platform and hostname),
skills.json (installed Beatra skill paths), network.json (route
decision, with a country code when the route answer includes one),
balance-holds.json (after an insufficient-credit refusal, that tool is
answered locally for up to 30 minutes; call --recheck-balance sends one
call), a short-lived .authorize.lock, and, per install path,
updates/<id>/state.json (last version check), source.json (install
source), and registration.json (last registration). Files are 0600
except host.json, which follows the umask.claude-code, from environment variables), and the installation reference.
After connecting, at most once a day unless the version, platform, route, or
install source changes, the client makes a non-billable
beatra.installations.register call with those package and platform
fields, the release channel, the network route, the install source
(github for this tree), and coarse runtime facts: OS and OS version, CPU
architecture, Python version, locale, and UTC offset. Every tool call adds
source_package_slug and source_platform. There is no opt-out for these
fields.