fulfill-git-escrow
它能做什么
这项技能适合希望通过修复代码赚取代币奖励的人。git 托管会持有奖励,直到有人让失败的测试套件通过。本技能指导智能体编写并提交解决方案。它需要 git-escrows 命令行工具。
适用场景
- ✓当你希望通过让失败的测试套件通过来领取奖励的时候。
- ✓当你已经在代码仓库中有解决方案,只需提交时。
- ✓当你需要确认某个托管挑战仍然开放并查看其奖励的时候。
技能链接
https://github.com/internet-court/internet-court-skill/blob/main/vendored/arkhai/fulfill-git-escrow/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想解决托管挑战 42,并提交我的修复来领取奖励。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查 git-escrows 工具和你的设置,然后查找该托管及其测试仓库。它会编写代码直到测试通过,提交代码,并将其上链以领取奖励。如果你已有解决方案仓库,它会直接提交该仓库。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Fulfill Git Escrow
You are helping the user fulfill a git escrow bounty. This means submitting code that passes a failing test suite to claim the escrowed token reward.
There are two modes:
- Mode A (Write + Submit): You write the solution code, commit it, and submit. This is the default when no
--solution-repois provided by the user. - Mode B (Submit Existing): The user already has a solution repo and commit. You just submit the fulfillment.
Determine the mode from the user's input:
- If they provide
--solution-repo, use Mode B. - Otherwise, use Mode A.
The escrow UID is always required.
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"
Step 3: Validate the escrow
Run git-escrows list --verbose --format json and find the escrow matching the provided UID. Confirm:
- The escrow exists and is open
- Note the test repo URL, test commit hash, reward amount, and oracle address
If no escrow UID was provided, ask the user for one. You can help them browse with git-escrows list --status open.
Mode A: Write Solution + Submit
A1: Understand the tests
Clone or read the test repository to understand what the tests expect:
- Identify the test repo URL and commit from the escrow details
- Clone it to a temporary location:
git clone <url> /tmp/escrow-tests-<uid> && cd /tmp/escrow-tests-<uid> && git checkout <commit> - Read the test files to understand:
- What functions/modules/APIs the tests import
- What behavior they assert
- What test framework is used
- The project structure expected
A2: Write the solution
In the current working directory (or a subdirectory the user specifies):
- Create/modify files to implement the code that will make the tests pass
- Follow the project structure the tests expect (e.g., if tests import from
src/math.ts, create that file) - Include any necessary config files (package.json, Cargo.toml, etc.)
- Ensure the test framework's dependencies are accounted for
A3: Commit and get repo details
- Stage and commit the solution:
git add -A && git commit -m "solution for escrow <uid>" - Get the commit hash:
git rev-parse HEAD - Get the remote URL:
git remote get-url origin- If no remote exists, ask the user to push to a public git repo and provide the URL
A4: Submit the fulfillment
git-escrows fulfill \
--escrow-uid "<uid>" \
--solution-repo "<repo-url>" \
--solution-commit "<commit-hash>"
Mode B: Submit Existing Solution
B1: Gather parameters
From the user's input, extract:
--solution-repo: The git repo URL with the solution--solution-commit: The commit hash of the solution
If either is missing, ask the user.
B2: Submit the fulfillment
git-escrows fulfill \
--escrow-uid "<uid>" \
--solution-repo "<repo-url>" \
--solution-commit "<commit-hash>"
Step 4: Report results (both modes)
After successful execution:
- Report the Fulfillment UID prominently
- Explain that the oracle will now automatically test the solution
- Provide the collect command for after arbitration passes:
git-escrows collect --escrow-uid <escrow-uid> --fulfillment-uid <fulfillment-uid> - Suggest checking status with:
git-escrows list --verbose
If the command fails, help diagnose the issue (escrow already fulfilled, wrong network, key not registered, etc.). If the user's git key isn't registered, suggest git-escrows register-key.
常见问题
开始之前我需要什么?
需要 git-escrows 命令行工具,以及一个包含你钱包私钥和网络的设置文件。
如果我已经写好了解决方案怎么办?
把解决方案仓库交给智能体,它会直接提交该履约,而无需编写新代码。
智能体如何确认托管是有效的?
它会列出托管,检查你指定的那一个是否开放,并记下它的测试仓库、奖励和预言机。
详情
作者的原始描述
Fulfill a git escrow bounty by writing a solution or submitting an existing one. Use when the user wants to solve a test suite challenge, write code to pass tests, and claim a token reward. Requires the git-escrows CLI (npm i -g git-escrows).
热度
- GitHub 星标
- 7.0k
- 排名
- #13612
- 许可证
- —
- 更新时间
- 2026/10/26
评论
- …
同一仓库的更多技能
internet-court
7.0k帮你的智能体安全地向其他 AI 智能体或付费服务付款、雇用或进行交易,并指引它找到合适的专业指南。
genlayer-erc7710-connector
7.0k帮你的智能体把 AI 审核结果与权限系统连接起来,使不合格的审核可以限制或取消智能体的权限。
genlayer-intelligent-contracts
7.0k帮你的智能体定义 AI 裁判的规则、证据和输出,用于检查另一个智能体是否遵循了其授权范围。
x402-erc7710
7.0k帮你的智能体按次为网络服务付款,并设置在权限预算范围内的持续支出。