Logotipo de Slack Setup

Slack Setup

Organización
rejot-dev
slack-setup

Configura o verifica Slack en Backoffice para realizar llamadas a la API con un token de bot, enviar mensajes, usar webhooks de Events API, menciones de la aplicación, verificar URL, validar secretos de firma o comprobar si ha llegado un evento de Slack.

Add to TypingMind

Descripción general

Editorrejot-dev
Repositoriofragno
Nombre de la habilidadslack-setup
Estrellas
62
Forks
6
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • 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.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por rejot-dev en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Slack Setup 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/rejot-dev/fragno/tree/main/apps/backoffice/content/marketplace/slack-setup/versions/1.0.0/skills/slack-setup
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → 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/rejot-dev/fragno.git /tmp/fragno
mkdir -p .claude/skills
cp -r /tmp/fragno/apps/backoffice/content/marketplace/slack-setup/versions/1.0.0/skills/slack-setup .claude/skills/slack-setup
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Slack Setup 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 encaja con la habilidad, 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 Slack Setup 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 Slack Setup 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 que encaja con la habilidad, 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á.

Slack setup

Set Slack up as one handshake: connect → verify → receive → prove.

1. Inspect existing API connections

The API capability is available automatically for the current scope. Inspect the existing outbound API connections before creating or updating the Slack connection.

Complete when the existing outbound connections are known.

2. Collect missing secrets

Collect secrets through a durable Backoffice UI rather than chat. Define a workflow and return this exact shape from a completed step.do, including only the controls for secrets still missing:

js
await step.do("request Slack credentials", async () => ({
  $ui: {
    version: 1,
    state: { response: { botUserOAuthToken: "", signingSecret: "" } },
    spec: {
      root: "form",
      elements: {
        form: {
          type: "Stack",
          props: { gap: "md" },
          children: ["bot-token", "signing-secret", "submit"],
        },
        "bot-token": {
          type: "TextInput",
          props: {
            label: "Bot User OAuth Token",
            description: "Slack token beginning with xoxb-.",
            value: { $bindState: "/response/botUserOAuthToken" },
            required: true,
            secret: true,
          },
          children: [],
        },
        "signing-secret": {
          type: "TextInput",
          props: {
            label: "Signing Secret",
            description: "Slack App → Basic Information → App Credentials.",
            value: { $bindState: "/response/signingSecret" },
            required: true,
            secret: true,
          },
          children: [],
        },
        submit: {
          type: "WorkflowEventButton",
          props: {
            label: "Connect Slack",
            eventType: "slack.credentials-submitted",
            payload: { $state: "/response" },
          },
          children: [],
        },
      },
    },
  },
}));

const credentials = await step.waitForEvent("Slack credentials", {
  type: "slack.credentials-submitted",
});

Use credentials.payload.botUserOAuthToken and credentials.payload.signingSecret only inside later step.do calls. Keep them out of workflow output, tool summaries, and prose.

Complete when the workflow has received every missing secret through slack.credentials-submitted.

3. Connect the Slack bot

Use an existing active API connection whose slug is slack. Otherwise use the submitted Bot User OAuth Token to create this connection:

js
await api.createConnection({
  slug: "slack",
  name: "Slack",
  baseUrl: "https://slack.com/api",
  auth: { type: "bearer", token: botUserOAuthToken },
});

Treat tokens as secrets: use the exact user-supplied value only in the tool call and omit it from results and prose. Verify the connection with api.getAuthStatus, then call Slack's POST /auth.test with an empty JSON body. Slack API calls can return HTTP 200 for failures, so require both HTTP 200 and body.ok === true.

If verification fails, report Slack's error value and stop. Never replace a missing token with a placeholder or test credential.

Complete when authentication is active and auth.test returns ok: true.

4. Send messages

Send with POST /chat.postMessage and a JSON body containing channel and text:

js
await api.request({
  slug: "slack",
  method: "POST",
  path: "/chat.postMessage",
  headers: { Accept: "application/json", "Content-Type": "application/json" },
  json: { channel, text },
  timeoutMs: 30000,
});

Use the channel identifier exactly as the user supplied it. Make discovery calls such as conversations.list only when the user asks to resolve or browse channels. Require body.ok === true and report Slack's error otherwise.

Complete when Slack confirms the message with ok: true.

5. Configure inbound Slack events

Inspect before writing:

js
const existing = await api.getWebhookEndpoint({ endpointId: "slack" });

Use this Slack challenge configuration:

js
const verification = {
  type: "challenge",
  method: "POST",
  when: {
    type: "equals",
    source: { type: "jsonBodyPath", path: ["type"] },
    value: "url_verification",
  },
  response: {
    type: "echoText",
    source: { type: "jsonBodyPath", path: ["challenge"] },
  },
};
const deliveryIdentity = { type: "jsonBodyPath", path: ["event_id"] };

When the endpoint is absent, create it as a draft. createWebhookEndpoint replaces the complete resource, so use it only in this branch:

js
await api.createWebhookEndpoint({
  endpointId: "slack",
  name: "Slack",
  status: "draft",
  verification,
  deliveryIdentity,
  auth: { type: "none" },
});

When the endpoint exists, preserve its stored secrets and unrelated configuration. Use updateWebhookEndpoint and include only fields that must change. In particular, omit auth when the existing authConfig is already Slack-compatible HMAC; omission preserves the stored signing secret:

js
await api.updateWebhookEndpoint({
  endpointId: "slack",
  verification,
  deliveryIdentity,
});

A Slack-compatible existing HMAC configuration has all of these values:

  • type: "hmac" and algorithm: "sha256"
  • signature header x-slack-signature, hex encoding, and prefix v0=
  • timestamped body prefix v0:, header x-slack-request-timestamp, delimiter :, and a 300-second tolerance
  • at least one stored secretRef

Collect a Signing Secret only when creating the endpoint or replacing absent/incompatible HMAC. Activate or repair it with one patch containing the necessary changed fields and this auth value:

js
await api.updateWebhookEndpoint({
  endpointId: "slack",
  status: "active",
  verification,
  deliveryIdentity,
  auth: {
    type: "hmac",
    secret: signingSecret,
    algorithm: "sha256",
    signature: {
      location: "header",
      name: "x-slack-signature",
      encoding: "hex",
      prefix: "v0=",
    },
    signedPayload: {
      type: "timestampedBody",
      prefix: "v0:",
      timestampHeader: "x-slack-request-timestamp",
      delimiter: ":",
      toleranceSeconds: 300,
    },
  },
});

Re-read the endpoint after every write. Give its publicUrl to the user for Slack App → Event Subscriptions → Request URL. Tell the user to subscribe to the app_mention bot event, grant app_mentions:read and chat:write, reinstall the Slack app when scopes change, and retry Request URL verification.

Complete when the re-read endpoint is active with Slack challenge handling, event_id delivery identity, and timestamped HMAC verification. Never report an existing setup as verified from status alone.

6. Prove event delivery

When the user asks whether a Slack message arrived, call:

js
await hooks.list({ fragment: "api", pageSize: 10 });

Find the newest completed onWebhookReceived entry whose payload has endpointId: "slack". Confirm receipt from its parsed body.event, including event type, channel, and message text when present. Keep authorization tokens, signatures, raw headers, and unrelated payload fields out of the response.

A received event proves ingestion only. State clearly when no automation exists yet to reply. Sending a reply requires chat.postMessage, normally using body.event.channel; use body.event.ts as thread_ts only when the requested reply should be threaded.

Complete when the newest matching delivery is identified, or the absence of one is reported.

Preguntas frecuentes

¿Qué hace la habilidad de IA Slack Setup?

Configura o verifica Slack en Backoffice para realizar llamadas a la API con un token de bot, enviar mensajes, usar webhooks de Events API, menciones de la aplicación, verificar URL, validar secretos de firma o comprobar si ha llegado un evento de Slack.

¿Por qué usar Slack Setup en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Slack Setup 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 Slack Setup en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/rejot-dev/fragno/tree/main/apps/backoffice/content/marketplace/slack-setup/versions/1.0.0/skills/slack-setup. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Slack Setup?

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 Slack Setup?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Slack Setup 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 Slack Setup?

Sí. rejot-dev 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 el directorio

Crea ya tu propio espacio de trabajo con IA

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