Logotipo de Submit Hook

Submit Hook

Organización
aeonfun
submit-hook

Submit a deployed Uniswap v4 hook to the public univ4-hooks registry - format the listing, open a PR (issue fallback) so it lists on the hook marketplace.

Descripción general

Editoraeonfun
Repositorioaeon
Nombre de la habilidadsubmit-hook
Estrellas
771
Forks
280
Archivos incluidos
1
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • 1 archivos incluidos

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por aeonfun en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Submit Hook en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/aeonfun/aeon/tree/main/skills/submit-hook
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aeonfun/aeon.git /tmp/aeon
mkdir -p .claude/skills
cp -r /tmp/aeon/skills/submit-hook .claude/skills/submit-hook
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Submit Hook en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Submit Hook automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Submit Hook no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

${var} - a hook address (0x...) to submit. Empty means the most recent live mainnet deploy in memory/state/hook-deploys.json.

Today is ${today}. This skill takes a hook this instance already deployed and lists it on the public registry aeonfun/univ4-hooks (the source behind the aeon hook marketplace). It does the formatting the registry expects, then opens a PR. The flags and callbacks are decoded from the address by the registry, so this skill only supplies the address, the chain, and the human-readable listing.

The mechanics (clone, write the entry, regenerate the registry, open the PR, fall back to an issue when there is no push access) live in skills/submit-hook/submit-univ4.py, so all GitHub egress stays inside that helper.

What lists, and what does not

  • Only live mainnet deploys. A dry-run or a testnet deploy is never submitted (the registry lists real, verifiable hooks). Skip with SUBMIT_HOOK_SKIP.
  • Only registry-supported chains. The registry's chains.json covers ethereum base robinhood monad bnb arbitrum unichain. A deploy on any other chain is skipped (SUBMIT_HOOK_UNSUPPORTED_CHAIN); note it and stop.
  • Idempotent. The helper skips if the address (any chain) or the slug is already listed, so re-running is safe.

Steps

  1. Pick the deploy. Read memory/state/hook-deploys.json (a list of deploy records). If ${var} is a 0x... address, select the record whose hookAddress matches it; else select the most recent record with network: "mainnet". No matching record means notify and exit SUBMIT_HOOK_NONE.

  2. Gate it. If the record's network is not mainnet, exit SUBMIT_HOOK_SKIP. If its chain is not one of ethereum base robinhood monad bnb arbitrum unichain, exit SUBMIT_HOOK_UNSUPPORTED_CHAIN (the registry cannot list it yet). Confirm int(hookAddress,16) & 0x3FFF == int(flags,16); if not, the record is inconsistent, so notify and exit SUBMIT_HOOK_BAD_RECORD.

  3. Name it. Derive a PascalCase contract-style name from the record's brief/feature (a market-hours gate becomes MarketHoursGate). This is the marketplace title and the hooks/<slug>.json filename.

  4. Classify it. From the brief and flagNames, choose:

    • category: one of Fees Rewards Access Games Orders Launch. A gate/allowlist is Access; a fee/volatility hook is Fees; a tribute/buyback/leaderboard is Rewards; a block/price/volume game is Games; limit/async/MEV ordering is Orders; launch/anti-bot/anti-rug is Launch.
    • klass: VALUE if the hook returns a delta or moves tokens (a *ReturnDelta flag), FEE if it sets a dynamic LP fee, else GATE.
    • template: map the record's template. dynamic stays dynamic, noop stays noop, anything else (freeform/skim) becomes freeform.
  5. Write the listing prose from the brief:

    • mechanic: one punchy line for the tile.
    • plain: 2-4 plain-language sentences a non-dev follows, for the modal.
    • rules: the exact rules the hook enforces, one per line (2-4).
  6. Submit. Run the helper (a live mainnet deploy that cleared this instance's deploy gates lists as an aeon, verified hook):

    bash
    python3 skills/submit-hook/submit-univ4.py \
      --address "$HOOK_ADDRESS" --chain "$CHAIN" \
      --name "$NAME" --category "$CATEGORY" --klass "$KLASS" \
      --template "$TEMPLATE" --stage deployed --source aeon --verified \
      --date "$(echo "$TIMESTAMP" | cut -c1-10)" \
      --mechanic "$MECHANIC" --plain "$PLAIN" \
      --rule "$RULE1" --rule "$RULE2" [--rule "$RULE3"]

    Add --dry-run first to print the entry and the intended action without touching the registry, then drop it to actually open the PR. The helper prints the PR URL (or the issue URL on a fallback, or already listed).

  7. Notify + exit. Send a short note (hook name, chain, PR/issue URL). Exit SUBMIT_HOOK_OK (PR/issue opened or already listed).

Degrade rules

  • No ledger or no matching record: SUBMIT_HOOK_NONE (notify, never fail hard).
  • Testnet or dry-run deploy: SUBMIT_HOOK_SKIP.
  • Chain not in the registry: SUBMIT_HOOK_UNSUPPORTED_CHAIN.
  • flags != address & 0x3FFF in the record: SUBMIT_HOOK_BAD_RECORD.
  • No push access to the registry: the helper files the structured submission issue instead and still exits SUBMIT_HOOK_OK.

Notes

  • The registry validates every PR: flags/callbacks are recomputed from the address, the schema is enforced, and the aggregated hooklist.json is checked. The helper regenerates hooklist.json + HOOKS.md before pushing so that check passes.
  • deploy-uni-hook calls this same helper on a successful live deploy, so a hook usually lists itself the moment it lands. Run this skill by hand to resubmit an older deploy or one that failed to auto-list.
  • The helper never puts a token on a command line. It uses the gh CLI, which reads GH_TOKEN from the environment.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Se ofrecen como archivos de lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Submit Hook?

Submit a deployed Uniswap v4 hook to the public univ4-hooks registry - format the listing, open a PR (issue fallback) so it lists on the hook marketplace.

¿Por qué usar Submit Hook en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Submit Hook está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Submit Hook en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/aeonfun/aeon/tree/main/skills/submit-hook. TypingMind lee su archivo SKILL.md, empaqueta sus archivos y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Submit Hook?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Submit Hook?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Submit Hook con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Submit Hook?

Sí. aeonfun la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇