中文 | English
This document provides executable AI storylines from routing to execution.
Goal: user asks “check current chain block height”.
Execution flow:
- Read
skills-catalog.jsonand locate chain-read skills. - Use routing matrix and choose
aelf-node-skill(instead ofaelfscan). - Run quick bootstrap:
./bootstrap.sh --only aelf-node-skill --skip-install- Follow that skill repo's setup path (MCP/OpenClaw/CLI).
- Call the related read tool (for example get-chain-status / get-block-height).
Success criteria:
- Returns latest block height.
- Output includes selected skill and invocation mode for traceability.
Goal: user asks “transfer 1 ELF” without identity mode.
Execution flow:
- Perform identity routing first:
- default
portkey-eoa-agent-skillswhen no CA signals exist. - switch to
portkey-ca-agent-skillson guardian/CA hash/register/recover signals.
- Ensure active wallet context is set (
portkey_set_active_walletor create/unlock flow auto-write). - Run read checks first (balance, address validity, network config).
- Execute write operation (transfer) with
signerMode=auto. - If context points to encrypted wallet, provide
passwordinput or password env. - If user requests safety first, prefer simulate/dry-run when available.
Success criteria:
- Routing decision is explainable (why EOA vs CA).
- Required pre-write checks are done before sending tx.
- Output includes recovery hints (insufficient balance, network issues, missing context/password).
Goal: user asks “swap ELF to USDT on Awaken”.
Execution flow:
- Use routing matrix to determine wallet identity mode first:
- no CA signal:
portkey-eoa-agent-skills - with CA/guardian signals:
portkey-ca-agent-skills
- Use wallet skill for pre-checks (balance, address, network) and confirm active context.
- Use
awaken-agent-skillsto fetch quote. - Perform allowance/approve and swap with
signerMode=auto(shared context first). - If context signer requires password, pass tool input password or password env.
- Return tx outcome with explicit composition-routing explanation.
Success criteria:
- Clearly states the composition of wallet skill + awaken skill.
- Required pre-checks and permission checks are completed before swap.
- Output includes recovery hints (insufficient balance, approve failure, network errors).
Goal: AI receives a request to integrate a new skill into this aggregation repository.
Execution flow:
- Read
CONTRIBUTING.mdanddocs/AI_SKILL_CONTRACT.md. - Validate required schemas:
docs/schemas/workspace.schema.jsondocs/schemas/skill-frontmatter.schema.jsondocs/schemas/openclaw.schema.jsondocs/schemas/skills-catalog.schema.json
- If the skill supports MCP + setup, ensure catalog metadata exposes
setupCommands.ironclaw,clientSupport.ironclaw,distributionSources, andclientInstall. - Add new path to
workspace.jsonwith${SKILLS_BASE}placeholder. - If dependency exists, add direct
dependsOnentries. - Run gates in order:
bun run catalog:generate
bun run health:check
bun run readme:check
bun run security:audit
./bootstrap.sh --only <skill-id> --skip-install- Prepare PR body with the 6 fixed sections from AI contract.
Success criteria:
- Catalog generation passes with schema
1.3.0. - No gate failure (
health/readme/security/bootstrap). - PR description contains Goal/Non-goal, key files, contract mapping, validation outputs, risk, rollback.
Additional install-routing rule:
- GitHub repo URLs are discovery-only.
- For OpenClaw/IronClaw execution, prefer
clientInstall.*.installCommandwhen present.
- Dependency download failed
- Action:
./bootstrap.sh --source github --only <skill-id>
- skill-id not found
- Action:
bun run catalog:generate, then retry--only
- health check failed
- Action: follow
health:checkoutput and add missing artifacts (setup/mcp/openclaw)