← Back to Skills Marketplace
lidh04

circle chain skill

by Charles · GitHub ↗ · v1.1.1 · MIT-0
cross-platform ✓ Security Clean
143
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install circle-chain-skill
Description
JavaScript SDK and CLI for Circle Chain (@lidh04/circle-chain-sdk): user auth, wallet, block, miner, transfers, contacts. Global CLI binary `circle`. Use whe...
README (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).

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install circle-chain-skill
  3. After installation, invoke the skill by name or use /circle-chain-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug circle-chain-skill
Version 1.1.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 143 downloads so far.

How do I install circle chain skill?

Run "/install circle-chain-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is circle chain skill free?

Yes, circle chain skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does circle chain skill support?

circle chain skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created circle chain skill?

It is built and maintained by Charles (@lidh04); the current version is v1.1.1.

💬 Comments