Token导航 LogoToken导航

Agent Skill · 研究检索

mindstudio-to-api-custom-function-builder(mindstudio TO API custom function 构建器)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

mindstudio-to-api-custom-function-builder 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 19,083。

总安装 5,773周安装 248GitHub Stars 1下载 2,024核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.1.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mindstudio-to-api-custom-function-builder(mindstudio TO API custom function 构建器)
来源仓库:https://github.com/sol1986/mindstudio-to-api-custom-function-builder
安装命令:
openclaw skills install mindstudio-to-api-custom-function-builder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install mindstudio-to-api-custom-function-builder

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

该技能为任意 API 构建 MindStudio Run Function 集成方案。适合第三方服务对接与自定义函数封装场景。自动生成请求 schema 与错误处理逻辑。

安装命令:openclaw skills install mindstudio-to-api-custom-function-builder;需提供 API 文档或样例。注意接口限流与重试机制设计,保障稳定性。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install mindstudio-to-api-custom-function-builder;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

mindstudio-to-api-custom-function-builder 怎么安装?

在终端执行 openclaw skills install mindstudio-to-api-custom-function-builder。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

mindstudio-to-api-custom-function-builder 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

mindstudio-to-api-custom-function-builder 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

mindstudio-to-api-custom-function-builder 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

mindstudio-to-api-custom-function-builder 用的人多吗?

公开数据是累计安装 5,773 次,近一周安装 248 次,下载 2,024 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

mindstudio-to-api-custom-function-builder 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
mindstudio-to-api-custom-function-builder

mindstudio TO API custom function 构建器 · 本页

5,7731接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
mindstudio-to-api-custom-function-builder
description
Build a complete MindStudio Run Function integration for any API the user wants to connect. Use this skill whenever the user mentions MindStudio, wants to connect an API to a workflow, asks for a "Run Function", wants to call an external service from MindStudio, or says things like "I want to use X API in MindStudio", "build me a MindStudio function for X", "how do I connect X to MindStudio", or "write me a script for MindStudio". Always use this skill — do not try to wing it from memory.

MindStudio Function Builder

Produce a complete, ready-to-paste MindStudio custom function for any API the user wants to connect. Always output all three sections: Code Tab, Configuration Tab, and Test Data Tab.


What to gather before writing

Before writing, collect (from the conversation or by asking):

  1. API endpoint — the full URL to call
  2. HTTP method — GET, POST, etc.
  3. Authentication — API key header name, Bearer token, Basic auth, OAuth, or none
  4. Required fields — what parameters/body fields the API needs
  5. Optional fields — any useful optional params (like research_effort, language, model, etc.)
  6. Response shape — what fields come back (ask or infer from docs/examples)
  7. Output variables — what the user wants to store in their workflow after the call
  8. Execution environment — Sandbox (default, fast) or Virtual Machine (needed for npm packages)

If the user pastes API docs or a code example, extract all of the above from it directly. Only ask for what's missing.


Output Format

Always produce exactly these three sections, in this order, formatted as fenced code blocks.


Section 1 — Code Tab (JavaScript)

Rules:

  • Read all user-configurable values from ai.config.*
  • CRITICAL — input vs output variable pattern:

- inputVariable type config fields are resolved by MindStudio BEFORE the code runs. The value arrives as a plain string. Always read them as ai.config.fieldName directly. NEVER use ai.vars[ai.config.fieldName] for inputs. - outputVariableName type config fields hold the NAME of a workflow variable chosen by the user. Always write outputs as ai.vars[ai.config.outputVarName] = value so results land in the right place.

  • Always validate required fields and throw clear errors if missing
  • Use ai.log(...) to show progress to the user during long calls
  • Use await fetch(...) for HTTP calls — no imports needed in Sandbox
  • Wrap the fetch in try/catch and re-throw with a readable message
  • Use input not query for You.com APIs (learned fix)
  • For Virtual Machine functions, export a named handler async function

Template structure:

// --- Read config ---
const apiKey   = ai.config.apiKey;
const inputVal = ai.config.inputField;   // inputVariable type: value is already resolved, read directly from ai.config
const optional = ai.config.optionalField || "default_value";

// --- Validate ---
if (!apiKey)   throw new Error("Missing API key. Set it in block configuration.");
if (!inputVal) throw new Error("Missing [field]. Provide it in block configuration.");

ai.log("Calling [API name]...");

// --- Request ---
const url = "https://api.example.com/endpoint";
const res = await fetch(url, {
  method: "POST",           // or GET, etc.
  headers: {
    "Authorization": `Bearer ${apiKey}`,   // adjust per API auth style
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    field: inputVal,
    option: optional
  })
});

if (!res.ok) {
  const err = await res.text();
  throw new Error(`[API name] error (${res.status}): ${err}`);
}

const data = await res.json();
ai.log("Done. Storing results...");

// --- Store outputs ---
// outputVariableName type: user names the variable, so use ai.vars[ai.config.outputMain] pattern
ai.vars[ai.config.outputMain]  = data.someField ?? JSON.stringify(data);
ai.vars[ai.config.outputRaw]   = JSON.stringify(data);

Section 2 — Configuration Tab

Rules:

  • Use "secret" type for API keys — never "text"
  • Use "inputVariable" type for fields that should accept a {{variable}} from the workflow. MindStudio resolves the value before code runs — read it in code as ai.config.fieldName, not via ai.vars
  • Use "select" type with selectOptions for fixed-choice fields (e.g. model names, effort levels)
  • Use "outputVariableName" type for fields where the user names their output variables
  • Group into logical sections with clear title values
  • Add helpText to every item
  • Never include a dropdown for something the user controls via a workflow variable

Template:

config = {
  configurationSections: [
    {
      title: "API Settings",
      items: [
        {
          type: "secret",
          label: "API Key",
          variable: "apiKey",
          helpText: "Your [API name] API key. Stored securely, not transferred on remix."
        },
        {
          type: "inputVariable",
          label: "Input Field Label",
          variable: "inputField",
          helpText: "Description of what this input does. Use a {{variable}} from your workflow or type a value directly."
        },
        {
          type: "select",
          label: "Option Label",
          variable: "optionalField",
          helpText: "Description of this option.",
          selectOptions: [
            { label: "Option A", value: "value_a" },
            { label: "Option B", value: "value_b" }
          ]
        }
      ]
    },
    {
      title: "Output",
      items: [
        {
          type: "outputVariableName",
          label: "Main Output Variable",
          variable: "outputMain",
          helpText: "Workflow variable where the main result will be stored."
        },
        {
          type: "outputVariableName",
          label: "Raw Response Variable",
          variable: "outputRaw",
          helpText: "Workflow variable for the full raw JSON response."
        }
      ]
    }
  ]
}

Section 3 — Test Data Tab

Rules:

  • Mirror every ai.config.* variable used in the code
  • Use realistic placeholder values (not "test123")
  • Use the actual default output variable names the user will likely use
  • Match the output variable name values to what the user typed in the Output section config fields
  • For inputVariable type fields, set the value directly in config (not in vars) — e.g. inputField: "AAPL". MindStudio does not require a vars entry for these during testing.

Template:

environment = {
  vars: {},
  config: {
    apiKey:        "your-api-key-here",
    inputField:    "A realistic example input for this API",
    optionalField: "value_a",
    outputMain:    "result",
    outputRaw:     "resultJSON"
  }
}

API Authentication Patterns

Auth typeHeader / approach
API key header"X-API-Key": apiKey
Bearer token"Authorization": \Bearer ${apiKey}\``
Basic auth"Authorization": "Basic " + btoa(user + ":" + pass)
No authOmit headers object or leave empty

Execution Environment Notes

Sandbox (default — use unless told otherwise):

  • Runs in <50ms
  • No npm installs
  • fetch, JSON, ai.* methods all available
  • Python via Pyodide (no pip in Sandbox)
  • Does NOT support browser/Node APIs like URLSearchParams, Buffer, process, require, crypto, fs, or path

Virtual Machine (use when npm packages needed):

  • Slower (~5s+ startup)
  • Full Node.js or Python
  • Must export a handler function:
import * as someLib from 'some-lib';

export const handler = async () => {
  // your code here
  ai.vars.result = someLib.doSomething();
};

Common Mistakes to Avoid

  • NEVER use ai.vars[ai.config.fieldName] for input fields. inputVariable type config fields are resolved by MindStudio before the code runs and arrive as plain strings via ai.config.fieldName. Only use the ai.vars[ai.config.outputVarName] pattern for output variables where the user has named where results should land.
  • Never use URLSearchParams in Sandbox — it is not available. Build query strings manually instead:
  let query = "?token=" + apiKey;
  if (symbol) query += "&symbol=" + encodeURIComponent(symbol);
  const url = "https://api.example.com/endpoint" + query;
  • Never use Buffer, process, require, crypto, or fs in Sandbox — these are Node.js APIs not available there
  • Never use query as a body field for You.com APIs — use input
  • Never use backtick template literals to inject {{variables}} into HTML — use <script type="application/json"> instead
  • Never hardcode API keys in the Code Tab — always use ai.config.apiKey with "secret" type
  • Never use ai.vars.outputName = value when the output variable name is user-configured — use ai.vars[ai.config.outputVarName] = value
  • Don't add a config dropdown for a value the user sets via a workflow variable — read it from ai.vars instead

After Delivering the Function

Always end with a short note explaining:

  1. What each output variable contains
  2. Which config fields the user needs to fill in before running
  3. Any gotchas specific to this API (rate limits, required plan tier, field naming quirks, etc.)

平台分布

OpenClaw

88.57%
按下载量换算1,793

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills