A Node.js-based automation suite for managing the full lifecycle of BTC-collateralized loans on the PGP (Elastos) network.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install btcd-skill-beta
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install btcd-skill-beta using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This skill provides a robust framework for developers and users to interact with the BTCD collateralization protocol on the PGP chain. By leveraging Openclaw Skills, users can navigate the complex multi-step process of securing loans against Bitcoin without manual intervention at every stage. It handles everything from order creation to zero-knowledge proof submission, ensuring a seamless experience for those looking to utilize their BTC assets within the PGP ecosystem.
The tool focuses on reliability and state management, making it an essential addition to any developer's toolkit when working with Openclaw Skills. It streamlines the interaction between Bitcoin mainnet and the PGP EVM chain, providing a clear path for collateralizing BTC and receiving BTCD tokens while maintaining a strict historical record of all transactions and state changes.
First, copy the scripts to your local working directory:
cp -r <path-to-skill>/scripts/ ./btcd-flow
cd ./btcd-flow
Configure your environment variables by creating a .env file from the provided template:
cp .env.template.txt .env
Ensure you set your EVM_PRIVATE_KEY (with 0x prefix) and BTC_PRIVATE_KEY (hex format). Finally, install the necessary dependencies for this Openclaw Skills package:
npm install
The skill uses a local state management system to track progress and prevent duplicate actions across the Openclaw Skills workflow.
| File | Purpose |
|---|---|
state/flow-state.json |
Current active state of the collateralization process. |
state/flow-state-<timestamp>.json |
Archived historical records of completed flows. |
.env |
Configuration for private keys, amounts, and durations. |
Key metadata tracked in the state file includes:
orderId: The unique on-chain identifier for the lending order.preImage: The cryptographic secret required for claiming tokens.btcTxId: The transaction hash of the locked BTC collateral.confirmations: The real-time count of Bitcoin network confirmations.Loading
A smart weather query and analysis skill providing real-time conditions, multi-day forecasts, and actionable lifestyle recommendations.

A professional-grade weather querying and analysis skill that provides real-time data, multi-day forecasts, and actionable AI-generated travel advice.

A sophisticated state management and session recovery system that prevents data loss during subagent timeouts by using checkpoints and scheduled cron resumes.

A comprehensive automation skill for managing the full lifecycle of FoxReach cold email outreach, from lead sourcing to campaign analytics.

A specialized skill enabling the execution of AetherLang V3 domain-specific AI workflows directly through Claude Code for high-depth analysis.

A powerhouse AI strategy engine that applies game theory, Monte Carlo simulations, and behavioral economics to deliver Nobel-level business intelligence.








































