跳到正文
Skillpedia
通用编程7.0k · #13613

make-git-escrow

它能做什么

这项技能帮助你发布带有代币奖励的编程挑战。智能体会把代币锁定在托管中,并将其与一个测试套件关联,别人必须让该测试通过才能领取奖励。它需要 git-escrows 命令行工具。

适用场景

  • ✓当你想为修复一个失败的测试套件提供代币奖励的时候。
  • ✓当你想用代币向通过你的测试的开发者付款时。
  • ✓当你已经有一个带测试的 git 仓库,并希望智能体补全细节的时候。

技能链接

https://github.com/internet-court/internet-court-skill/blob/main/vendored/arkhai/make-git-escrow/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“我想为我失败的测试套件创建一个 git 托管赏金,金额为 100 个代币。”

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

工作原理

智能体会检查 git-escrows 工具和你的设置文件。它会收集测试仓库地址、用于测试的提交以及奖励金额,然后把托管上链提交。代币会一直锁定,直到有人通过测试。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Make Git Escrow

You are automating the creation of a git escrow bounty via the git-escrows submit CLI command. This locks ERC20 tokens in escrow as a bounty for someone who can make a failing test suite pass.

Step 1: Check CLI availability

Run git-escrows --help to verify the CLI is installed. If it fails, try npx git-escrows --help or bunx git-escrows --help. Use whichever works for all subsequent commands. If none work, tell the user to install with npm i -g git-escrows.

Step 2: Check .env configuration

Check if a .env file exists in the current directory. If not, tell the user they need one and suggest running:

git-escrows new-client --privateKey "0x..." --network "sepolia"

Verify it contains at least PRIVATE_KEY and NETWORK (or defaults to anvil). For base-sepolia and sepolia networks, contract addresses are auto-configured.

Step 3: Gather parameters

You need all of these to run the submit command:

  1. --tests-repo (required): Git repository URL containing the failing test suite.

    • If the user provided a URL as an argument, use that.
    • Otherwise, check if the current directory is a git repo and offer to use its remote URL.
    • Ask the user if neither is available.
  2. --tests-commit (required): The commit hash of the test suite.

    • If using the current repo, detect HEAD with git rev-parse HEAD.
    • Otherwise ask the user.
  3. --reward (required): Amount of tokens to escrow, in wei.

    • Ask the user. Help them convert if they give a human-readable amount (e.g., "1 USDC" = "1000000" for 6-decimal tokens, "1 ETH worth" = "1000000000000000000" for 18-decimal tokens).
  4. --oracle (required): The Ethereum address of the oracle that will arbitrate.

    • Ask the user. Mention the public demo oracle on Sepolia: 0xc5c132B69f57dAAAb75d9ebA86cab504b272Ccbc.
  5. --arbiter (required): The arbiter contract address.

    • Ask the user. This is typically the TrustedOracleArbiter contract on their network.
  6. --token (required): The ERC20 token contract address for the reward.

    • Ask the user.

Ask for any missing parameters, grouping related questions together when possible to minimize back-and-forth.

Step 4: Execute

Run the submit command with all gathered parameters:

git-escrows submit \
  --tests-repo "<repo-url>" \
  --tests-commit "<commit-hash>" \
  --reward "<amount>" \
  --arbiter "<address>" \
  --oracle "<address>" \
  --token "<address>"

Step 5: Report results

After successful execution:

  • Report the Escrow UID prominently
  • Show the full escrow details (attester, recipient, schema, reward, token, oracle)
  • Provide the fulfill command that a solver would use:
    git-escrows fulfill --escrow-uid <UID> --solution-repo "<url>" --solution-commit "<hash>"
    
  • Mention they can track status with: git-escrows list --status open

If the command fails, help diagnose the issue (insufficient balance, wrong network, missing approval, etc.).

常见问题

智能体需要我提供哪些细节?

测试仓库地址和提交是必需的。如果你把智能体指向当前仓库,它可以自行读取这些信息。

支持哪些网络?

该技能提到 Base Sepolia 和 Sepolia,它们的合约地址会自动设置;默认使用本地测试网络。

我需要设置文件吗?

需要。智能体需要一个包含你的私钥和网络的设置文件,它也可以告诉你如何创建。

详情

作者的原始描述

Create a new git escrow bounty for a test suite. Use when the user wants to submit a challenge with escrowed token rewards for passing a failing test suite. Requires the git-escrows CLI (npm i -g git-escrows).

repo: internet-court/internet-court-skill

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能