All skills
ccheney avatar

/slack-block-kit

@f71635f

Build or debug Slack Block Kit payloads for messages, modals, App Home, streaming responses, and Work Object unfurls. Use for block layout, elements, or interaction schemas; not plain Slack text formatting alone.

Use this Skill: https://skilld.dev/gh/ccheney/robust-skills/slack-block-kit

This session only. Nothing lands on disk.

SKILL.md

≈57 tokens always: the name and description. ≈706 when used: this file. ≈29k more on demand in 8 files.

Slack Block Kit

Construct the requested Slack layout or interaction using the receiving surface's schema. The user's explicit instructions take precedence over this skill's guidelines.

Establish the surface

Use the requested content, interaction, target Slack method/surface, and any existing payload as input. Infer the surface from code when possible; ask if a missing choice changes the payload. Ordinary text replies do not require blocks.

Work Reference
Message, modal, App Home, or interaction lifecycle SURFACES.md
Block choice, fields, limits, surface compatibility BLOCKS.md
Buttons, inputs, menus, pickers ELEMENTS.md
Text objects, options, confirmation dialogs COMPOSITION.md
Structured rich-text nesting and inline elements RICH-TEXT.md
start/append/stop streaming, chunks, SDK differences STREAMING.md
Entity unfurls, flexpanes, edits, comments WORK-OBJECTS.md
Compact block/element/limit lookup CHEATSHEET.md

Load only the relevant reference or section. Payload construction does not require a Slack connection. Use the separately installed slack-mrkdwn skill for detailed text-formatting questions when available; the composition and rich-text references here cover the required object shapes independently.

Preserve the payload contract

  • Choose text syntax per field: mrkdwn uses *bold* and <url|label>; plain_text is literal; markdown blocks use standard Markdown; rich_text uses structured elements.
  • Check surface compatibility: for example, alerts are modal-only and message payloads have different limits from modal/Home views.
  • Keep top-level fallback text semantically aligned with blocks when provided. Screen readers and mobile notifications can depend on it.
  • Escape untrusted text for its receiving field. Preserve supplied IDs and URLs; do not fabricate real channel, user, trigger, or entity identifiers.
  • A modal needs a live trigger and interaction handling; a static preview does not prove the lifecycle works. Follow the current method/SDK contract when streaming schemas disagree.

Deliver valid JSON or integration code for the requested surface, with necessary fallback text and any unresolved runtime inputs. Verify payload structure and relevant limits; test live delivery only when requested or already authorized. Creating a payload does not itself authorize posting it.

Use the Slack Block Kit reference and the exact Web API method/SDK schema for current fields and limits that the bundled reference does not establish.

Source: SKILL.md on GitHub

No alerts15d4 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    This skill is a technical reference for Slack Block Kit. It provides detailed API documentation, schema requirements, and security guidelines for building Slack payloads. No malicious code or risky patterns were found.

  • Socket15d

    No alerts

  • Snyk15d

    Risk: LOW · No issues

  • Runlayer7mo

    8 files scanned · No issues

Signed by skilld at f71635f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 3 weeks ago

README badge

README badge for ccheney/robust-skills/slack-block-kit