
Muapi Platform
Wire muapi.ai generative predictions into agent workflows with CLI auth, one-shot result fetch, and timed wait polling.
Overview
muapi-platform is an agent skill for the Build phase that configures muapi.ai and polls async prediction results via shell helpers and the muapi CLI.
Install
npx skills add https://github.com/samuraigpt/generative-media-skills --skill muapi-platformWhat is this skill?
- setup.sh flows for --add-key, --show-config, and --test against muapi auth whoami
- check-result.sh supports --once instant read or predict wait with default 600s timeout
- Optional --json and --jq EXPR for machine-readable pipelines in agent scripts
- muapi predict result / wait CLI as the core polling surface for async jobs
- Default predict wait timeout of 600 seconds in check-result.sh
- CLI flags: --once, --timeout, --json, --jq
Adoption & trust: 689 installs on skills.sh; 3.5k GitHub stars; 2/3 security scanners passed (skills.sh audits).
What problem does it solve?
Your agent submitted a muapi.ai generative job and only got a request ID, with no standard way to wait, timeout, or parse the finished payload.
Who is it for?
Indie builders automating generative-media batches who already use muapi.ai and want copy-paste bash wrappers for auth and result polling.
Skip if: Teams that need a hosted dashboard only, or workflows with no muapi CLI and no willingness to manage API keys in the agent environment.
When should I use this skill?
After a muapi predict call returns a request ID, or when first configuring MUAPI_API_KEY for generative-media automation.
What do I get? / Deliverables
You have validated API auth and a repeatable script path to fetch or wait for prediction output as JSON for the next step in your media pipeline.
- Configured muapi auth
- Prediction result JSON or jq-filtered fields
Recommended Skills
Journey fit
Canonical shelf is Build because the skill is about connecting an external generative API and shell helpers, not ideation or launch distribution. Integrations fits API key setup, predict result/wait commands, and JSON/jq piping for downstream automation.
How it compares
Use as a thin CLI integration skill, not as a replacement for the generative model skill that actually submits prompts or images.
Common Questions / FAQ
Who is muapi-platform for?
Solo and indie builders using generative-media agent skills who need reliable muapi.ai authentication and prediction polling from the terminal.
When should I use muapi-platform?
During Build when wiring agent-tooling or integrations: after submitting a predict job, to verify keys with setup.sh --test, or to block on completion with check-result.sh and a timeout before saving assets.
Is muapi-platform safe to install?
It runs shell commands and touches API keys; review the Security Audits panel on this Prism page and rotate keys if the skill repo or supply chain is unfamiliar.
SKILL.md
READMESKILL.md - Muapi Platform
#!/bin/bash # muapi.ai Check Prediction Result # Usage: ./check-result.sh --id REQUEST_ID [--once] [--timeout 600] [--json] [--jq EXPR] set -e REQUEST_ID="" ONCE=false TIMEOUT=600 JSON_ONLY=false JQ_EXPR="" while [[ $# -gt 0 ]]; do case $1 in --id) REQUEST_ID="$2"; shift 2 ;; --once) ONCE=true; shift ;; --timeout) TIMEOUT="$2"; shift 2 ;; --json) JSON_ONLY=true; shift ;; --jq) JQ_EXPR="$2"; shift 2 ;; --help|-h) echo "Usage: ./check-result.sh --id REQUEST_ID [--once] [--timeout N] [--json] [--jq EXPR]" exit 0 ;; *) shift ;; esac done if [ -z "$REQUEST_ID" ]; then echo "Error: --id is required" >&2; exit 1; fi ARGS=() [ "$JSON_ONLY" = true ] && ARGS+=(--output-json) [ -n "$JQ_EXPR" ] && ARGS+=(--jq "$JQ_EXPR") if [ "$ONCE" = true ]; then muapi predict result "$REQUEST_ID" "${ARGS[@]}" else muapi predict wait "$REQUEST_ID" --timeout "$TIMEOUT" "${ARGS[@]}" fi #!/bin/bash # muapi.ai Platform Setup # Usage: ./setup.sh --add-key [KEY] | --show-config | --test set -e case "${1:-}" in --add-key) if [ -n "${2:-}" ]; then MUAPI_API_KEY="$2" muapi auth configure --api-key "$2" else muapi auth configure fi ;; --show-config) muapi auth whoami ;; --test) muapi auth whoami > /dev/null && echo "API key is valid!" ;; --help|-h) echo "muapi.ai Platform Setup" echo "" echo "Usage:" echo " ./setup.sh --add-key [KEY] Save API key" echo " ./setup.sh --show-config Show current configuration" echo " ./setup.sh --test Test API key validity" ;; *) echo "Usage: ./setup.sh --add-key [KEY] | --show-config | --test" ;; esac --- name: muapi-platform version: 0.1.0 description: Setup and utility scripts for muapi.ai — configure API keys, test connectivity, and poll for async generation results --- # ⚙️ MuAPI Platform Utilities **Setup and polling utilities for the muapi.ai platform.** Configure your API key, verify connectivity, and poll for async generation results. ## Available Scripts | Script | Description | | :--- | :--- | | `setup.sh` | Configure API key, show config, test key validity | | `check-result.sh` | Poll for async generation results by request ID | ## Quick Start ```bash # Save your API key bash setup.sh --add-key "YOUR_MUAPI_KEY" # Show current configuration bash setup.sh --show-config # Test API key validity bash setup.sh --test # Poll for a result (waits for completion) bash check-result.sh --id "your-request-id" # Check once without polling bash check-result.sh --id "your-request-id" --once ``` ## Requirements - `curl`