feat(block-kit): preview blocks via slack blocks preview CLI - #98
Open
WilliamBergamin wants to merge 1 commit into
Open
feat(block-kit): preview blocks via slack blocks preview CLI#98WilliamBergamin wants to merge 1 commit into
WilliamBergamin wants to merge 1 commit into
Conversation
Teach the block-kit skill to preview blocks with the new `slack blocks preview` CLI command, which opens the Block Kit Builder with the blocks pre-loaded. The skill discovers the command's usage via --help rather than hard-coding flags, and falls back to the manual Block Kit Builder link when the CLI isn't installed. Also removes the redundant validation Escape Hatch, whose visual-debugging fallback is now covered by the richer preview step. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
🦋 Changeset detectedLatest commit: 3072bc5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WilliamBergamin
marked this pull request as ready for review
July 23, 2026 14:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Teaches the
block-kitskill to preview blocks with the newslack blocks previewCLI command, which opens the Block Kit Builder with the blocks pre-loaded. The skill discovers the command's usage via--helprather than hard-coding flags.Also removes the redundant validation Escape Hatch, whose visual-debugging fallback is now covered by the richer preview step.
Important
This PR is blocked by slackapi/slack-cli#620, which ships the
slack blocks previewcommand this skill depends on. Merge that first.Testing
Run
make lintandmake test-unit(both pass). Then exercise the skill with the prompts below.Note
In a normal session the live
slack:block-kitskill loads from the installed plugin cache, not the working tree.Prompt 1 — preview an existing set of blocks (lands directly on the new preview path):
Prompt 2 — full end-to-end (build → validate → preview, starting from plain English with no JSON):
A passing run should:
block-kitskill and prefer the Slack CLI preview path, resolvingSLACK_CMDvia theslack-cliskill's detection step.SLACK_CMD blocks preview --helpto discover usage instead of inventing the--blocksflag.--teamproactively (viaauth list, picking any authenticated workspace) rather than stalling or erroring on the missing TTY.blocks.validateuntil"ok": true, then preview.Notes
blocks previewflags. Use--helpinstead, mirroring the existingslack:slack-cli"Command Discovery via Help" idiom, so the command can change without a skill update.slack blocks previewrequires a--teamflag that does not appear in--help(it only surfaces as a runtime error). The skill directs the agent to resolve the team viaauth listand notes any authenticated workspace works for a preview.Requirements
make testand the tests pass.