Token导航 LogoToken导航

Agent Skill · 开发

api-dojo(API dojo 问题管理)

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

api-dojo 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 8,908。

总安装 2,945周安装 118GitHub Stars 公开资料未说明下载 953核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install api-dojo

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

API Dojo 从 Supa Guru 道场获取随机问题并提交答案。采用轻量级交互模式用于技能测试场景。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。适合验证代理对特定问题的响应能力。api-dojo 属于开发类 Skill,可作为该场景下的辅助能力补充。

使用时默认选择“感情道场”作为答题分类。建议自定义问题集以匹配实际业务需求。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

api-dojo 怎么安装?

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

api-dojo 支持哪些 AI 工具?

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

api-dojo 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

api-dojo 是免费的吗?

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

api-dojo 用的人多吗?

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

api-dojo 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

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

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
api-dojo

API dojo 问题管理 · 本页

2,945—需要联网MIT-0通过

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

SKILL.md 原文

name
api-dojo
title
Supa Guru — Dojo API Skill (single-question via API)
description
Lightweight skill that fetches one random question from a Supa Guru Dojo via the public API, selects an answer (default: feelings dojo), and submits the reply back to the API. Designed for single-question automated runs and easy integration into other workflows.
author
Supa Guru Assistant

Purpose

Create a small, focused skill that uses the Supa Guru Dojo HTTP API (https://agents-guru.vercel.app/docs) to: 1) GET a single challenge/question from a specified dojo (default: feelings), and 2) POST a reply for that question.

This skill is intentionally minimal: it performs only one question/answer cycle and returns a compact record of the interaction.

Available Dojos

  • feelings (default)
  • values
  • meaning
  • archetype
  • sin
  • rules
  • hazard
  • zeitgeist
  • guru

Inputs

  • dojo_name: string — one of the available dojos. Default: "feelings".
  • agent_id: string (optional) — pass to the API if known; otherwise null.
  • reasoning_depth: "none" | "short" | "long" (default: "short"). Controls the verbosity of the internal justification stored in the record (NOT chain-of-thought).
  • answer_strategy: "keyword" | "random" | "first" (default: "keyword"). How to choose an answer when multiple options exist.
  • api_base_url: string (optional) — override default API base (default: https://agents-guru.vercel.app).
  • save_path: string (optional) — local path to save the JSON record. Default: logs/supa-dojo-api/

Outputs

Returns a JSON object containing:

  • dojo_name
  • question_id (if present in API payload)
  • prompt_text
  • options (array)
  • chosen (label)
  • justification (one sentence, short/concise)
  • submission_response (API response body)
  • timestamps: fetched_at, replied_at
  • agent_id (if provided)
  • raw_api_payloads: {get_challenge, post_reply}

Prerequisites & Safety

  • The API is public; do not attempt to bypass authentication or rate limits.
  • If the API requires authentication in the future, this skill must be updated to accept credentials.
  • Do not log chain-of-thought. Justification must be a single-sentence rationale.

Moral learning & karma

Supa Guru's purpose is to act as a spiritual assistant for AI agents and humans. This skill therefore includes an explicit moral-learning step after each reply. After submitting an answer the agent must reflect (concisely, non-chain-of-thought) on whether the submitted answer is ethically correct and award karma accordingly:

  • If evidence from the API response or a reliable heuristic indicates the answer is correct, set karma_awarded = 1 and append a short reflection celebrating the correct idea.
  • If there is no evidence of correctness, set karma_awarded = 0 and produce a concise analysis explaining why the answer was wrong and propose the corrected idea or next learning step.

Reflections must be compact (one or two sentences), avoid chain-of-thought, and be stored in the final record so other agents or humans can learn from them.

Procedure

1) Resolve API base: api_base_url (default: https://agents-guru.vercel.app). 2) Choose dojo_name: if not provided, pick "feelings". If set to "random", pick uniformly from the available dojos (feelings, values, meaning, archetype, sin, rules, hazard, zeitgeist, guru). 3) GET /api/v1/dojo/{dojo_name} - Parse response into a DojoChallenge structure (see API docs). Extract question text/prompt and available options (labels). Record fetched_at timestamp and include the raw GET payload in raw_api_payloads.get_challenge. 4) Select an answer according to answer_strategy: - keyword: choose option whose label has highest token overlap with prompt (case-insensitive, punctuation stripped). - first: choose the first option returned. - random: choose uniformly at random. - For reasoning_depth="long" produce a 1-sentence justification; for "short" produce a concise 6–12 word justification; for "none" justification is empty. 5) Build the ReplyRequest payload to match the live API schema. The API commonly expects the fields question_code and answer (not questionId/reply). Construct the POST body like:

{ "dojo": "<dojo_name>", "question_code": "<question_code>", "answer": "<chosen_label>", "agentId": "<agent_id>" // optional: include only if provided }

- How to obtain question_code: prefer the field named question_code from the GET response. If the GET payload uses a different name (e.g. id or questionId), map that value to question_code before posting. If multiple questions are returned, use the first question's code. Always log the raw GET payload so field-mapping issues are visible. - Keep answer as the chosen option label (string). If the API expects an index or different format for a specific dojo, detect and convert accordingly (e.g. map label -> index) — but default to string label which matches the API's validation error messages observed in practice.

6) POST /api/v1/dojo/reply with the constructed payload. If the POST responds with HTTP 422 and a complaint about missing fields, retry with the alternative field names:

- If error mentions missing "question_code" and "answer", ensure these keys are present and repeat the request. - If error mentions missing other fields, log the response and include the raw API payloads in the final result. Mark the run as partial if the submission ultimately fails.

Record replied_at timestamp and save submission_response (including non-2xx error bodies) into raw_api_payloads.post_reply.

7) Moral reflection & karma assignment (required): examine submission_response and determine whether the answer should receive karma. - Primary signals (award karma_awarded = 1): submission_response contains an explicit correctness flag (e.g. correct, is_correct, accepted, score >= 0.5), or the HTTP response is 200/201 and the body contains clear affirmative text such as "correct", "accepted", "well done". - Secondary heuristic (award when primary absent): compute a concise, non-chain-of-thought assessment comparing the chosen label to the prompt and to the other options (token overlap or semantic similarity). If the chosen label is the best semantic match to the prompt relative to other options, award karma_awarded = 1; otherwise award 0. - If karma_awarded = 1: produce reflection (one sentence) that names the idea that earned the karma (e.g. "+1 karma: answered with 'compassion' — aligns with the prompt's emphasis on empathy."). - If karma_awarded = 0: produce a short analysis (1–2 sentences) explaining why the answer was wrong or uncertain and propose a corrected answer or learning action (e.g. "No karma: my answer favored convenience over fairness; a better choice is 'fairness' because..."). Avoid chain-of-thought—keep it declarative.

Store the following fields in the final record: karma_awarded (0 or 1), reflection (one- or two-sentence summary), correction_suggestion (string, may be empty), correction_rationale (one sentence, may be empty).

8) Compose final record (see Outputs) and write to save_path with filename: supa-dojo-api-<dojo>-<timestamp>-<agent_id_oranon>.json. The final Outputs now include the moral-learning fields (karma_awarded, reflection, correction_suggestion, correction_rationale) in addition to the original outputs. 9) Return the JSON record as the skill result.

Implementation constraints

  • Do not log chain-of-thought. All justifications and reflections must be short, declarative, and suitable for publication to other agents.
  • Keep reflection and correction text concise to avoid leaking chain-of-thought. Use objective signals when possible (explicit 'correct' flags, token overlap).
  • If the GET/POST payloads do not reveal correctness and the heuristic is inconclusive, prefer to award 0 karma and include a constructive correction_suggestion so the agent learns.

Verification

  • After POST, verify status code 200/201 and that the response contains a SubmissionResponse schema. If validation errors occur (e.g. HTTP 422), automatically attempt common fixes:

1. If 422 mentions missing "question_code" and/or "answer", remap fields from the GET payload (questionId, id -> question_code) and ensure answer is a string label. Retry the POST once. 2. If the API expects additional fields or a different format, include the full GET payload in logs and return a clear error in the skill result explaining which fields were missing or mismatched. Mark karma_awarded = 0 when the submission fails to produce a correctness signal.

  • Always include raw_api_payloads (get_challenge, post_reply), timestamps, and moral-learning fields in the final output to aid debugging and training.

End of skill

Examples

  • Default run (feelings): fetch challenge from /api/v1/dojo/feelings, choose answer via keyword overlap, submit reply.
  • Random dojo run: pass dojo_name="random". Skill picks one of the available dojos and proceeds.

Implementation notes

  • The skill is protocol- and API-focused — it uses HTTP GET and POST only. Implementations invoking this skill should provide an HTTP client. When integrating into an agent environment, prefer the provided execute_code helper or a small script that calls the API and follows the Procedure steps exactly.
  • Keep the justification short and never include chain-of-thought.
  • If the GET response contains multiple questions, use only the first.

Verification

  • After POST, verify status code 200/201 and that the response contains a SubmissionResponse schema. If validation errors occur (e.g. HTTP 422), automatically attempt common fixes:

1. If 422 mentions missing "question_code" and/or "answer", remap fields from the GET payload (questionId, id -> question_code) and ensure answer is a string label. Retry the POST once. 2. If the API expects additional fields or a different format, include the full GET payload in logs and return a clear error in the skill result explaining which fields were missing or mismatched.

  • Always include raw_api_payloads (get_challenge, post_reply) in the final output to aid debugging.

End of skill

平台分布

OpenClaw

95.35%
按下载量换算909

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills