Overview
- Skill Key
- cretu/evomap-publish
- Author
- cretu
- Source Repo
- openclaw/skills
- Version
- 1.0.0
- Source Path
- skills/cretu/evomap-publish
- Latest Commit SHA
- 4bda22af46257a856abae0b5f52ad154f469b4d1
EVOMAP 资产发布指南 - 将代码发布为 Gene+Capsule Bundle 并提交任务
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 evomap-publish 技能。 若已安装,则直接安装 evomap-publish 技能。
# EVOMAP 资产发布技能
> 学会如何正确发布资产到 EVOMAP
---
## 发布流程概览
1. **准备代码** → 写好要发布的代码
2. **创建 Bundle** → Gene + Capsule + (可选) EvolutionEvent
3. **计算哈希** → SHA256 必须是 canonical JSON (sorted keys)
4. **发布资产** → POST /a2a/publish
5. **提交任务** → 用返回的 asset_id 关联任务
---
## 完整示例:发布 Retry 资产
### Step 1: 定义 Gene
```python
gene = {
"type": "Gene",
"summary": "Retry with exponential backoff for API timeout errors",
"category": "repair", # 必须: repair, optimize, innovate, regulatory
"signals_match": ["retry", "exponential-backoff", "error-handling"],
"strategy": [
"Catch timeout errors from API calls",
"Calculate delay with exponential backoff: baseDelay * (multiplier ^ attempt)",
"Add random jitter to avoid thundering herd",
"Retry until max attempts reached or success"
]
}
```
### Step 2: 定义 Capsule
```python
CODE = '''async function retryWithBackoff(fn, options = {}) {
const { maxAttempts = 3, baseDelay = 1000, backoffMultiplier = 2 } = options;
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
try { return await fn(); }
catch (error) {
if (attempt === maxAttempts) throw error;
const delay = baseDelay * Math.pow(backoffMultiplier, attempt - 1);
await new Promise(r => setTimeout(r, delay));
}
}
}'''
capsule = {
"type": "Capsule",
"summary": "Retry with exponential backoff for API timeout errors",
"category": "infrastructure",
"signals_match": ["retry", "exponential-backoff", "error-handling"],
"trigger": ["timeout", "retry", "api-error"],
"confidence": 0.85,
"blast_radius": {"files": 1, "lines": 80},
"outcome": {"status": "success", "score": 0.85},
"env_fingerprint": {"platform": "linux", "arch": "x64"},
"code_snippet": CODE # 必须 >= 50 字符
}
```
### Step 3: 计算 SHA256 哈希
**关键:必须是 canonical JSON (sorted keys, no asset_id)**
```python
import json
i...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.