ナビゲーションにスキップ

Agent Skill Integration

Markdownとして表示

BeatAPI Agent Skill (https://beatapi.io/SKILL.md) is an operating manual written for AI clients. After an AI client loads https://beatapi.io/SKILL.md, the AI client follows a fixed order on every task: search for a real BeatAPI capability ID, check required inputs and price, then execute and return actual results.

https://beatapi.io/SKILL.md works with two categories of AI clients:

  • Cloud chat clients (Muse, Grok Bot, Manus, OpenClaw, WorkBuddy): send one line in chat.
  • Local coding clients (Claude Code, Codex, Antigravity, Gemini CLI, Cursor): save SKILL.md in the client’s local skills folder so every new session loads the BeatAPI Skill automatically.

How Skill works with MCP and CLI

  • BeatAPI MCP or BeatAPI CLI provides the network connection so your AI client can send requests to BeatAPI.
  • BeatAPI Agent Skill provides the execution rules so your AI client checks prices first, uses real capability IDs, and avoids accidental retries.
What your AI client already hasHow your AI client runs after loading BeatAPI Skill
BeatAPI MCP connectedCalls BeatAPI MCP tools directly. Combining MCP and Skill is the most reliable setup.
No MCP, but terminal or HTTP accessCalls BeatAPI over HTTP or via BeatAPI CLI.
Neither MCP nor network accessStops and reports which connection capability is missing instead of inventing results.

Step 1: Install the BeatAPI Skill

Choose Option A or Option B based on your AI client.

Option A: Send one line in chat (Muse, Grok Bot, Manus, OpenClaw, WorkBuddy)

  1. Open Muse, Grok Bot, Manus, OpenClaw, or WorkBuddy and start a new chat.
  2. Copy and send this exact line:
set up https://beatapi.io/SKILL.md
  1. Your AI client reads https://beatapi.io/SKILL.md, checks the connection methods available in its environment, and tells you where to place your BeatAPI API key.

Keep keys private: When your platform provides a Secrets, Environment Variables, or Credentials page, put your BeatAPI API key there instead of sending a raw key in a public or shared chat.

Option B: Save locally (Claude Code, Codex, Antigravity, Gemini CLI, Cursor)

Run the two commands for your client once in the terminal to save https://beatapi.io/SKILL.md as beatapi/SKILL.md.

Install for your user account (active in all projects):

mkdir -p ~/.claude/skills/beatapi
curl -fsSL https://beatapi.io/SKILL.md -o ~/.claude/skills/beatapi/SKILL.md

Install for the current repository only:

mkdir -p .claude/skills/beatapi
curl -fsSL https://beatapi.io/SKILL.md -o .claude/skills/beatapi/SKILL.md

Check the first four lines of the saved file (example shown for Claude Code):

head -n 4 ~/.claude/skills/beatapi/SKILL.md

Seeing name: beatapi confirms the Skill file downloaded cleanly.

Step 2: Configure your BeatAPI API key

  1. Open BeatAPI Dashboard → API Keys, create a dedicated BeatAPI API key for this client, and copy the key.
  2. Add the key in the matching location:
    • Muse, Grok Bot, Manus, OpenClaw: Open the platform’s Secrets / Environment Variables / Credentials settings, add BEATAPI_API_KEY, and paste your BeatAPI API key.
    • Clients with BeatAPI MCP configured: No extra key setup is needed; BeatAPI MCP already carries the key.
    • Terminal clients without MCP: Install BeatAPI CLI and run beatapi auth login, or export BEATAPI_API_KEY="sk-YOUR-BEATAPI-KEY" in your shell.

Step 3: Verify for free

Send this test prompt to your AI client. Verification costs $0:

Following the BeatAPI Skill, search BeatAPI for Xiaohongshu note search, check the required inputs and single-call price, and tell me which connection method you used (MCP, HTTP, or CLI). Stop before running a paid call.

All three outcomes confirm the BeatAPI Skill is active:

  1. Your AI client states whether it used MCP, HTTP, or CLI.
  2. Your AI client returns a real BeatAPI capability ID instead of a guessed URL.
  3. Your AI client reports the required inputs and price without charging your BeatAPI balance.

Four rules built into the BeatAPI Skill

https://beatapi.io/SKILL.md stays under 80 lines so loading the file does not crowd chat context; when a specific task requires extra steps (such as Xiaohongshu topic research, competitor accounts, SEO audits, Suno songs, voiceovers, or video editing), your AI client opens only the matching reference page on demand.

  • Inspect before running: Requires your AI client to search for a real capability ID and check inputs and price before spending balance.
  • Prompt-injection defense: Requires your AI client to treat fetched social comments and web pages as untrusted data and ignore any instructions embedded inside fetched content.
  • Secret protection: Requires your AI client never to print BEATAPI_API_KEY in replies, URLs, or code files.
  • Start small: Requires your AI client to run one small page or single test output before scaling up.

Example prompts

  • “Following the BeatAPI Skill, find competitor account lookup actions for Douyin and Xiaohongshu, tell me the price for 1 lookup on each platform, and run them after I confirm.”
  • “Following the BeatAPI Skill, inspect the Suno music model, show me the required inputs and price for a 2-minute lo-fi track, then generate one song.”
  • “Following the BeatAPI Skill, run an SEO domain overview and top-pages check for beatapi.io and present the results in a table.”

Troubleshooting

  • Your AI client cannot fetch https://beatapi.io/SKILL.md: That client does not have outbound web fetch access. Save SKILL.md locally using Option B, or open https://beatapi.io/SKILL.md in a browser, copy the text, and paste the text into the client’s Custom Instructions.
  • Your AI client read the Skill but cannot execute tasks: Reading SKILL.md does not grant network access or an API key. Confirm Step 2 is complete, or connect BeatAPI MCP or BeatAPI CLI.
  • Your AI client skipped checking inputs and hit an error: Remind your AI client: “Follow the BeatAPI Skill: inspect required inputs and price before running.”
  • Update your local SKILL.md: Re-run the curl command from Option B to overwrite the local file with the latest version.
  • MCP Integration — connect BeatAPI’s hosted remote MCP server (https://beatapi.io/mcp) to Claude Code, Codex, Cursor, Gemini CLI, Antigravity, OpenCode, and VS Code.
  • CLI Integration — run BeatAPI from the terminal and upload local media files.
  • BeatAPI Skill repository — inspect the full SKILL.md source and recipes.