← 返回 Skills 市场
lidh04

circle chain skill

作者 Charles · GitHub ↗ · v1.1.1 · MIT-0
cross-platform ✓ 安全检测通过
143
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install circle-chain-skill
功能描述
JavaScript SDK and CLI for Circle Chain (@lidh04/circle-chain-sdk): user auth, wallet, block, miner, transfers, contacts. Global CLI binary `circle`. Use whe...
使用说明 (SKILL.md)

Circle Chain JavaScript SDK

Package and layout

  • npm: @lidh04/circle-chain-sdk — local dependency: npm i @lidh04/circle-chain-sdk
  • Default export: an object with namespaces user, wallet, block, node, miner, common — e.g. import sdk from '@lidh04/circle-chain-sdk' then const { user, wallet, miner } = sdk. README snippets use bare names like login, createWallet; bind them from the matching namespace (user.login, wallet.createWallet, etc.).
  • Source repo: src/circle-user.js, circle-wallet.js, circle-block.js, circle-node.js, circle-miner.js, circle-common.js; CLI under src/cli/.

Development workflow

  1. Build: npm run build — outputs dist/cjs and dist/mjs (TypeScript + fixup).
  2. Tests: Run npm run build before npm test when suites need fresh dist/. CLI-only: npm run test:cli (builds, then Jest matches dist/cjs/cli).
  3. CLI from a clone: after build, npm run cli -- \x3Cargs> or node ./dist/mjs/cli/main.js \x3Cargs>.

CLI (Commander.js)

Published executable name: circle (see package.json "bin"dist/mjs/cli/main.js).

Install globally

npm install -g @lidh04/circle-chain-sdk
circle --help

Using circle

  • -d / --dev — use http://localhost:8888 instead of production (e.g. circle --dev user login-send-code --email [email protected]).
  • Subcommand groups: user, wallet, block, miner. Discover flags with circle \x3Cgroup> --help.
circle --help
circle user --help
circle user login-send-code --email [email protected]
circle wallet query public-balance --address \x3Caddr>
circle block header-list --base-height 0
circle miner mine --address \x3Cyour-miner-address>

Developing this repo

npm run build
npm run cli -- --help
# or: node ./dist/mjs/cli/main.js --help

CLI tests: src/cli/*.test.js; Jest runs compiled tests under dist/cjs/cli/ per jest.config.cjs.

Programmatic usage patterns

Responses typically include status (e.g. 200), message, and data. On failure, surface response.message.

Auth (register / login)

  1. Register then password login: sendRegisterVerifyCoderegisterlogin (email + password).
  2. Login with verify code only: sendVerifyCodelogin (email + verifyCode).

Wallet

  • createWallet() — on success, address in data.

Local mining

  1. miner.canMineBlock() — return early if false.
  2. miner.fetchMyBlockData(address) — from data: blockHeaderHexString, channelId.
  3. miner.mineBlock(blockHeaderHexString, workerCount) — e.g. os.cpus().length - 1; result lines separated by \ ; first line is mined header hex.
  4. miner.postMyBlock({ address, channelId, blockHeaderHexString: minedBlockHeader }).
  5. Per README: successful block upload rewards 10 cc (100,000 li) to the miner address.

Pay password

  • sendPayVerifyCodesetPayPassword with account: { email }, verifyCode, password.

Transfers

  • sendTo: email, from, address (to), transContent (type, uuid, etc.), payPassword.
  • pay: from, to, value, payPassword.

Contacts

  • addContacts: e.g. email, name, sex, address (location string in README).

Versions

1.1.1

  • README: document global CLI install (npm install -g @lidh04/circle-chain-sdk), using circle with --dev, and developing the repo (npm run cli / node ./dist/mjs/cli/main.js)

1.1.0

  • CLI (Commander.js) for user, wallet, miner, block; entry circle / main.js.
  • CLI split into user-command, wallet-command, miner-command, block-command; user CLI email-only.
  • CLI tests under src/cli, Jest runs dist/cjs/cli; circle-node test import path fix.

1.0.22 — security improvements

1.0.21 — bugfixes

1.0.20 — local block mining

Keep this skill aligned with repo README.md and package.json (bin name, exports).

安全使用建议
This skill's instructions are consistent with a CLI/SDK for a blockchain project, but the package source and homepage are not provided in the metadata. Before installing or running the global npm package: (1) verify the package page on the npm registry and the author/maintainer; (2) review the package's repository/source code if available; (3) avoid global install on a production machine—prefer local install or a disposable sandbox/container; (4) be cautious when exercising wallet/mining/transfer commands (they may perform network calls and move funds); (5) if you need higher assurance, ask the publisher for the repository URL and verify package integrity (checksums/signatures) or run npm audit. Providing the package homepage/repo would raise confidence.
功能分析
Type: OpenClaw Skill Name: circle-chain-skill Version: 1.1.1 The skill bundle provides documentation and usage instructions for the Circle Chain JavaScript SDK and CLI (@lidh04/circle-chain-sdk). The content in SKILL.md is focused on legitimate blockchain operations such as wallet management, mining, and user authentication, and does not contain any evidence of malicious intent, data exfiltration, or prompt injection attacks.
能力评估
Purpose & Capability
The SKILL.md describes a JS SDK and global CLI (npm package @lidh04/circle-chain-sdk). All instructions (build, test, npm install -g, node ./dist/mjs/cli) match that purpose; nothing in the metadata asks for unrelated capabilities.
Instruction Scope
Instructions are focused on using and developing the SDK/CLI (installing package, running CLI commands, building, mining flows). The document does not instruct reading arbitrary system files, scanning env vars, or exfiltrating data to unexpected endpoints. It documents API patterns including auth flows, wallets, mining and transfers which are expected for this domain.
Install Mechanism
There is no formal install spec in the skill bundle (lowest static install risk). The README recommends running `npm install -g @lidh04/circle-chain-sdk`, which is normal for a CLI but will pull code from npm at runtime — the package has no homepage/source listed in the skill metadata, so the actual package contents cannot be vetted from this skill alone.
Credentials
The skill does not declare or require environment variables or config paths. Auth and payment concepts are described in the SDK usage (email/verify-code, payPassword) but those are usage-level parameters rather than environment secrets demanded by the skill bundle itself.
Persistence & Privilege
Skill flags: always=false, user-invocable=true, model invocation allowed. The skill is instruction-only and does not request permanent platform-level presence or modify other skills/configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install circle-chain-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /circle-chain-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.1
Version 1.1.1 (circle-chain-js-sdk) - Updated documentation to cover global CLI installation via `npm install -g @lidh04/circle-chain-sdk`. - Added usage instructions for the `circle` CLI, including the `--dev` flag and subcommand examples. - Documented development setup and commands for the CLI (e.g., `npm run cli`, direct node execution). - Ensured coverage for CLI usage, development workflow, and key command groups in the README.
元数据
Slug circle-chain-skill
版本 1.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

circle chain skill 是什么?

JavaScript SDK and CLI for Circle Chain (@lidh04/circle-chain-sdk): user auth, wallet, block, miner, transfers, contacts. Global CLI binary `circle`. Use whe... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 143 次。

如何安装 circle chain skill?

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

circle chain skill 是免费的吗?

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

circle chain skill 支持哪些平台?

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

谁开发了 circle chain skill?

由 Charles(@lidh04)开发并维护,当前版本 v1.1.1。

💬 留言讨论