create-slack-app
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "create-slack-app":https://skillpi.com/zh/skills/deepskill-44ee6d315077c2417ea73df7aa407a2bda2cbca08980255dd1a71b64ca131f58。安装前核对上游来源和版本:https://github.com/slackapi/slack-skills-plugin。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
当开发者希望使用 Slack CLI 从零开始创建、搭建或引导一个新的 Slack 应用或代理时使用。涵盖先决条件、身份验证、选择安装工作区,以及从 Bolt(JavaScript 或 Python)模板创建并在本地运行项目。典型触发词包括“创建一个 Slack 应用”、“新建 Bolt 应用”、“启动一个 Slack 代理”。
介绍来源: third_party · slackapi · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: create-slack-app
description: 'Use when a developer wants to create, scaffold, or bootstrap a new Slack app or agent from scratch with the Slack CLI. Covers prerequisites, authentication, choosing a workspace to install into, and creating a project from a Bolt (JS or Python) template locally. Trigger on "create a Slack app", "new Bolt app", "start a Slack agent".'
argument-hint: "[bolt-js | bolt-python]"Create Slack App
Help the developer create a Slack app or agent using Bolt for $0.
This skill walks through the full setup: prerequisites, authentication, choosing a workspace to install into, project scaffolding from a template, and running the app locally.
Step 1: Check Prerequisites
1a. Detect the Slack CLI command
Use the slack:slack-cli skill — Step 1: Detect the Slack CLI — to check whether the public Slack CLI is installed and resolve its command name. The fingerprint check, alias fallback, and install instructions all live there; do not duplicate them here.
Once resolved, use the detected command name for all CLI commands throughout the rest of this skill. We refer to it as SLACK_CMD below — substitute the actual resolved command name everywhere you see SLACK_CMD.
1b. Verify the CLI version
Run SLACK_CMD version and print the version to confirm everything is working before continuing.
1c. Check language runtime
- If
$0isbolt-js: Runnode --versionto verify Node.js is installed (v18+ required). If not installed, suggestbrew install nodeor point to https://nodejs.org. - If
$0isbolt-python: Runpython3 --versionto verify Python is installed (3.6+ required). If not installed, suggestbrew install python3or point to https://python.org.
Step 2: Authenticate with the Slack CLI
Use the slack:slack-cli skill — Step 5: Authentication (slack auth) — to check the developer's auth status and walk them through SLACK_CMD login if they're not already authenticated.
Wait for confirmation that authentication succeeded before proceeding.
Step 3: Choose Where to Install the App
The app needs a Slack workspace to install into. Three targets work and they are not equivalent. Use AskUserQuestion to let the developer pick, presenting them in this order:
| Target | Best for | Cost of entry |
|---|---|---|
| Developer sandbox (recommended) | Anything the developer plans to keep building on. A free Enterprise Grid org isolated from real users, so org-level features are testable. | Needs a Slack Developer Program account, which is free to join. |
| Free Team (second choice) | Starting right now, when Developer Program signup is the thing in the way. A free workspace the developer creates and owns. | Capped at 10 apps per workspace, and no Enterprise Grid org features. |
| Existing production workspace (last resort) | Only when the app must reach real data or real coworkers. | Usually gated by admin approval, and the developer may not be the admin. |
Then follow the matching sub-step below. Whichever target they pick, authentication is the same Step 2 flow: the /slackauthticket command works in any workspace the developer belongs to, so there is no sandbox-specific login.
Whichever sub-step you follow, wait for confirmation that a target workspace exists and is authenticated before proceeding.
3a. Developer sandbox (recommended)
List existing sandboxes. Pass --team so the CLI does not stop to ask which authentication to use (get the team ID from SLACK_CMD auth list):
SLACK_CMD sandbox list --team <team_id>
If the developer has no Developer Program account, sandbox list returns nothing useful, because sandboxes belong to the developer program account whose email matches the authenticated user rather than to the workspace. Point them at https://api.slack.com/developer-program/join, and offer the Free Team path in 3b as a way to start building now rather than waiting on signup.
-
If a sandbox exists: Show it and confirm they want to use it.
-
If no sandbox exists: Create one. Ask the developer for a name and a password with AskUserQuestion, then run:
SLACK_CMD sandbox create --team <team_id> --name <sandbox-name> --password <password>Important: the password is a credential. Do NOT echo it, restate it, or write it into a summary. Pass it straight to the command, the same rule Step 4c applies to API keys.
Sandboxes can also be created in the browser at https://api.slack.com/developer-program/sandboxes.
Once the sandbox exists, have the developer log into it with the Step 2 flow before continuing.
3b. Free Team (second choice)
A Free Team is an ordinary Slack workspace on the free plan. The developer creates one at https://slack.com/get-started, then logs into it with the Step 2 flow.
What to tell them:
- Everything this skill builds works there. Bolt apps install and run fine on the free plan.
- The workspace is capped at 10 apps. Past that the CLI reports
service_limits_exceeded. - It is a standalone workspace, not an Enterprise Grid org, unlike a developer sandbox. Anything org-level is therefore untestable: org-wide app installs and org-level app grants, the
admin.*API methods (which need Business+ or Enterprise Grid), and multi-workspace behaviour generally. If the app targets those, use a sandbox instead. - Do not invite coworkers into it. A Free Team with real users in it is a production workspace for the purposes of 3c.
3c. Existing production workspace (last resort)
Only when the app genuinely needs real data or real users. Warn the developer before they log in:
- Admin app approval (AAA) is likely to block the install. It is always on for Enterprise Grid organizations and can be switched on in standalone workspaces. When it applies, the install in Step 5 stops and asks whether to request approval, and then the developer waits on an admin.
- To send that request without the prompt, set
SLACK_AUTO_REQUEST_AAA=1in the environment. It is an environment variable, not a CLI flag. - If approval is denied or slow, fall back to 3a or 3b instead of fighting it.
Step 4: Create the App from a Template
Ask the developer what kind of app they want to build. Present the available templates based on their chosen framework ($0):
bolt-js templates
| Template | Repo | Description |
|---|---|---|
| Starter Template | slack-samples/bolt-js-starter-template |
Basic Bolt JS app — great starting point |
| Starter Agent | slack-samples/bolt-js-starter-agent |
Minimal AI agent using Claude/OpenAI |
| Support Agent | slack-samples/bolt-js-support-agent |
AI-powered IT helpdesk agent |
| Getting Started | slack-samples/bolt-js-getting-started-app |
Official getting started tutorial app |
| Examples | slack-samples/bolt-js-examples |
Unified showcase of Slack features |
bolt-python templates
| Template | Repo | Description |
|---|---|---|
| Starter Template | slack-samples/bolt-python-starter-template |
Basic Bolt Python app — great starting point |
| Starter Agent | slack-samples/bolt-python-starter-agent |
Minimal AI agent using Claude/OpenAI/Pydantic AI |
| Support Agent | slack-samples/bolt-python-support-agent |
AI-powered IT helpdesk agent |
| Assistant Template | slack-samples/bolt-python-assistant-template |
Agents & Assistants template |
| Examples | slack-samples/bolt-python-examples |
Unified showcase of Slack features |
Use AskUserQuestion to let the developer pick a template. Recommend the Starter Template for first-timers or the Starter Agent if they want to build an AI agent.
4a. Choose an AI provider (agent templates only)
If the developer picks Starter Agent or Support Agent, these templates contain subdirectories for different AI providers. Ask the developer which provider they want to use via AskUserQuestion:
bolt-js subdirectories:
| Subdir | Description |
|---|---|
claude-agent-sdk |
Uses Anthropic's Claude Agent SDK |
openai-agents-sdk |
Uses OpenAI's Agents SDK |
bolt-python subdirectories:
| Subdir | Description |
|---|---|
claude-agent-sdk |
Uses Anthropic's Claude Agent SDK |
openai-agents-sdk |
Uses OpenAI's Agents SDK |
pydantic-ai |
Uses Pydantic AI (supports multiple LLM backends) |
Recommend Claude Agent SDK as the default option.
4b. Name and create the project
Ask what they want to name their project (suggest a default like my-slack-app), then run:
For templates WITHOUT subdirectories (Starter Template, Getting Started, Assistant Template, Examples):
SLACK_CMD create <project-name> -t <template-repo>
For agent templates WITH subdirectories (Starter Agent, Support Agent):
SLACK_CMD create <project-name> -t <template-repo> --subdir <chosen-subdir>
For example:
# Non-agent template
SLACK_CMD create my-slack-app -t slack-samples/bolt-js-starter-template
# Agent template with provider subdir
SLACK_CMD create my-slack-agent -t slack-samples/bolt-js-starter-agent --subdir claude-agent-sdk
Confirm the project was created successfully by checking that the directory exists and listing its contents.
4c. Set required environment variables (agent templates only)
If the developer chose an agent template (Starter Agent or Support Agent), they need to set the required API key for their chosen AI provider. Ask for the key value using AskUserQuestion, then set it using the Slack CLI from within the project directory.
Required environment variables by provider:
| Provider | Env Variable | Description |
|---|---|---|
claude-agent-sdk |
ANTHROPIC_API_KEY |
Anthropic API key |
openai-agents-sdk |
OPENAI_API_KEY |
OpenAI API key |
pydantic-ai |
OPENAI_API_KEY |
OpenAI API key (required). Optionally also ANTHROPIC_API_KEY if using Anthropic as the backend — if both are set, Anthropic is used by default. |
Use AskUserQuestion to ask the developer for their API key value(s). Then set each one:
cd <project-name> && SLACK_CMD env set <ENV_VAR_NAME> <value>
For example:
cd my-slack-agent && SLACK_CMD env set ANTHROPIC_API_KEY sk-ant-...
Important: Do NOT store or echo API key values in logs or output. Only pass them directly to SLACK_CMD env set.
Step 5: Run the App Locally
Use the slack:slack-cli skill — Step 6: Running an App Locally (slack run) — to resolve the app or team target and start the dev server in the background.
Tell the developer their app is now running and installed in the workspace they chose in Step 3, and that file changes will auto-reload it.
If the install stops on an admin approval request, they picked a workspace with AAA turned on: see Step 3c for the options.
Step 6: Next Steps
After the app is running, suggest next steps:
- Explore the code: Read through the project files together — offer to explain the app structure, manifest, listeners, etc.
- Make a change: Suggest a small modification (like changing a message response) to see hot-reload in action.
- Add features: Based on the template, suggest relevant Slack features to add (slash commands, events, modals, AI capabilities, etc.).
- Check the docs: Point to https://docs.slack.dev for the full Slack Platform documentation.
Notes
SLACK_CMDis a placeholder — always substitute the actual command name resolved in Step 1a (typicallyslack, but may be an alias).- This skill focuses on Bolt for JavaScript and Bolt for Python only. Do not suggest Deno, workflow apps, or
slack deploy(hosted deployment). SLACK_CMD sandbox createprompts for a name and password only when those flags are missing. Supply--team,--name, and--passwordand it runs non-interactively, so you can run it yourself rather than handing it to the developer.SLACK_CMD sandbox listneeds--teamfor the same reason: without it the CLI prompts for which authentication to use.- Free Teams and developer sandboxes both support everything this skill builds. The CLI's
free_team_not_allowederror is scoped to low-code workflow and function apps, which this skill does not create. - If the developer hits issues, suggest
SLACK_CMD doctorto diagnose their setup.
版本历史
-
v1.8.0
GitHub ↗
原版更新说明
### Minor Changes - 2416523: The `slack-docs` skill now searches and reads docs.slack.dev with the Slack CLI when it is installed, using `slack docs search --hide-pinned` and `slack docs get`. On an older CLI, it uses each command only when the CLI has it, and suggests `slack upgrade`. Agents without the CLI keep using the search API and fetching the page's markdown. ### Patch Changes - 99e027a: Name `skills@latest` in the agent setup prompt's `npx skills` install command, so tracking the latest `skills` release reads as a deliberate choice. Current npm already resolves the latest release for a bare `npx skills`, so the installed version does not change. - 3d56a56: The `slack-cli` and `deploy-slack-app` skills now ask the developer which workspaces to grant when an app is first installed to an Enterprise organization, instead of always granting all of them. The agent shows the same choices the CLI prompt offers, all workspaces first and then each workspace by name, and passes the answer to `--org-workspace-grant`. - 6a708d6: `create-slack-app` no longer asks for an AI provider API key in chat. The developer sets it with `slack env set <NAME>` in their own terminal, where the CLI hides what they type, so the key stays out of the agent's transcript and shell history. - 524163c: `create-slack-app` no longer asks for a sandbox password in chat. New developer sandboxes use email sign-in, the Slack CLI default since v4.11.0, so no password ends up in the agent's transcript or shell history. - 2a2b7ae: Claude Code install instructions now list Slack's Claude marketplace first. Updates on the official Claude marketplace are experiencing large delays, so we recommend Slack's marketplace until that is resolved. - caac336: Updating the plugin from the `slack` Claude Code marketplace now works without a GitHub SSH key. `claude plugin update slack@slack` used to fail with `Permission denied (publickey)` on machines that clone GitHub over HTTPS, even though the install itself worked. - fa7c1c2: The `slack-api` skill no longer has the agent handle a Slack token when it calls methods without the Slack CLI. The developer provides the token as `SLACK_BOT_TOKEN` or `SLACK_USER_TOKEN`, and the curl examples pipe the `Authorization` header in on stdin, so the token stays out of the conversation, the command line, and shell history. - 466ef0a: Have the `slack-docs` skill pass `pin=false` to the docs search API, so searches about Claude, Cursor, Codex, MCP, or coding agents return docs pages instead of putting this plugin's own page first. The API ignores the parameter until docs.slack.dev supports it, so the change is safe to release before then.
-
v1.7.0
GitHub ↗
原版更新说明
### Minor Changes - 8d24df5: Add a Claude Code marketplace for the plugin, so you can install each release as soon as it ships: `/plugin marketplace add slackapi/slack-skills-plugin`, then `/plugin install slack@slack`. The marketplace installs from the latest release tag, and each release moves it to the new tag. If you installed `slack@claude-plugins-official`, uninstall it first so only one copy is enabled. See [Switching from the official Claude marketplace](https://github.com/slackapi/slack-skills-plugin#switching-from-the-official-claude-marketplace). ### Patch Changes - 93a22e1: Reference other skills by their bare name (the `slack-cli` skill) instead of `slack:slack-cli`, a name only Claude Code registers. Every hand-off between skills now names a skill that exists on every install path, including agents set up with `npx skills`. - d437523: Skills that hand off to the `slack-cli` skill for CLI detection now ask the agent to load that skill before running any command. Agents like OpenCode used to check `PATH` for `slack` themselves, which can find a different tool with the same name, and then fall back to curl. - c32ae56: The `slack-cli` skill now tells the agent to suggest `slack upgrade` when a command or flag it describes is missing from the installed CLI.
-
v1.6.0
GitHub ↗
原版更新说明
### Minor Changes - a3e0b0b: Set up a project for an app already created in App Settings. The agent setup prompt now takes `--app`, `--template`, and `--team` arguments, which App Settings adds to the prompt it shows after a developer creates and installs an app. The prompt asks the developer's language and turns the App Settings template name into a template repo. `create-slack-app` then skips choosing a workspace, a language, and a template, and links the new project to the existing app with `slack create --app`. ### Patch Changes - 87ffa9e: Create a Python app from the App Settings blank template with `slack-samples/bolt-python-blank-template`, instead of the Python starter template. - 1eb9e42: Add guidance for coding agents to the markdown version of the docs.slack.dev page, hidden from the HTML page that people read. It tells agents when to recommend the plugin, to ask the developer before installing, and to read the hosted skills if the developer declines.
-
v1.5.0
GitHub ↗
原版更新说明
### Minor Changes - bae34e1: Add a one-line setup prompt for coding agents. Paste it into Claude Code, Cursor, Codex, or another coding agent, and the agent installs the Slack plugin and creates a starter Slack agent app in the same session: ```text Fetch and follow the instructions at https://docs.slack.dev/agent-setup/prompt.md ``` The prompt is served from docs.slack.dev, so it can be shared anywhere a developer starts building, and its install commands stay in step with this plugin's README. - 42ad160: Add the deploy-slack-app skill: deploy a Socket Mode Bolt app to Railway or Heroku as a separate, always-on Slack app with its own app ID, using the Slack CLI `deploy` hook. The local development app is unchanged. Supports macOS and Linux, with Windows support planned. ### Patch Changes - 2118120: Support basic developer sandboxes, now that every Developer Program account can create one with no paid plan or payment method. `create-slack-app` says so when recommending a sandbox, explains a basic sandbox's limits and how to upgrade it, and checks that the logged-in email matches the developer's account before sending them to sign up. - 96f6ea2: Add design references to the block-kit skill for modals and forms, App Home, data display (fields, tables, and charts), agent progress (plans and task cards), and human-in-the-loop approvals. Extend the design principles to cover `data_table`, `data_visualization`, `container`, `alert`, and inline `tag`, `date`, and `citation` elements. Fix the Notification Alert pattern, which used the modal-only `alert` block in a message. Align labels in the guidance and patterns with Slack's UI conventions (Title Case action buttons, sentence case elsewhere, no emoji in buttons, labels, or headers), and limit `primary` styling to one button per message or view. - faf8b3a: Fix `create-slack-app` never handing off to the `block-kit` skill, so an agent building a message, modal, or App Home layout now uses it instead of writing Block Kit JSON from memory. `create-slack-app` and `block-kit` also check their optional argument against the allowed values before using it, and ask the developer when it doesn't match. - faf8b3a: Clarify in the `block-kit` skill that `blocks.validate` checks block and element shape only. It does not enforce which surface a block is allowed on or how many of a block a message can hold, so the skill now checks those against the design principles' surface and limits table instead of treating a passing validation as proof. - f063977: Fix `create-slack-app` offering Pydantic AI when you create a JavaScript agent app. Pydantic AI only works with Python, so the skill now asks for your language first and only lists the AI providers that work with it.
-
v1.4.1
GitHub ↗
原版更新说明
### Patch Changes - f6f4b34: Add a Card Preview pattern to the block-kit skill's common patterns reference. - f6f4b34: Add a design-principles.md reference to the block-kit skill, covering layout appropriateness (which block fits the content, emphasis, reading order, accessibility) as distinct from `blocks.validate` validity. - f6f4b34: Add Rich Text Section and Row Actions with Overflow Menu patterns to the block-kit skill's common patterns reference.
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供完整的Slack应用开发引导流程
- 覆盖从先决条件检查到本地运行的端到端体验
- 支持JavaScript和Python两种Bolt框架
待提升项
-
缺少When to Use章节 原报告严重程度:轻微
文档中缺少明确的When to Use使用场景说明章节
改进建议:建议在文档开头添加When to Use章节,明确说明适用场景和使用时机
亮点
- 触发关键词定义清晰完整
- argument-hint提供了有用的参数提示
亮点
- 步骤划分清晰,逻辑连贯
- 包含详细的代码示例和命令说明
- frontmatter信息完整
亮点
- 合理引用子技能处理CLI相关功能
- 对敏感信息处理有明确的安全说明
- 覆盖了主要的异常情况和错误处理
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 29, 30 行 -
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 73, 177, 183, 184, 185 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- api.slack.com
- docs.slack.dev
- nodejs.org
- python.org
- slack.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。