Slack

Read bounded Slack search, thread, link and file evidence through any compatible Slack binding, ready for an operator's triage and for message-send to reply.

Overview

Use Slack as a governed provider boundary without turning Slack—or Runx Cloud—into the owner of the operator's workflow. This skill owns the reusable Slack reading mechanics that an agent should not have to reconstruct: bounded message search, bounded thread hydration, permalink resolution and image reads. Delivering a post or a reply is message-send's job.

The operator-selected provider binding has one narrow role in this flow: retain credential custody and execute a fixed Slack operation. It may be local, self-hosted, third-party, or Runx-hosted. The skill, its procedure, approval point, retry identity, and completion rule remain in Runx OSS. Any queue, team-specific routing rule, or durable action state belongs in a higher-level operator skill.

In the manual

Runners

  • assistant_decide
  • assistant_hydrate
  • assistant_observe
  • assistant_scan
  • read_file
  • read_link
  • read_thread
  • search

Declared by its execution profile. Read the profile

SKILL.md

Slack

Use Slack as a governed provider boundary without turning Slack—or Runx Cloud—into the owner of the operator's workflow. This skill owns the reusable Slack reading mechanics that an agent should not have to reconstruct: bounded message search, bounded thread hydration, permalink resolution and image reads. Delivering a post or a reply is message-send's job.

The operator-selected provider binding has one narrow role in this flow: retain credential custody and execute a fixed Slack operation. It may be local, self-hosted, third-party, or Runx-hosted. The skill, its procedure, approval point, retry identity, and completion rule remain in Runx OSS. Any queue, team-specific routing rule, or durable action state belongs in a higher-level operator skill.

Runners

search reads one bounded Slack search page. Supply a query object with at least one of author_external_id, mentions_connected_subject, or keywords. The exact fields are:

  • author_external_id: one Slack member id string, such as U123ABC
  • mentions_connected_subject: a boolean selecting messages that mention the member bound to the selected provider account
  • keywords: one keyword-mode search phrase string, not an array and not raw Slack search syntax
  • after and before: ISO-8601 timestamp strings, with after earlier than before
  • channel_types: a non-empty array drawn from public_channel, private_channel, mpim, and im
  • limit: an integer from 1 through 20
  • cursor: the opaque next_cursor from the preceding page

The provider rejects embedded Slack modifiers in keywords, enforces the maximum page, and returns normalized locators and bounded previews rather than a raw Slack response. Continue only from next_cursor; one page is never proof that a workspace scan is complete.

read_thread reads one bounded thread page from an exact slack://workspace/channel/timestamp locator. The limit is capped at 15 because Slack applies a low limit and, for some non-Marketplace installations, a very low request cadence to conversations.replies. Hydrate only threads that are actually needed, preserve next_cursor, and do not fan out speculative reads. Thread messages include bounded attachment metadata and opaque slack-file://workspace/file locators; private Slack download URLs never cross the provider boundary.

read_link accepts one exact Slack archive permalink and reads the same bounded thread page. Use it when an operator pastes a normal https://workspace.slack.com/archives/channel/message link and therefore does not have the workspace id required by a canonical locator. The provider binding validates the permalink, binds it to the authenticated workspace identity, and returns the canonical slack://workspace/channel/timestamp locator. A reply permalink's thread_ts identifies the root; Slack's redundant cid must match the path channel. This runner requires only thread.read, never a search grant.

read_file reads one image attachment from an exact file locator returned by read_thread. It requires file.read, verifies the file through Slack, restricts downloads to Slack's private file origin, accepts images only, and caps decoded bytes at 5 MiB. The result contains the MIME type, content digest, and base64 bytes so the caller can inspect the image without receiving the Slack credential or private URL.

Replies go through message-send: plan_reply binds a proposed reply to the exact canonical thread and its digest, and deliver_reply posts it once after approval and reads it back; reply delivers a reply bound to a source packet. Use message-send send for a proactive top-level channel post. A product-owned skill may add team-specific triage and compose these skills, but must not copy their provider transport, approval, idempotency, readback, or queue logic.

Authority and privacy

Reads resolve a compatible Slack binding for messages.search, thread.read, or file.read and do not ask for human approval. Runx supplies the idempotency key once, and the selected transport verifies the registered operation and its read/mutate class against the bound provider authority.

The skill never receives a Slack token, constructs HTTP, or stores a raw provider envelope. Search and thread outputs contain bounded previews because the operator needs context. Reply receipts contain only stable locators, timestamps, and a content digest; they do not echo the delivered message.

Stop conditions

  • Refuse a missing, ambiguous, revoked, wrong-provider, or insufficient-scope Slack binding. Never fall back to a token, webhook, browser, or provider-specific script.
  • Stop when a search has no structural selector, uses an unsupported modifier, or asks for more than one bounded page per turn.
  • Stop when an attachment is not an image, exceeds 5 MiB, belongs to another workspace, or resolves outside Slack's governed private-file origin.
  • Stop on malformed permalinks, unsupported permalink query fields, cross-workspace locators, or thread/message channel mismatch.
  • Do not infer that a request is resolved from Slack prose. Record resolution, waiting, follow-up, or dismissal explicitly in the owning operator workflow.
  • Do not claim complete scan coverage while a cursor remains.

Worked flow

An operator can search for direct mentions or start from a pasted Slack permalink. They hydrate only the actionable thread, preserve its canonical locator, then pass that normalized observation to a team-specific triage skill. If a reply is needed, message-send plan_reply binds the proposed text to the exact canonical thread. A changed draft fails before approval. An approved unchanged reply is posted once, then read back from the exact returned message locator before Runx seals the effect.

Operator conversation handoff

assistant_scan returns one bounded search page and its continuation cursor; assistant_observe binds each message to its source identity. Hydration checks that identity against the canonical open action before reading the thread. The resulting runx.source_packet.v1 supplies workflow_inputs.thread with the exact source and thread bindings, message evidence and coverage flag, plus source_complete for conversation-review#operate. Missing source messages, truncated content or another page keep coverage incomplete. The consumer holds that work rather than treating a partial thread as resolved.

Published execution profile

The execution profile published with 0.2.17, shown as its exact bytes.

Runners
  • assistant_decide
  • assistant_hydrate
  • assistant_observe
  • assistant_scan
  • read_file
  • read_link
  • read_thread
  • search
Profile digestsha256:e7c6e333912fbec101d3e498db2592efa0f396daa0b2bd9da8e37ff0da1fcd6c
skill: slack
version: "0.2.17"

catalog:
  kind: graph
  audience: operator
  visibility: public
  role: canonical
  provider: slack
  execution: execute
  completion: provider_readback
  approval: conditional
  category: ops

connectors:
  slack:
    operations: [messages.search, thread.read, file.read]
runners:
  assistant_decide:
    description: For an assistant watching Slack, read a decision thread and judge the authorized member's answer in it.
    inputs:
      presentation_locator:
        type: string
        required: true
        description: Exact posted Slack message locator that roots this decision thread.
        schema: { pattern: '^slack://[A-Z][A-Z0-9]+/[CGD][A-Z0-9]+/[0-9]+\.[0-9]+$', maxLength: 300 }
      request_digest:
        type: string
        required: true
        schema: { pattern: '^sha256:[0-9a-f]{64}$' }
      nonce:
        type: string
        required: true
        schema: { pattern: '^[0-9a-f]{16}$' }
      authorized_actor_id:
        type: string
        required: true
        description: Exact Slack member ID authorized to answer this request.
        schema: { pattern: '^[UW][A-Z0-9]{2,}$', maxLength: 100 }
    result_from: [judge]
    steps:
      - id: thread
        skill: .
        runner: read_thread
        inputs:
          thread_locator: $input.presentation_locator
          limit: 15
      - id: judge
        inputs:
          presentation_locator: $input.presentation_locator
          request_digest: $input.request_digest
          nonce: $input.nonce
          authorized_actor_id: $input.authorized_actor_id
          provider_operation: $steps.thread.provider_operation
        tool: { module: assistant-source.mjs, export: decideAssistantRequest }
        outputs: { decision_observation: object }
        artifacts:
          named_emits: { decision_observation: decision_observation }
          packets: { decision_observation: runx.decision_observation.v1 }
  assistant_scan:
    description: For an assistant watching Slack, search a bounded page of new source messages under its configuration.
    inputs:
      config: { type: object, required: true, description: Bounded source search configuration. }
      cursor: { type: string, required: false, description: Opaque source cursor. }
      page_limit: { type: integer, required: true, description: Maximum search rows, schema: { minimum: 1, maximum: 20 } }
    result_from: [finish]
    steps:
      - id: prepare
        inputs: { config: "$input.config", cursor: "$input.cursor", page_limit: "$input.page_limit" }
        tool: { module: assistant-source.mjs, export: prepareAssistantScan }
        outputs: { scan_request: object }
      - id: search
        skill: .
        runner: search
        inputs:
          query: $steps.prepare.scan_request.query
      - id: finish
        inputs:
          page_limit: $input.page_limit
          provider_operation: $steps.search.provider_operation
        tool: { module: assistant-source.mjs, export: finishAssistantScan }
        outputs: { assistant_page: object }
        artifacts:
          named_emits: { assistant_page: assistant_page }
          packets: { assistant_page: runx.conversation_page.v1 }
  assistant_observe:
    description: For an assistant watching Slack, turn one message assistant_scan found into an observation.
    inputs:
      config: { type: object, required: true, description: Bound source configuration. }
      item: { type: object, required: true, description: One message from assistant_scan. }
    result_from: [observe]
    steps:
      - id: observe
        inputs: { config: "$input.config", item: "$input.item" }
        tool: { module: assistant-source.mjs, export: observeAssistantMessage }
        outputs: { assistant_observation: object }
        artifacts:
          named_emits: { assistant_observation: assistant_observation }
          packets: { assistant_observation: runx.conversation_observation.v1 }
  assistant_hydrate:
    description: For an assistant watching Slack, read the thread of an admitted message for its open action.
    inputs:
      config: { type: object, required: true, description: Bound source configuration. }
      source_locator: { type: string, required: true, description: Admitted message locator. }
      source_digest: { type: string, required: true, description: Admitted occurrence digest. }
      thread_locator: { type: string, required: true, description: Admitted thread locator. }
      action: { type: object, required: true, description: Canonical open operator action. }
      cursor: { type: string, required: false, description: Opaque thread continuation cursor. }
    result_from: [finish]
    steps:
      - id: prepare
        inputs:
          source_locator: "$input.source_locator"
          thread_locator: "$input.thread_locator"
          action: "$input.action"
          cursor: "$input.cursor"
        tool: { module: assistant-source.mjs, export: prepareAssistantHydrate }
        outputs: { hydrate_request: object }
      - id: thread
        skill: .
        runner: read_thread
        inputs:
          thread_locator: $steps.prepare.hydrate_request.thread_locator
          cursor: $steps.prepare.hydrate_request.cursor
          limit: $steps.prepare.hydrate_request.limit
      - id: finish
        inputs:
          source_locator: "$input.source_locator"
          source_digest: "$input.source_digest"
          thread_locator: "$input.thread_locator"
          action: "$input.action"
          provider_operation: $steps.thread.provider_operation
        tool: { module: assistant-source.mjs, export: finishAssistantHydrate }
        outputs: { assistant_context: object }
        artifacts:
          named_emits: { assistant_context: assistant_context }
          packets: { assistant_context: runx.source_packet.v1 }
  search:
    description: Search one bounded page of Slack messages by author, a mention of the connected member, or keywords, continuing with its cursor.
    default: true
    inputs:
      query:
        type: object
        required: true
        description: Bounded Slack search object; requires author_external_id (member-id string), mentions_connected_subject (boolean), or keywords (one phrase string, never an array).
        schema:
          additionalProperties: false
          properties:
            author_external_id: { type: string, pattern: '^[UW][A-Z0-9]{2,}$', maxLength: 100 }
            mentions_connected_subject: { const: true }
            keywords: { type: string, minLength: 1, maxLength: 500, pattern: '^[^?\r\n\u0000-\u001f]+$' }
            after: { type: string, format: date-time, maxLength: 100 }
            before: { type: string, format: date-time, maxLength: 100 }
            channel_types:
              type: array
              minItems: 1
              maxItems: 4
              uniqueItems: true
              items: { type: string, enum: [public_channel, private_channel, mpim, im] }
            limit: { type: integer, minimum: 1, maximum: 20, default: 20 }
            cursor: { type: string, minLength: 1, maxLength: 500 }
          anyOf:
            - required: [author_external_id]
            - required: [mentions_connected_subject]
            - required: [keywords]
    examples:
      - query: { keywords: release readiness, channel_types: [public_channel, private_channel], limit: 20 }
    result_from: [search]
    steps:
      - id: search
        operation: slack/messages.search
        result_fields: [external_tenant_ref, connected_subject_ref, messages, next_cursor]
        input: $input.query

  read_thread:
    description: Read one bounded page of a thread from its exact slack:// locator.
    inputs:
      thread_locator:
        type: string
        required: true
        description: Exact slack://workspace/channel/timestamp thread locator.
        schema: { pattern: '^slack://[A-Z][A-Z0-9]+/[CGD][A-Z0-9]+/[0-9]+\.[0-9]+$', maxLength: 300 }
      limit:
        type: integer
        required: false
        default: 15
        description: Bounded messages to return; provider maximum is 15.
        schema: { minimum: 1, maximum: 15 }
      cursor:
        type: string
        required: false
        description: Opaque cursor returned by the preceding thread page.
    examples:
      - thread_locator: slack://T123ABC/C123ABC/1750000000.000001
        limit: 15
    result_from: [read]
    steps:
      - id: read
        operation: slack/thread.read
        expected_result:
          thread_locator: $input.thread_locator
        result_fields: [external_tenant_ref, connected_subject_ref, thread_locator, messages, next_cursor]
        input:
          thread_locator: $input.thread_locator
          limit: $input.limit
          cursor: $input.cursor

  read_link:
    description: Read the thread a pasted Slack archive permalink points to, returning its canonical locator.
    inputs:
      permalink:
        type: string
        required: true
        description: Exact https://workspace.slack.com/archives/channel/message permalink.
        schema: { pattern: '^https://[^/]+\.slack\.com/archives/[A-Z0-9]+/p[0-9]+$', maxLength: 2048 }
      limit:
        type: integer
        required: false
        default: 15
        description: Bounded messages to return; provider maximum is 15.
        schema: { minimum: 1, maximum: 15 }
      cursor:
        type: string
        required: false
        description: Opaque cursor returned by the preceding thread page.
    examples:
      - permalink: https://example.slack.com/archives/C123ABC/p1750000000000001
        limit: 15
    result_from: [read]
    steps:
      - id: read
        operation: slack/thread.read
        result_fields: [external_tenant_ref, connected_subject_ref, thread_locator, messages, next_cursor]
        input:
          thread_locator: $input.permalink
          limit: $input.limit
          cursor: $input.cursor

  read_file:
    description: Read one image attached to a thread, from the file locator read_thread returned.
    inputs:
      file_locator:
        type: string
        required: true
        description: Exact slack-file://workspace/file locator returned by read_thread.
        schema: { pattern: '^slack-file://[A-Z][A-Z0-9]+/F[A-Z0-9]+$', maxLength: 300 }
    examples:
      - file_locator: slack-file://T123ABC/F123ABC
    result_from: [read]
    steps:
      - id: read
        operation: slack/file.read
        expected_result:
          file_locator: $input.file_locator
        result_fields: [external_tenant_ref, connected_subject_ref, file_locator, name, mimetype, size_bytes, image_width, image_height, content_digest, data_base64]
        input:
          file_locator: $input.file_locator

harness:
  files: [fixtures/support/composed.graph]
  cases: []

Published package and test evidence.

This exact version passed its recorded harness run: 6 checks passed · 0 failed.

Test result

Harness resultPassed
Tested version0.2.17
Recorded result6 checks passed · 0 failed
Result sourceRun by the Runx registry at publication
Suiterunx-harness
Test recorded
Test recordOpen the recorded run
Inspect receipt referencessha256:f29dac369293122ceacf65b1e3487231b8368dd76e3b588ab32a82901438bc6esha256:f2a91b39f9668848ad43e579decf1ecb6d2105e70a81248095cf558c8137adbesha256:155322bc848551cc06f59c57987b52d47c28718e4554de9b99fbba992c1c4d81sha256:63b3b358f03d4c7588a8ece7770773ba4ec9a10baa192a9c475bfac2cb2bc9dfsha256:130fa113e1552a97920a4fe1811bd3b476c82793b1a0fa9d122d4aebd1a4d7dasha256:19d565b73ba9c21385d35443f5c6f25aa064bbe131e8c439f8e56142fed43aed

Package identity

Published revision0.2.17
Content digestsha256:f804a031224d645e1f58f500b006583f9814c59228a8bea596125df05d214270
SKILL.md digestsha256:0c8b34056e4600c78b2e7072e4df236878f77b29adde0510b0d1220774fc36c3
Execution profile digestsha256:e7c6e333912fbec101d3e498db2592efa0f396daa0b2bd9da8e37ff0da1fcd6c
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 25 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.2.17ViewingContent digest sha256:f804a031224d645e1f58f500b006583f9814c59228a8bea596125df05d214270
  2. sha-b04ef5296a8eContent digest sha256:c825dadcd7269e84cbef8b0bec88c876122a1c8b79a49e83f21e1f14e36f278f