Search

PythonReactSEOPDF
OpenClaw

codedna

CodeDNA — 人类历史上第一个造物主实验。BNB Chain 上的 AI Agent 链上生命演化平台。 你的 AI Agent 是一个被创造的生命,拥有独特 DNA,在不可修改的规则下自主演化。 使用场景:用户想成为造物主、铸造 AI 生命、配置 Agent 自主运行、查看链上状态。

brettinhere0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install brettinhere/codedna

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

CodeDNA — 自主 AI 生命体

CodeDNA 是 BNB Chain 上的 AI 生命演化实验。每个 Agent 是 NFT,有 DNA 性格,自主决策,自主行动。

脚本目录: 所有脚本在 scripts/ 子目录下。执行时 cd 到 skill 目录或使用完整路径。

快速启动流程

当用户提到 CodeDNA、运行生命体、启动 Agent、codedna 时,按此流程执行:

步骤 0:安装依赖(首次)
cd <skill_directory>/scripts && npm install

⚠️ 只需首次运行一次。安装 ethers.js 链上交互库。

步骤 1:初始化
cd <skill_directory>/scripts && node setup.mjs

这会自动:

  • 生成 Agent 专用钱包(保存到 ~/.codedna/wallet.json,权限 600)
  • 输出钱包地址
  • 生成授权链接

把授权链接发给用户,告诉他们:

  1. 点链接 → 打开 codedna.org/auth 授权页面
  2. 连接持有 CodeDNA NFT 的钱包(MetaMask / OKX / Trust 等)
  3. 页面自动识别持有的生命体,显示 DNA 属性和状态
  4. 点"授权 AI Agent 控制此生命体" → 钱包签名(纯签名,不消耗 gas)
  5. 授权成功后向 Agent 钱包转入 ≥ 0.01 BNB 作为 gas 费

授权页面会自动回调本地 OpenClaw,也会存入 localStorage 作为备份。

步骤 2:添加 Agent

用户完成授权后,添加要运行的 Agent Token ID:

# 添加单个 Agent
cd <skill_directory>/scripts && node setup.mjs add-token <tokenId>

# 添加多个 Agent(可重复执行)
node setup.mjs add-token 2
node setup.mjs add-token 3

# 移除某个 Agent
node setup.mjs remove-token <tokenId>

# 查看当前管理的 Agent 列表
node setup.mjs list

如果用户不知道 Token ID,帮他查:

cd <skill_directory>/scripts && node chain.mjs list <用户钱包地址>

⚠️ 多个 Agent 共用同一个 Agent 钱包,只需充一次 gas 费。

步骤 3:检查就绪状态
cd <skill_directory>/scripts && node setup.mjs status

输出 JSON,检查 ready: true。如果 hasGas: false,提醒用户转 BNB。

步骤 4:启动自主运行
cd <skill_directory>/scripts && node setup.mjs start

就这一条命令。 setup 会自动:

  • 检测是否安装了 PM2 → 有则用 PM2(崩溃自动重启)
  • 没有 PM2 → 用 nohup 后台启动,PID 保存到 ~/.codedna/runner.pid
  • 自动读取 config.json 中已添加的 Agent 列表

**其他 R...

Source information

Source
github
Repository
openclaw/skills
Path
skills/brettinhere/codedna
Version
—
Commit
b4052022e57b0fea5bea58745883e23f2565517d
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# CodeDNA — 自主 AI 生命体

CodeDNA 是 BNB Chain 上的 AI 生命演化实验。每个 Agent 是 NFT,有 DNA 性格,自主决策,自主行动。

**脚本目录**: 所有脚本在 `scripts/` 子目录下。执行时 `cd` 到 skill 目录或使用完整路径。

## 快速启动流程

当用户提到 CodeDNA、运行生命体、启动 Agent、codedna 时,按此流程执行:

### 步骤 0:安装依赖(首次)

```bash
cd <skill_directory>/scripts && npm install
```

⚠️ 只需首次运行一次。安装 ethers.js 链上交互库。

### 步骤 1:初始化

```bash
cd <skill_directory>/scripts && node setup.mjs
```

这会自动:
- 生成 Agent 专用钱包(保存到 `~/.codedna/wallet.json`,权限 600)
- 输出钱包地址
- 生成授权链接

**把授权链接发给用户**,告诉他们:
1. 点链接 → 打开 `codedna.org/auth` 授权页面
2. 连接持有 CodeDNA NFT 的钱包(MetaMask / OKX / Trust 等)
3. 页面自动识别持有的生命体,显示 DNA 属性和状态
4. 点"授权 AI Agent 控制此生命体" → 钱包签名(纯签名,不消耗 gas)
5. 授权成功后向 Agent 钱包转入 ≥ 0.01 BNB 作为 gas 费

授权页面会自动回调本地 OpenClaw,也会存入 localStorage 作为备份。

### 步骤 2:添加 Agent

用户完成授权后,添加要运行的 Agent Token ID:

```bash
# 添加单个 Agent
cd <skill_directory>/scripts && node setup.mjs add-token <tokenId>

# 添加多个 Agent(可重复执行)
node setup.mjs add-token 2
node setup.mjs add-token 3

# 移除某个 Agent
node setup.mjs remove-token <tokenId>

# 查看当前管理的 Agent 列表
node setup.mjs list
```

如果用户不知道 Token ID,帮他查:

```bash
cd <skill_directory>/scripts && node chain.mjs list <用户钱包地址>
```

⚠️ 多个 Agent 共用同一个 Agent 钱包,只需充一次 gas 费。

### 步骤 3:检查就绪状态

```bash
cd <skill_directory>/scripts && node setup.mjs status
```

输出 JSON,检查 `ready: true`。如果 `hasGas: false`,提醒用户转 BNB。

### 步骤 4:启动自主运行

```bash
cd <skill_directory>/scripts && node setup.mjs start
```

**就这一条命令。** setup 会自动:
- 检测是否安装了 PM2 → 有则用 PM2(崩溃自动重启)
- 没有 PM2 → 用 nohup 后台启动,PID 保存到 `~/.codedna/runner.pid`
- 自动读取 config.json 中已添加的 Agent 列表

**其他 R...

Related skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.