AICADE Galaxy Skills
Use This Skill When
- - The user wants to use AICADE Galaxy platform capabilities from https://www.aicadegalaxy.com/
- The user wants AI payment, paid API, membership, subscription, earning, or token-based tool access
- The user wants to discover the latest platform tools from the AICADE Galaxy gateway
Core Rule
- - On first install or first activation, always run
bootstrap before doing anything else - INLINECODE1 must complete environment setup and artifact export in the same flow
- Do not call
invoke_artifact before bootstrap succeeds - Host integrations should read
skill-entry.json as the machine-readable source of truth for install, export, list, and invoke commands - If the host platform supports an install hook or post-install command, bind it to
scripts/bootstrap.mjs or INLINECODE6 - If the host platform does not support install hooks, the first command after install must still be INLINECODE7
Runtime Rule
- - Prefer
node first - If
node is unavailable, use INLINECODE10 - If both are unavailable, ask the user to install Node.js
Required Environment
This skill uses these .env variables:
- - INLINECODE12
- INLINECODE13
- INLINECODE14
Authentication:
- - Header name: INLINECODE15
- Header value source: INLINECODE16
Default output directory:
Install And Prepare
Run this on install or first activation:
CODEBLOCK0
Fallback when node is unavailable:
CODEBLOCK1
Bootstrap behavior:
- - Checks whether
.env already has required values - Runs
setup_env when values are missing - Runs
export_artifact immediately after setup - Produces INLINECODE22
Main Capabilities
Discover Current Platform Tools
Export the latest dynamic tool list from /admin/gateway/services:
CODEBLOCK2
Fallback:
CODEBLOCK3
Artifact path:
INLINECODE24
Invoke A Platform Tool
Pass request parameters through an args file:
CODEBLOCK4
Fallback:
CODEBLOCK5
Args file example:
CODEBLOCK6
Invoker behavior:
- - Reads the artifact and finds the target tool by INLINECODE25
- Reads parameters from INLINECODE26
- Validates required fields against INLINECODE27
- Calls the real platform endpoint with the tool's metadata
- Returns normalized JSON output
Normalized output:
- - Success: INLINECODE28
- Failure: INLINECODE29
List Current Supported Tools
INLINECODE30 does not hardcode the live service list. The latest supported tools come from the exported artifact.
Use:
CODEBLOCK7
Fallback:
CODEBLOCK8
Use the artifact or list_tools result as the source of truth for current services.
AICADE Galaxy 技能
使用此技能的时机
- - 用户想要使用来自 https://www.aicadegalaxy.com/ 的 AICADE Galaxy 平台功能
- 用户想要使用 AI 支付、付费 API、会员、订阅、收益或基于代币的工具访问
- 用户想要从 AICADE Galaxy 网关发现最新的平台工具
核心规则
- - 首次安装或首次激活时,务必先运行 bootstrap,然后再执行其他操作
- bootstrap 必须在同一流程中完成环境设置和工件导出
- 在 bootstrap 成功之前,不要调用 invoke_artifact
- 主机集成应读取 skill-entry.json,将其作为安装、导出、列出和调用命令的机器可读真实来源
- 如果主机平台支持安装钩子或安装后命令,则将其绑定到 scripts/bootstrap.mjs 或 scripts/bootstrap.py
- 如果主机平台不支持安装钩子,安装后的第一个命令仍必须是 bootstrap
运行时规则
- - 优先使用 node
- 如果 node 不可用,则使用 python3
- 如果两者都不可用,请要求用户安装 Node.js
所需环境
此技能使用以下 .env 变量:
- - AICADEGALAXYBASEURL
- AICADEGALAXYAPIKEY
- AICADEGALAXYOUTPUT_PATH
认证方式:
- - 请求头名称:X-API-Key
- 请求头值来源:AICADEGALAXYAPI_KEY
默认输出目录:
安装与准备
在安装或首次激活时运行:
bash
node {baseDir}/scripts/bootstrap.mjs
当 node 不可用时的备用方案:
bash
python3 {baseDir}/scripts/bootstrap.py
Bootstrap 行为:
- - 检查 .env 是否已包含所需值
- 当缺少值时运行 setupenv
- 设置完成后立即运行 exportartifact
- 生成 {AICADEGALAXYOUTPUT_PATH}/aicade-galaxy-skill.json
主要功能
发现当前平台工具
从 /admin/gateway/services 导出最新的动态工具列表:
bash
node {baseDir}/scripts/export_artifact.mjs
备用方案:
bash
python3 {baseDir}/scripts/export_artifact.py
工件路径:
{AICADEGALAXYOUTPUT_PATH}/aicade-galaxy-skill.json
调用平台工具
通过参数文件传递请求参数:
bash
node {baseDir}/scripts/invokeartifact.mjs --artifact {AICADEGALAXYOUTPUTPATH}/aicade-galaxy-skill.json --tool TOOL_NAME --args-file /tmp/invoke.json
备用方案:
bash
python3 {baseDir}/scripts/invokeartifact.py --artifact {AICADEGALAXYOUTPUTPATH}/aicade-galaxy-skill.json --tool TOOL_NAME --args-file /tmp/invoke.json
参数文件示例:
json
{
city: Beijing,
responsePaths: [reason, error_code]
}
调用器行为:
- - 读取工件并根据 name 查找目标工具
- 从 --args-file 读取参数
- 根据 inputSchema 验证必填字段
- 使用工具的元数据调用真实的平台端点
- 返回标准化 JSON 输出
标准化输出:
- - 成功:{ok: true, status: 200, tool: ..., serviceId: ..., data: ..., raw: ...}
- 失败:{ok: false, status: 4xx/5xx, tool: ..., serviceId: ..., error: {message: ..., raw: ...}}
列出当前支持的工具
SKILL.md 不会硬编码实时服务列表。最新支持的工具来自导出的工件。
使用:
bash
node {baseDir}/scripts/listtools.mjs --artifact {AICADEGALAXYOUTPUTPATH}/aicade-galaxy-skill.json
备用方案:
bash
python3 {baseDir}/scripts/listtools.py --artifact {AICADEGALAXYOUTPUTPATH}/aicade-galaxy-skill.json
将工件或 list_tools 结果作为当前服务的真实来源。