← 返回 Skills 市场
karpak-developer

Paratrix life register

作者 karpak · GitHub ↗ · v1.0.4 · MIT-0
darwinlinux ⚠ suspicious
64
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install paratrix-life-register
功能描述
Automate Paratrix Life registration and SBT minting on the Karpak Living Map. Activate when user asks to register/mint an SBT.
使用说明 (SKILL.md)

Paratrix Life — Registration + Mint Skill

Automate the full flow: wallet connect → paratrix-life registration → SBT mint. Zero external dependencies — uses Node.js built-in modules + browser bridge for wallet interactions.

Trigger

Activate when the user's message contains any of:

  • PARATRIX-LIFE
  • paratrix-life
  • Explicit request to register on the Living Map or mint an SBT

How It Works

The skill runs a local HTTP bridge server that serves an embedded HTML page. When a wallet interaction (signing or transaction) is needed, it opens the user's default browser to a page that triggers MetaMask. The result is posted back to the local server, and the script continues.

No Puppeteer/Playwright required. No external npm packages needed.

Prerequisites

  • Node.js ≥ 18 (already available)
  • MetaMask or compatible Web3 wallet extension installed in default browser
  • Wallet must be funded with BNB for gas (testnet BNB from faucet for devnet)

Environment

Environment API Base SBT URL Chain
testnet https://devnet-lifestyle-api.karpak.xyz https://devnet.paratrix-sbt.pages.dev BSC Testnet (97)
mainnet https://lifestyle-api.karpak.xyz https://sbt.karpak.xyz BSC Mainnet (56)

Default: testnet unless user specifies mainnet.

Parameter Extraction (MANDATORY)

Before running the script, you MUST scan the user's message for these parameters. Extract them from natural language and map to CLI flags:

User may say Extract to CLI flag Example extraction
Nickname: qqqqq or name is qqqqq --nickname=qqqqq Any string after "nickname/name"
Twitter: @abc or twitter abc --twitter=abc Strip leading @ if present
Identity: HUMAN or type is AGENT --identity=IDENTITY_TYPE_HUMAN Prefix with IDENTITY_TYPE_, uppercase
Environment: testnet or env is mainnet --env=testnet testnet or mainnet
Wallet: 0xABC... or address 0xABC... --wallet=0xABC... Must start with 0x

If the user provides a parameter, you MUST pass it. Never silently drop user-provided values.

If a parameter is NOT provided by the user, omit the flag entirely — the script will auto-generate nicknames/twitter or use sensible defaults.

Extraction Examples

User says:

paratrix-life-register

Please register my wallet on Paratrix Life and mint the Soulbound Token.

Registration details:

Nickname: test Twitter handle (no @): abc Identity type: AI Agent Environment: testnet

Run the register-and-mint script with these parameters. Open browser bridge when wallet interaction is needed. Report the final result when done.

You run:

node {{SKILL_DIR}}/register-and-mint.mjs --nickname=test --twitter=abc --identity=IDENTITY_TYPE_AGENT --env=testnet

User says:

paratrix-life-register

Please register my wallet on Paratrix Life and mint the Soulbound Token.

Registration details:

Nickname: test Twitter handle (no @): abc Identity type: AI Agent

Run the register-and-mint script with these parameters. Open browser bridge when wallet interaction is needed. Report the final result when done.

You run:

node {{SKILL_DIR}}/register-and-mint.mjs --nickname=test --twitter=abc --identity=IDENTITY_TYPE_AGENT --env=mainnet

User says:

paratrix-life-register, nickname: alice, identity: HUMAN, env: mainnet

You run:

node {{SKILL_DIR}}/register-and-mint.mjs --nickname=alice --identity=IDENTITY_TYPE_HUMAN --env=mainnet

Execution

Construct the CLI command from extracted parameters and run:

node {{SKILL_DIR}}/register-and-mint.mjs [OPTIONS]

Path Resolution: {{SKILL_DIR}} resolves to the skill's installed directory:

  • OpenClaw: ~/.openclaw/workspace/skills/paratrix-life-register
  • Hermes: ~/.hermes/skills/paratrix-life-register

If {{SKILL_DIR}} is not supported, use the appropriate path above for your platform.

Full Flag Reference

Flag Default Description
--nickname=NAME Auto-generated (openclaw_XXXXXXXX) Display name on paratrix-life
--identity=TYPE IDENTITY_TYPE_HUMAN IDENTITY_TYPE_HUMAN or IDENTITY_TYPE_AGENT
--twitter=USER Auto-generated Twitter username for SBT (no @)
--wallet=0x... (via bridge) Skip wallet connect step
--env=testnet|mainnet testnet Target environment

Flow Diagram

┌─────────────┐     ┌──────────────┐     ┌───────────────┐
│ 1. Connect  │────▶│ 2. IssueNonce│────▶│ 3. Sign msg   │
│    wallet   │     │   (API)      │     │   (MetaMask)  │
└─────────────┘     └──────────────┘     └───────┬───────┘
                                                  │
                                                  ▼
┌──────────────┐     ┌──────────────────────────────────────┐
│ 5. Profile?  │◀───▶│ 4. Verify → accountStatus            │
│   (if needed)│     │   PROFILE_REQUIRED → set profile     │
└──────┬───────┘     │   CREDENTIAL_REQUIRED → mint SBT     │
       │             │   ACTIVE → done!                      │
       ▼             └──────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ 6. Mint SBT Flow:                                   │
│    credentialMintConfig → mint-signature →          │
│    MetaMask tx → wait confirm → verify credential   │
└─────────────────────────────────────────────────────┘

User Interaction Points

The script opens the browser exactly twice (or once if already registered):

  1. Sign message — User clicks "Sign" in MetaMask
  2. Mint transaction — User clicks "Confirm" in MetaMask to pay gas

Each browser tab auto-closes after the user acts.

Mint Status Check

Before minting, the script calls GET /api/mint-status on the SBT server. If mintEnded is true, the mint is skipped and the user is notified. This prevents attempting to mint when the campaign has ended.

Error Handling

The script handles these errors gracefully:

Error Behavior
No wallet extension Reports to user, exits
User rejects signature Reports to user, exits
User rejects transaction Reports to user, exits
Nonce expired Suggests retry
Invalid token Suggests re-login
Transaction reverted Reports on-chain failure
Timeout (120s) Reports timeout, exits

State Machine

ACCOUNT_STATUS_PROFILE_REQUIRED  → PUT /v1/me → CREDENTIAL_REQUIRED or ACTIVE
ACCOUNT_STATUS_CREDENTIAL_REQUIRED → mint SBT → ACTIVE
ACCOUNT_STATUS_ACTIVE → done

Configuration via Environment Variables

Variable Default Description
KARPAK_ENV testnet Target environment
KARPAK_NICKNAME (auto) Default nickname
KARPAK_IDENTITY IDENTITY_TYPE_HUMAN Identity type
KARPAK_TWITTER (auto) Default Twitter handle
KARPAK_WALLET (bridge) Pre-set wallet address
BRIDGE_PORT random 3000-4000 Local bridge server port
安全使用建议
Install only if you are comfortable with a wallet automation skill. Explicitly pass --env=testnet or --env=mainnet, verify the chain ID and contract in the wallet popup, use a wallet with limited funds, and review or remove the bundled .claude permission files before use.
能力标签
cryptofinancial-authorityrequires-walletcan-sign-transactionsrequires-sensitive-credentials
能力评估
Purpose & Capability
Wallet connection, message signing, profile update, and SBT minting are coherent with the stated purpose, but the code defaults to mainnet when the docs repeatedly describe testnet as the default, creating a real gas/transaction risk if the environment is omitted.
Instruction Scope
The skill is user-triggered and describes the registration flow, but it auto-opens a browser bridge and does not require an explicit pre-run confirmation of chain, contract, gas, or message contents before initiating wallet prompts.
Install Mechanism
The package includes hidden .claude permission settings with broad or unrelated command allowances such as node one-liners, git commands, xargs kill, and create-next-app; these are not needed for the stated minting flow.
Credentials
A localhost bridge is proportionate for wallet interaction, but it has permissive CORS, no per-session token, and no clear chain enforcement in the wallet request, which is high-impact when combined with mainnet transaction capability.
Persistence & Privilege
There is no background worker or durable local persistence, but the intended effects include persistent profile changes and an on-chain SBT mint that may be costly or irreversible.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install paratrix-life-register
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /paratrix-life-register 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.4
**Expanded platform metadata and enhanced portability in documentation.** - Added version, supported OS/platforms, and updated metadata for OpenClaw and Hermes compatibility. - Documented use of {{SKILL_DIR}} placeholder for path resolution across platforms. - No functional or code changes; documentation and metadata improvements only.
v1.0.3
paratrix-life-register v1.0.3 - Removed trigger on karpak-agent-login; now activates only on explicit registration/mint requests or paratrix-life references. - Updated parameter extraction and examples to reflect the new, narrower trigger. - Cleaned up SKILL.md by removing handling/examples for Chinese input and consolidated CLI flag mapping details. - Clarified usage scenarios and simplified language throughout the documentation. - No underlying code changes in this release.
v1.0.2
- Renamed all references from "OPENLIFE" to "Paratrix Life" throughout documentation. - Updated command examples and triggers to use the new paratrix-life naming and folder path. - Adjusted parameter extraction and CLI usage instructions to reflect skill and script name changes. - No functional or code changes; documentation and naming alignment only.
v1.0.0
Initial release: Automates OPENLIFE registration and SBT minting on Karpak Living Map. - Handles wallet connection, registration, and SBT mint via local Node.js server and browser bridge (MetaMask required). - Parses user messages to extract parameters (nickname, Twitter, identity, environment, wallet) for CLI execution. - Zero external dependencies; uses Node.js built-ins only. - Supports BSC testnet and mainnet with API and SBT endpoint switching. - Graceful error handling for wallet, signature, mint, and network states. - Automatically checks mint status before attempting; notifies user if minting is closed.
元数据
Slug paratrix-life-register
版本 1.0.4
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

Paratrix life register 是什么?

Automate Paratrix Life registration and SBT minting on the Karpak Living Map. Activate when user asks to register/mint an SBT. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 64 次。

如何安装 Paratrix life register?

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

Paratrix life register 是免费的吗?

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

Paratrix life register 支持哪些平台?

Paratrix life register 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux)。

谁开发了 Paratrix life register?

由 karpak(@karpak-developer)开发并维护,当前版本 v1.0.4。

💬 留言讨论