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.
You’re reading version sha-b04ef5296a8e. Go to the current version
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_decideassistant_hydrateassistant_observeassistant_scanread_fileread_linkread_threadsearch
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 asU123ABCmentions_connected_subject: a boolean selecting messages that mention the member bound to the selected provider accountkeywords: one keyword-mode search phrase string, not an array and not raw Slack search syntaxafterandbefore: ISO-8601 timestamp strings, withafterearlier thanbeforechannel_types: a non-empty array drawn frompublic_channel,private_channel,mpim, andimlimit: an integer from 1 through 20cursor: the opaquenext_cursorfrom 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.
Published execution profile
The execution profile published with sha-b04ef5296a8e, shown as its exact bytes.
| Runners |
|
|---|---|
| Profile digest | sha256:70c62ddc885f4dcf17db280b6d0d1be17b86a3a6edcdb7cc5848d2e798b7722f |
skill: slack
version: "0.2.14"
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:
inputs:
presentation_ref:
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_ref:
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_ref
limit: 15
- id: judge
inputs:
presentation_ref: $input.presentation_ref
request_digest: $input.request_digest
nonce: $input.nonce
authorized_actor_ref: $input.authorized_actor_ref
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:
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:
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:
inputs:
config: { type: object, required: true, description: Bound source configuration. }
source_ref: { 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_ref: "$input.source_ref"
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_ref: "$input.source_ref"
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:
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:
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:
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:
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.
The latest recorded test covers an earlier version, 0.2.17. It does not establish a result for this version.
Test result
| Harness result | An earlier version was tested |
|---|---|
| Tested version | 0.2.17Not this page’s version, sha-b04ef5296a8e |
| Recorded result | 6 checks passed · 0 failed |
| Result source | Run by the Runx registry at publication |
| Suite | runx-harness |
| Test recorded |
Package identity
| Published revision | sha-b04ef5296a8e |
|---|---|
| Content digest | sha256:c825dadcd7269e84cbef8b0bec88c876122a1c8b79a49e83f21e1f14e36f278f |
| SKILL.md digest | sha256:6914e1367d2e9c8472f0de9614632f117863f72a5c4a486afb37b6b23b1fcb07 |
| Execution profile digest | sha256:70c62ddc885f4dcf17db280b6d0d1be17b86a3a6edcdb7cc5848d2e798b7722f |
| Publisher identity | Verified publisher · runx |
| Trust tier | Verified publisherRunx has verified this publisher. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
0.2.17Content digest sha256:f804a031224d645e1f58f500b006583f9814c59228a8bea596125df05d214270sha-b04ef5296a8eViewingContent digest sha256:c825dadcd7269e84cbef8b0bec88c876122a1c8b79a49e83f21e1f14e36f278f