alkahest-user
Qué hace
Esta skill muestra cómo usar la herramienta alkahest de línea de comandos para retener tokens en depósito en garantía en cadenas EVM. Explica los roles de comprador, vendedor y oráculo, y cómo iniciar sesión con una cartera.
Cuándo usarla
- ✓Cuando quieres bloquear tokens en un depósito en garantía hasta que un vendedor entregue el trabajo.
- ✓Cuando eres el vendedor y necesitas demostrar que cumpliste las condiciones del comprador.
- ✓Cuando actúas como oráculo y debes aprobar o rechazar una entrega.
Link de la skill
https://github.com/internet-court/internet-court-skill/blob/main/vendored/arkhai/alkahest-user/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Quiero crear un depósito en garantía que libere tokens a un vendedor cuando entregue el trabajo.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente ejecuta la herramienta de línea de comandos con una cartera que tú le das, mediante una clave privada, una frase de recuperación o una cartera de hardware. Usa comandos para cada rol con el fin de crear el depósito, enviar el trabajo o registrar una decisión.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Alkahest User Skill
What is Alkahest?
Alkahest is an EAS-based (Ethereum Attestation Service) escrow protocol for trustless exchanges on EVM chains. It enables:
- Token escrow with programmable release conditions (ERC20, ERC721, ERC1155, native tokens, bundles)
- Arbiter-based validation — release conditions are defined by arbiter contracts that check fulfillment
- Composable demands — combine multiple conditions with AND/OR logic
- Oracle arbitration — off-chain validation with on-chain decision submission
- Commit-reveal — frontrunning protection for self-contained fulfillment data
Supported chains: Base Sepolia, Sepolia, Ethereum mainnet.
Roles
| Role | Description |
|---|---|
| Buyer | Creates escrow with assets + demand (what they want in return) |
| Seller | Fulfills the demand to collect escrowed assets |
| Oracle | Validates fulfillment and submits on-chain decisions (for TrustedOracleArbiter) |
CLI Setup
Install globally via npm install -g alkahest-cli, then run commands with:
alkahest [global-flags] <command> <subcommand> [options]
Authentication
Provide a wallet via one of (in priority order):
| Method | Flag / Env Var |
|---|---|
| Private key flag | --private-key 0x... |
| Mnemonic flag | --mnemonic "word1 word2 ..." |
| Ledger USB | --ledger [--ledger-path <path>] |
| Private key env | ALKAHEST_PRIVATE_KEY=0x... |
| Mnemonic env | ALKAHEST_MNEMONIC="word1 word2 ..." |
| Compat env | PRIVATE_KEY=0x... |
Global Flags
--chain <name> base-sepolia (default) | sepolia | ethereum
--rpc-url <url> Custom RPC URL (overrides chain default)
--human Human-readable output (default: JSON)
Output Format
JSON by default (ideal for programmatic/agent use). All BigInts are serialized as strings.
{ "success": true, "data": { "hash": "0x...", "uid": "0x..." } }
{ "success": false, "error": { "code": "ESCROW_CREATE_FAILED", "message": "..." } }
Use --human for labeled, indented output.
Buyer Workflow: Create Escrow
1. Encode the demand
First, encode the demand data that specifies your release condition:
# Trusted oracle demand — oracle must approve fulfillment
alkahest arbiter encode-demand \
--type trusted-oracle \
--oracle 0xORACLE_ADDRESS \
--data 0x
# Returns: { "success": true, "data": { "encoded": "0x..." } }
2. Create the escrow
Use the --arbiter address and the encoded --demand hex from step 1:
# ERC20 escrow with auto-approve
alkahest --private-key 0xKEY escrow create \
--erc20 \
--token 0xTOKEN_ADDRESS \
--amount 1000000000000000000 \
--arbiter 0xARBITER_ADDRESS \
--demand 0xENCODED_DEMAND \
--expiration 1735689600 \
--approve
# ERC721 escrow
alkahest --private-key 0xKEY escrow create \
--erc721 \
--token 0xNFT_ADDRESS \
--token-id 42 \
--amount 0 \
--arbiter 0xARBITER_ADDRESS \
--demand 0xENCODED_DEMAND \
--expiration 1735689600 \
--approve
# Native token (ETH) escrow — no approve needed
alkahest --private-key 0xKEY escrow create \
--native \
--token 0x0000000000000000000000000000000000000000 \
--amount 500000000000000000 \
--arbiter 0xARBITER_ADDRESS \
--demand 0xENCODED_DEMAND \
--expiration 1735689600
Returns { "success": true, "data": { "hash": "0x...", "uid": "0x...", ... } }. Save the uid — this is the escrow UID.
3. Wait for fulfillment
alkahest --private-key 0xKEY escrow wait \
--erc20 --uid 0xESCROW_UID
# Blocks until fulfilled. Returns: { payment, fulfillment, fulfiller }
4. Reclaim expired escrow (if unfulfilled)
alkahest --private-key 0xKEY escrow reclaim \
--erc20 --uid 0xESCROW_UID
5. Get escrow details
alkahest --private-key 0xKEY escrow get \
--erc20 --uid 0xESCROW_UID
Seller Workflow: Fulfill Escrow
Using StringObligation (off-chain validated work)
# 1. Create fulfillment referencing the escrow
alkahest --private-key 0xKEY string create \
--item "Here is my completed deliverable" \
--ref-uid 0xESCROW_UID
# Returns: { uid: "0xFULFILLMENT_UID", ... }
# 2. If escrow uses TrustedOracleArbiter, oracle arbitrates
alkahest --private-key 0xORACLE_KEY arbiter arbitrate \
--obligation 0xFULFILLMENT_UID \
--demand 0xDEMAND_HEX \
--decision true
# 3. Collect the escrow
alkahest --private-key 0xSELLER_KEY escrow collect \
--erc20 \
--escr
Preguntas frecuentes
¿Qué redes admite Alkahest aquí?
La skill enumera Base Sepolia, Sepolia y la red principal de Ethereum.
¿Cómo puede el agente iniciar sesión en mi cartera?
Puedes darle una clave privada, una frase de recuperación o una cartera de hardware Ledger.
¿Las condiciones de liberación pueden ser complejas?
Sí. Las condiciones pueden combinarse con lógica AND u OR, y pueden cubrir varios tipos de tokens.
Detalles
Descripción original del autor
Interact with Alkahest escrow contracts as a buyer, seller, or oracle using the CLI
Popularidad
- Estrellas en GitHub
- 7,0 mil
- Posición en el ranking
- #13611
- Licencia
- —
- Actualizada
- 26/10/2026
Comentarios
- …
Más skills de este repositorio
internet-court
7,0 milAyuda a tu agente a pagar, contratar o tratar de forma segura con otro agente de IA o con un servicio de pago, y lo dirige a la guía especializada adecuada.
genlayer-erc7710-connector
7,0 milAyuda a tu agente a conectar el resultado de una revisión de IA con un sistema de permisos, para que una mala revisión limite o cancele los permisos de un agente.
genlayer-intelligent-contracts
7,0 milAyuda a tu agente a definir las reglas, las pruebas y los resultados de un juez de IA que comprueba si otro agente cumplió su mandato.
x402-erc7710
7,0 milAyuda a tu agente a pagar servicios web una solicitud a la vez, y a configurar un gasto continuo que se mantenga dentro de un presupuesto de permisos.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.