← 返回
未分类 Key 中文

aicade-create-service

Use when registering, updating, querying, or disabling aicade service-management APIs under /services, especially when preparing service metadata, billing, r...
用于在准备签名的 AICADE 网关服务管理请求时,进行服务注册、服务详情查询或服务禁用操作,尤其...
aicadegalaxy aicadegalaxy 来源
未分类 clawhub v1.0.3 2 版本 100000 Key: 需要
★ 0
Stars
📥 361
下载
💾 0
安装
2
版本
#latest

概述

READ BEFORE INSTALL

This skill covers signed AICADE gateway service management:

  1. Register/update service: POST /admin/gateway/services
  2. Query service detail: GET /admin/gateway/services/{serviceId}
  3. Disable service: PATCH /admin/gateway/services/{serviceId}/status?enabled=false

READ BEFORE INSTALL

aicade-create-service

Use this skill to prepare, validate, and generate signed AICADE gateway service-management requests.

Core Principle

Treat every operation as a guided, signed flow.

Do not directly generate requests from examples. First ask focused questions, confirm the user's answers, then generate the final JSON or signed curl.

The first time this skill is used in a session, confirm the service-management base URL:

The default service-management base URL is https://aicadegalaxy.com/agent. Should I use this URL?

If the user says no, ask for the actual base URL and reuse it for the rest of the session.

Required Environment

Check local environment before asking the user:

node {baseDir}/scripts/build-service-request.mjs env-check --operation register
node {baseDir}/scripts/build-service-request.mjs env-check --operation detail
node {baseDir}/scripts/build-service-request.mjs env-check --operation disable

Use existing local values without asking again:

  • AICADE_API_KEY: sent as X-API-Key
  • AICADE_API_SECRET_KEY: used to generate X-Signature

Ask only for missing values. SECRET_KEY is accepted as a compatibility alias for AICADE_API_SECRET_KEY.

Workflow

1. Identify Operation

  • Register/update: collect and confirm full camelCase registration JSON.
  • Detail: collect and confirm serviceId.
  • Disable: collect and confirm serviceId; do not ask for operator.

2. Load References

Read these references when needed:

  • references/register-intake.md for registration questions
  • references/service-operations-intake.md for detail and disable questions
  • references/service-management-api.md for signed API rules, fields, and errors

3. Register Intake

Collect registration fields in small groups:

  1. Service identity: serviceId, serviceName, description, tags
  2. Endpoint and route: endpointUrl, requestMethod, routePath, stripPrefix, routeOrder, timeoutMs, enabled
  3. Outbound auth: authType, authLocation, outboundAuth
  4. Contract: inputSchema, outputSchema
  5. Billing: billingType, currency, prices, limits, fallbackStrategy
  6. Rate limits: service/user/IP limits and token limits
  7. Final review: show assembled JSON and ask for confirmation before generating signed curl

Use camelCase request body fields. Do not emit old snake_case fields such as service_id, endpoint_url, input_schema, or rate_limits.

4. Validate Register JSON

Before generating signed curl, check:

  • AICADE_API_KEY and AICADE_API_SECRET_KEY are available.
  • base URL has been confirmed.
  • serviceId uses lowercase letters, digits, and hyphens only, length 3-64.
  • endpointUrl starts with http:// or https://.
  • routePath starts with /; add it if the user omitted it.
  • timeoutMs is between 1000 and 300000 when set.
  • stripPrefix is between 0 and 10 when set.
  • inputSchema and outputSchema are present.
  • billing.billingType, billing.currency, and billing.fallbackStrategy are present.
  • outboundAuth exists when authType is not NONE.

5. Generate Requests

Use scripts/build-service-request.mjs to print signed curl. The script generates:

  • X-Client-Time
  • X-Nonce
  • X-Content-MD5
  • X-Signature

The script does not call the remote API; it only prints curl.

Endpoint Summary

OperationMethodPath / QueryRequired headers
------------
Register/updatePOST/admin/gateway/servicesX-API-Key, X-Client-Time, X-Nonce, X-Content-MD5, X-Signature, Content-Type
DetailGET/admin/gateway/services/{serviceId}X-API-Key, X-Client-Time, X-Nonce, X-Content-MD5, X-Signature
DisablePATCH/admin/gateway/services/{serviceId}/status?enabled=falseX-API-Key, X-Client-Time, X-Nonce, X-Content-MD5, X-Signature

Error Handling

If any service-management API returns 401, treat it as an API key or signature error.

Check:

  • AICADE_API_KEY
  • AICADE_API_SECRET_KEY
  • signature path
  • signature query
  • body MD5
  • client timestamp and nonce

Do not diagnose 401 as a service registration JSON, serviceId, route, billing, or schema problem.

If the API returns 422, treat it as request validation failure and inspect the JSON field names and values.

Common Mistakes

  • Do not ask for the base URL repeatedly; confirm once per session, defaulting to https://aicadegalaxy.com/agent.
  • Do not ask for credentials already present in local environment.
  • Do not generate unsigned curl.
  • Do not use old /services endpoints.
  • Do not disable with POST /services/disable; use signed PATCH .../status?enabled=false.
  • Do not ask for or send operator headers.
  • Do not use snake_case registration fields.
  • Do not reuse a previous serviceId unless the user confirms it.

Files Included

  • references/service-management-api.md
  • references/register-intake.md
  • references/service-operations-intake.md
  • scripts/build-service-request.mjs
  • assets/register-service.template.json
  • assets/register-service.example.json

版本历史

共 2 个版本

  • v1.0.3 当前
    2026-06-14 19:50
  • v1.0.0
    2026-05-07 20:31 安全 安全

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装后可防止您和您的用户受到提示注入、数据泄露及恶意行为的侵害。
★ 116 📥 30,987
ai-agent

aicade galaxy create app skill

aicadegalaxy
通过将用户的基础提示与 3.1 工作流参考中的平台补充相结合,构建通用的 aicade 应用提示,然后进行组装。
★ 0 📥 688
it-ops-security

Free Ride - Unlimited free AI

shaivpidadi
管理OpenClaw的OpenRouter免费AI模型,自动按质量排名模型,配置速率限制备用方案,并更新opencla...
★ 471 📥 78,315