Skill 详情
create-slack-app
Creates Slack apps and agents, but platform-specific.
使用前先检查
自动化审核只检查相关性,不代表安全审查或推荐。使用前请阅读来源中的说明。
SKILL.md
这段内容是审核时保存的快照。外部来源才是完整且最新的版本。
--- name: create-slack-app description: Guide developers through creating a Slack app or agent using the Slack CLI and Bolt (JS or Python). Handles prerequisites, sandbox setup, authentication, project creation from templates, and local development. 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, sandbox creation, 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 `$0` is `bolt-js`**: Run `node --version` to verify Node.js is installed (v18+ required). If not installed, suggest `brew install node` or point to <https://nodejs.org>. - **If `$0` is `bolt-python`**: Run `python3 --version` to verify Python is installed (3.6+ required). If not installed, suggest `brew install python3` or 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: Set Up a Developer Sandbox Run `SLACK_CMD sandbox list` to check if the developer already has a sandbox. - **If a sandbox exists**: Show it and confirm they want to use it. - **If no sandbox exists**: Tell the developer to create one: ```text ! SLACK_CMD sandbox create ``` Alternatively, they can create one at <https://api.slack.com/developer-program/sandboxes> or join the Developer Program at <https://api.slack.com/developer-program/join>. Wait for confirmation that a sandbox is available before proceeding. --- ## 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 buil在 GitHub 阅读完整来源 (打开外部页面)