跳到正文
Skillpedia
API 与服务器(后端)7.0k · #13615

nla-create

它能做什么

这项技能帮助你用通俗的语言设定条件,把代币锁定在链上托管中。之后,由 AI 预言机判断提交的履约是否符合该条件。

适用场景

  • ✓当你希望把代币锁定,直到有人满足你用文字描述的条件时。
  • ✓当你需要帮助撰写清晰的托管要求时。
  • ✓当你想选择负责判定工作的 AI 服务商或模型时。

技能链接

https://github.com/internet-court/internet-court-skill/blob/main/vendored/arkhai/nla-create/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/internet-court/internet-court-skill/blob/main/vendored/arkhai/nla-create/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我想锁定一笔托管代币,当有人写出一篇清晰的产品评价时才释放。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会询问要求内容、代币数量、代币地址和预言机地址,然后运行 nla 命令行工具创建托管。它可以先检查网络和钱包。AI 模型会依据书面要求来判定结果。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Create NLA Escrow

Help the user create a blockchain escrow backed by a natural language demand using the nla CLI.

Overview

An NLA escrow locks ERC20 tokens on-chain. Anyone can attempt to fulfill the escrow's natural language demand. An AI oracle evaluates fulfillments and releases the tokens if the demand is satisfied.

Step-by-step instructions

1. Gather requirements

Collect the following from the user conversationally:

Required:

  • Demand: The natural language condition that must be fulfilled. Help the user craft something clear and unambiguous.
  • Amount: Number of tokens to escrow (in the token's smallest unit - no automatic decimal conversion).
  • Token address: ERC20 token contract address (0x...).
  • Oracle address: Address of the oracle that will arbitrate.

Optional:

  • Arbitration provider: OpenAI (default), Anthropic, or OpenRouter.
  • Arbitration model: e.g. gpt-4o-mini (default), claude-3-5-sonnet-20241022, openai/gpt-4o.
  • Arbitration prompt: Custom prompt template with {{demand}} and {{obligation}} placeholders.

2. Check prerequisites

# Verify CLI is available
which nla

# Check current network
nla network

# Check wallet is configured
nla wallet:show

If no wallet is configured, the user must either:

  • Run nla wallet:set --private-key <key>
  • Pass --private-key <key> to the command
  • Set the PRIVATE_KEY environment variable

3. Help craft the demand

Guide the user to write an effective demand:

  • Be specific and evaluable by an LLM
  • Consider: what counts as valid fulfillment? Is the condition verifiable?
  • For claims requiring real-world knowledge, suggest models with search (Perplexity search is available if the oracle has it configured)
  • The demand, provider, model, and prompt are all encoded on-chain and publicly visible - never include secrets

4. Execute escrow creation

nla escrow:create \
  --demand "<demand text>" \
  --amount <amount> \
  --token <token_address> \
  --oracle <oracle_address> \
  [--arbitration-provider "<provider>"] \
  [--arbitration-model "<model>"] \
  [--arbitration-prompt "<prompt>"]

5. Record output

The command outputs an escrow UID (0x...). This UID is needed for fulfillment and collection. Present it clearly to the user and explain next steps.

Key details

  • Available networks: anvil (local), sepolia, base-sepolia, mainnet. Switch with nla switch <network>.
  • For local dev, nla dev starts Anvil, deploys contracts, creates mock tokens, and starts the oracle.
  • Public demo oracle on Sepolia: 0xc5c132B69f57dAAAb75d9ebA86cab504b272Ccbc.
  • Default arbitration prompt:
    Evaluate the fulfillment against the demand and decide whether the demand was validly fulfilled
    
    Demand: {{demand}}
    
    Fulfillment: {{obligation}}
    

Example

nla escrow:create \
  --demand "Provide a valid proof that P != NP" \
  --amount 1000000 \
  --token 0xa513e6e4b8f2a923d98304ec87f64353c4d5c853 \
  --oracle 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 \
  --arbitration-provider "Anthropic" \
  --arbitration-model "claude-3-5-sonnet-20241022"
常见问题

如何撰写好的要求?

要求应清晰具体,使 AI 预言机无需猜测就能做出判断。

哪些 AI 服务商可以判定托管?

列出的有 OpenAI、Anthropic 和 OpenRouter,默认为 OpenAI。

金额需要包含小数吗?

不做任何换算。你必须以代币的最小单位输入金额。

详情

作者的原始描述

Create a Natural Language Agreement escrow on-chain. Use when the user wants to lock ERC20 tokens in an escrow with a natural language demand that an AI oracle will arbitrate. Handles demand crafting, parameter gathering, and CLI execution.

repo: internet-court/internet-court-skill

热度

GitHub 星标
7.0k
排名
#13615
许可证
—
更新时间
2026/10/26

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能