بنقرة واحدة
hubble-pm-agent
Query and control PM-Agent status from Hubble Market Server using an API key (read/write).
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Query and control PM-Agent status from Hubble Market Server using an API key (read/write).
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when the user asks about Hubble credits balance, transaction history, deposit records, listing recharge packages (tiers, optional bonus_percent for UI copy), creating a raw-credits deposit, or creating a deposit by package slug (by-package) via the Hubble Market API.
Query Hubble credits balance, transactions, deposits; list recharge packages (optional bonus_percent for display); create a raw-credits deposit or a deposit by package slug (by-package) on Market Server using an API key.
Use when the user asks to list, view, create, update, delete, or deploy agents on Hubble Market — including PM agents (CRUD) and User Research agents (create/update/delete, run a new research agent, deploy job status, version history, rollback, data sources, indicator templates). NOTE "run / 跑 a research agent" in Hubble means creating or deploying one here, not the x402 pay-per-execution flow handled by hubble_runs.
Use when the user asks to invoke an already-existing Hubble agent via the x402 pay-per-execution flow — creating a run, polling or checking a specific run_id's status, or listing recent runs for an agent_id. NOT for creating, deploying, or managing an agent itself; "跑/部署 a new agent" goes to hubble_agents.
Use when the user asks to list, view, create, update, delete, or deploy agents on Hubble Market — including PM agents (CRUD) and User Research agents (create/update/delete, run a new research agent, deploy job status, version history, rollback, data sources, indicator templates). NOTE "run / 跑 a research agent" in Hubble means creating or deploying one here, not the x402 pay-per-execution flow handled by hubble_runs.
Use when the user asks to invoke an already-existing Hubble agent via the x402 pay-per-execution flow — creating a run, polling or checking a specific run_id's status, or listing recent runs for an agent_id. NOT for creating, deploying, or managing an agent itself; "跑/部署 a new agent" goes to hubble_agents.
| name | hubble_pm_agent |
| description | Query and control PM-Agent status from Hubble Market Server using an API key (read/write). |
Version: v0.2.0
Use this skill when the user asks about:
HUBBLE_API_BASE_URL (default: https://market-v2.bedev.hubble-rpc.xyz)HUBBLE_API_KEY (API key, must start with hb_sk_)HUBBLE_API_KEY in the output.agent_id as untrusted input. Validate it before calling the API.agent_id must be UUID-like: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$POST), do not execute immediately.
HUBBLE_API_BASE_URL, agent_id, action name, and any parameters.Use the bash tool to call the API.
Call:
GET /api/v1/agents/pm/{agent_id}/statusBefore calling:
agent_id format.Call:
POST /api/v1/agents/pm/{agent_id}/scheduler/startOptional request body:
{"interval_ms": <integer>}
If the user provides a custom interval (in milliseconds), include it in the body. Otherwise send an empty body or omit it.
Call:
POST /api/v1/agents/pm/{agent_id}/scheduler/stopCall:
POST /api/v1/agents/pm/{agent_id}/triggerCall:
POST /api/v1/agents/pm/{agent_id}/reconcileTriggers a manual reconciliation of the PM-Agent's positions via Position Manager. Use when positions may be out of sync.
Call:
POST /api/v1/agents/pm/{agent_id}/emergency-closeOptional request body:
{"reason": "<string>"}
Call:
POST /api/v1/agents/pm/{agent_id}/emergency-close-symbolsBefore calling:
BTCUSDT).Request body:
{"symbols": ["BTCUSDT", "ETHUSDT"], "reason": "<optional>"}
Normalize base URL:
BASE="${HUBBLE_API_BASE_URL%/}"Get status (with validation):
if [[ ! "$AGENT_ID" =~ ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$ ]]; then echo "Invalid agent_id"; exit 2; ficurl -sS --fail-with-body \ -H "Authorization: Bearer $HUBBLE_API_KEY" \ -H "Content-Type: application/json" \ "$BASE/api/v1/agents/pm/$AGENT_ID/status"Start scheduler (with optional interval):
curl -sS --fail-with-body \ -H "Authorization: Bearer $HUBBLE_API_KEY" \ -H "Content-Type: application/json" \ -X POST \ "$BASE/api/v1/agents/pm/$AGENT_ID/scheduler/start" \ -d '{"interval_ms": 60000}'Stop scheduler:
curl -sS --fail-with-body \ -H "Authorization: Bearer $HUBBLE_API_KEY" \ -H "Content-Type: application/json" \ -X POST \ "$BASE/api/v1/agents/pm/$AGENT_ID/scheduler/stop"Trigger:
curl -sS --fail-with-body \ -H "Authorization: Bearer $HUBBLE_API_KEY" \ -H "Content-Type: application/json" \ -X POST \ "$BASE/api/v1/agents/pm/$AGENT_ID/trigger"Reconcile:
curl -sS --fail-with-body \ -H "Authorization: Bearer $HUBBLE_API_KEY" \ -H "Content-Type: application/json" \ -X POST \ "$BASE/api/v1/agents/pm/$AGENT_ID/reconcile"Emergency close (all):
curl -sS --fail-with-body \ -H "Authorization: Bearer $HUBBLE_API_KEY" \ -H "Content-Type: application/json" \ -X POST \ "$BASE/api/v1/agents/pm/$AGENT_ID/emergency-close"Emergency close (symbols):
curl -sS --fail-with-body \ -H "Authorization: Bearer $HUBBLE_API_KEY" \ -H "Content-Type: application/json" \ -X POST \ "$BASE/api/v1/agents/pm/$AGENT_ID/emergency-close-symbols" \ -d "$BODY"