Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

test-slack-app

БесплатноБез исполняемых скриптовНе проверен

Use when a developer wants to test, try out, smoke-test, verify, or confirm that a Slack app built with the Slack CLI (or a plain Bolt app) actually works, by…

slackapiот slackapi★ 177 звёзд на GitHub

Об этом скилле

Test Slack App

Help a developer confirm that a Slack app they already built actually works. This is the last step of the build loop, after the create-slack-app skill scaffolds an app and the slack-cli skill runs it.

The approach is simple and safe:

  1. Run the app in a developer sandbox or a Free Team: a sandbox for preference, or a Free Team the developer created for this. Never a workspace with real coworkers in it.
  2. Read the app's source to learn what it actually listens for.
  3. Hand the developer concrete steps to perform in Slack, then help them confirm the app responds.

This is guided manual checking, not an automated test suite: you drive the setup and tell the developer what to type or click, and they confirm what they see. It works best for apps managed by the Slack CLI; there is a best-effort path for plain Bolt apps in Step 2.


Step 1: Set Up a Safe Place to Test

1a. Detect the Slack CLI

Load the slack-cli skill (with your skill tool, if you have one) before running any command, and follow its Step 1: Detect the Slack CLI to check whether the public Slack CLI is installed and resolve its command name. Don't check for the CLI yourself first: a slack on PATH isn't always the public CLI, and that step tells them apart. The fingerprint check, alias fallback, and install instructions all live there; do not duplicate them here. Refer to the resolved command as SLACK_CMD throughout. If the CLI is not installed, guide the developer through that same step to install it, since running the app needs it.

1b. Make sure there is a safe workspace to test in

Testing belongs in a workspace nobody is working in: a developer sandbox for preference, or a Free Team the developer created for this. Never a workspace with real coworkers in it.

  • Explain it from the live docs, not from here. Use the slack-docs skill to fetch and summarize https://docs.slack.dev/tools/developer-sandboxes.md, so the recommendation always reflects the current docs rather than a copy that drifts out of date. Tell the developer that Slack recommends a sandbox for building and testing apps.
  • Find the current target. Run SLACK_CMD auth list for the authenticated workspaces and their team IDs, and, from the project directory, SLACK_CMD app list for the apps already installed and their IDs.
  • Confirm the target is safe. The CLI cannot tell a sandbox, a Free Team, and a workspace full of real users apart, so ask the developer which one they are pointed at. A sandbox or a Free Team they created for this is fine. A workspace with coworkers in it is not: stop and get them onto one of the other two.
  • A Deno Slack SDK app needs a developer sandbox or a paid plan. A project is a Deno Slack SDK app when its .slack/hooks.json runs deno_slack_hooks, or its deno.json or deno.jsonc imports deno-slack-sdk. Slack requires a paid plan for workflow apps, so a Free Team won't work. Steer the developer to a sandbox, per https://docs.slack.dev/tools/deno-slack-sdk/guides/deploying-to-slack.md.
  • If there is no safe target yet, set one up with the create-slack-app skill (Step 3: Choose Where to Install the App), which owns the ranked targets, the sandbox list / sandbox create flow, and the Developer Program links. Either path finishes in the browser, so have the developer come back here once the workspace exists and they have logged into it.

1c. Quick health check

Catch obvious setup problems with the CLI's own validation before the slower hands-on checks:

  • SLACK_CMD doctor: checks the CLI, language runtime, and authentication.
  • SLACK_CMD manifest validate: run from the project directory if the app has a manifest, to confirm the app configuration is well-formed.

For a Deno Slack SDK app (spotted as 1b. Make sure there is a safe workspace to test in describes), also run the project's own tests. If deno.json or deno.jsonc defines a test task, run deno task test. The Deno samples' function tests use SlackFunctionTester with a stubbed fetch, so they need no workspace. With no test task, run deno test --allow-read if the project has *_test.ts files.

Surface anything these flag before moving on.


Step 2: Run the App

Whichever path you use below, first turn the app's log level up to debug so you have the most context while testing. Prefer a way that leaves the developer's code untouched: read the logger setup to see whether it reads a log-level environment variable (some templates wire one such as SLACK_LOG_LEVEL or LOG_LEVEL). If it does, set that variable instead of editing source. For a CLI-managed app, SLACK_CMD env set <LOG_LEVEL_VAR> debug stores it in the project .env that slack run reads; for a plain Bolt app, set it in the environment or .env the app already reads. Only when the logger reads no such variable should you edit the source, finding where the log level is set and switching it to debug for t

Полный SKILL.md на GitHub

Установить test-slack-app в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл test-slack-app?

Use when a developer wants to test, try out, smoke-test, verify, or confirm that a Slack app built with the Slack CLI (or a plain Bolt app) actually works, by running it in a developer sandbox or a Free Team, never a workspace with real users, with `slack run` and exercising its real slash commands, shortcuts, events, actions, modals, App Home, and assistant surfaces, or a Deno Slack SDK app's workflows, functions, and triggers (`slack trigger create`, `deno task test`). Also covers `slack doctor` and `slack manifest validate` health checks before hands-on testing.

Как установить скилл test-slack-app?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл test-slack-app запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить test-slack-app с