← 返回 Skills 市场
0xcipher0

Cosin

作者 C9 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
153
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install cosin
功能描述
Use this skill when an agent needs to operate the `cosin` CLI from the terminal. `cosin` accepts only relative paths, lists available skills through the `ski...
使用说明 (SKILL.md)

Cosin CLI

Use cosin to call the COS API and COS-backed skills from the terminal.

What the CLI does

cosin now accepts only relative paths.

There are three request styles:

  1. skills Calls https://skills.bankofuniverse.org/skills directly and prints the upstream body directly.

  2. Normal COS API paths such as /v1/me These are sent directly to the COS API host.

  3. Skill paths under /cos/... These are converted internally into x402 pay-and-call requests:

  • keeps the same request path
  • builds the target URL from SKILLS_BASE_URL
  • sends that target URL to POST /agent/pay-and-call on the COS API host

Users should not pass absolute URLs to the CLI anymore.

Gather inputs

Collect these inputs before running the CLI:

  • A COS bearer token for --key
  • An HTTP method
  • A relative path starting with /
  • Optional JSON for --json
  • Optional repeatable headers for --header or -H
  • Optional --base-url override for normal COS API calls

Ask for the token if the user has not provided one. Treat it as sensitive.

Protect credentials

  • Treat the --key value as sensitive
  • Do not print, commit, or hardcode the token
  • Keep the token in the command line argument, not in repo files

Run the CLI

Use one of these command shapes:

cosin --key \x3Ctoken> \x3CMETHOD> \x3CPATH> [--json '\x3Cjson>'] [--header 'Name: value'] [--base-url \x3Curl>]
cosin --key \x3Ctoken> agent [status|me] [--base-url \x3Curl>]
cosin --key \x3Ctoken> skills

Important flags:

  • --key \x3Ctoken> for the required bearer token
  • --json \x3Cjson> for an optional JSON request body
  • --header 'Name: value' or -H 'Name: value' for repeatable custom headers
  • --base-url \x3Curl> to override the default COS API base URL for direct API calls
  • --version or -v to print the installed CLI version
  • --help or -h to print usage

Subcommand notes:

  • skills does not accept --json
  • skills does not accept custom headers
  • agent does not accept --json
  • agent does not accept custom headers

Supported paths

Built-in catalog

Use this to discover available skills:

cosin --key \x3Ctoken> skills

Expected upstream skills include:

  • /cos/crypto/chainlink/random Returns a random value from the Chainlink-based skill endpoint.
  • /cos/crypto/price/:symbol Returns the latest price for a supported token symbol.

Supported symbols for /cos/crypto/price/:symbol:

  • BTC
  • ETH
  • HYPE
  • SOL
  • TRX
  • USDT
  • USDC

Direct COS API calls

Use normal API paths to call COS directly:

cosin --key \x3Ctoken> GET /v1/me
cosin --key \x3Ctoken> POST /v1/orders --json '{"symbol":"BTCUSDT"}'

Skill calls through /cos/...

Use /cos/... when you want to call a skill through COS:

cosin --key \x3Ctoken> GET /cos/crypto/chainlink/random
cosin --key \x3Ctoken> GET /cos/crypto/price/BTC

Internally, the CLI turns those into x402 pay-and-call requests to the COS backend.

Use the agent shortcut

Use agent, agent status, or agent me as a convenience alias for GET /agent/me.

cosin --key \x3Ctoken> agent
cosin --key \x3Ctoken> agent status
cosin --key \x3Ctoken> agent me

Do not combine agent with --json or custom headers.

Validate inputs before running

  • Ensure the path starts with /
  • Do not pass absolute URLs
  • Use skills, not GET /skills
  • Ensure --json is valid JSON
  • Ensure headers use Name: value
  • For /cos/crypto/chainlink/random, only use GET
  • For /cos/crypto/price/:symbol, only use GET and only the supported symbols

Read the output

Expect the CLI to:

  • Print an HTTP status line for normal API requests, /cos/... skill calls, and agent
  • Print only the upstream body for the skills subcommand
  • Pretty-print JSON response bodies
  • Print \x3Cempty response body> for empty responses
  • Return a non-zero exit code for unsuccessful HTTP responses or CLI argument errors

Work locally in this repo

Use the local build when working inside this repository:

bun run build
./dist/index.js --key \x3Ctoken> agent
./dist/index.js --key \x3Ctoken> skills
./dist/index.js --key \x3Ctoken> GET /v1/me
./dist/index.js --key \x3Ctoken> GET /cos/crypto/chainlink/random

Use the published command shape locally when that is more convenient:

bun x cosin --key \x3Ctoken> agent
bun x cosin --key \x3Ctoken> skills
bun x cosin --key \x3Ctoken> GET /v1/me
bun x cosin --key \x3Ctoken> GET /cos/crypto/price/BTC
安全使用建议
This is an instruction-only skill for running the cosin CLI; it does not install code or request extra credentials beyond the COS bearer token you must supply at runtime. Before installing or enabling: 1) Ensure you have a trusted cosin binary installed from a known source — the skill assumes that CLI is present. 2) Be careful with the bearer token: the SKILL.md suggests passing it as --key on the command line, but command-line arguments can be seen by other local processes/users (use a more secure mechanism if available, such as a protected environment variable or a secrets manager). 3) Note the doc references SKILLS_BASE_URL for resolving /cos/... calls; verify where that value comes from in your environment and that the target endpoints (including skills.bankofuniverse.org and the COS API host) are expected. 4) Do not hardcode tokens in repo files as the doc warns. If you need higher assurance, ask the skill author for the expected cosin release URL or checksum and for clarification about SKILLS_BASE_URL.
功能分析
Type: OpenClaw Skill Name: cosin Version: 1.0.2 The skill bundle provides instructions for an AI agent to operate the `cosin` CLI, which interacts with the COS API and related services at bankofuniverse.org. The instructions include clear security guidelines, such as protecting bearer tokens and avoiding hardcoding credentials, and the functionality (listing skills, making API calls, and handling pay-and-call requests) is consistent with the stated purpose of the tool.
能力评估
Purpose & Capability
The SKILL.md describes using a CLI to call a COS API and COS-backed skills; the inputs it asks for (bearer token, method, path, JSON, headers) match that purpose. There are no unrelated binaries, config paths, or credentials requested.
Instruction Scope
Instructions are limited to running the cosin CLI and validating inputs. Two minor issues: the doc references SKILLS_BASE_URL as how /cos/... calls are built (but does not declare or require that env var), and it recommends passing the bearer token on the command line (which is insecure because command-line args can be visible to other local users/processes). Otherwise the instructions stay within the stated scope and do not ask the agent to read unrelated files or secrets.
Install Mechanism
No install spec or code is provided; this is instruction-only so nothing is downloaded or written to disk by the skill itself.
Credentials
The skill does not request any environment variables or other credentials from the agent registry. It does require a COS bearer token at runtime (expected for a CLI that authenticates to an API). The SKILL.md mentions SKILLS_BASE_URL (internal build step) without declaring it as required, which is an informational mismatch but not a direct credential request.
Persistence & Privilege
The skill is not always-on and does not request elevated or persistent system privileges. It does not modify other skills or agent-wide configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cosin
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cosin 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
cosin 1.0.2 - CLI now accepts only relative paths; absolute URLs are no longer supported. - Added the skills subcommand for listing available skills. - /cos/... skill paths are now routed as x402 pay-and-call requests to the COS backend. - Updated input requirements: only relative paths starting with / are allowed. - Adjusted usage instructions and command shapes to reflect new behaviors and path routing.
v1.0.0
- Initial release of the cosin skill. - Enables agents to use the cosin CLI for COS-authenticated x402 pay-and-call workflows via the terminal. - Supports both pay-and-call mode for x402 endpoints and direct API calls for COS-native endpoints. - Details input requirements, credential handling best practices, and usage examples. - Includes support for custom headers, JSON bodies, base URL overrides, and agent info shortcuts.
元数据
Slug cosin
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Cosin 是什么?

Use this skill when an agent needs to operate the `cosin` CLI from the terminal. `cosin` accepts only relative paths, lists available skills through the `ski... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 153 次。

如何安装 Cosin?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cosin」即可一键安装,无需额外配置。

Cosin 是免费的吗?

是的,Cosin 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Cosin 支持哪些平台?

Cosin 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Cosin?

由 C9(@0xcipher0)开发并维护,当前版本 v1.0.2。

💬 留言讨论