slack-docs
Original:🇺🇸 English
Translated
Search and read the official Slack platform documentation at docs.slack.dev. Use this skill to answer conceptual or how-to questions about Slack features. You can also use it to look up, fetch, or summarize specific guide pages from provided docs.slack.dev links.
2installs
Added on
NPX Install
npx skill4agent add slackapi/slack-skills-plugin slack-docsTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Slack Platform Documentation
Help the developer find the right page on the official Slack documentation site () and read it as clean markdown, so answers come from the live docs rather than memory. The site exposes three machine-readable surfaces an agent can use directly, with no authentication and no Slack workspace:
https://docs.slack.dev- A search API method: returns ranked page hits as JSON. Scope every search with a
GET https://docs.slack.dev/api/v1/search?query=<q>&category=<c>(guides, reference, a specific SDK, etc.); an uncategorized search skews heavily toward SDK pages.category - Per-page markdown: every page is available at its URL + (e.g.
.md)./quickstart.md - Index files: (a curated overview) and
/llms.txt(a list of every markdown page)./llms-sitemap.md
If is provided, it is either a URL (jump to the Fast Path) or a topic to search (start at Step 1). For a broad "how do I build X on Slack?" question rather than one specific page, read first; it is a curated, LLM-oriented overview of the platform and the recommended build path.
$0docs.slack.devhttps://docs.slack.dev/llms.txtCritical rules:
- The docs are the source of truth. Do not answer a factual question about the Slack platform from memory; discover the page, fetch it, then answer from what it says.
- Prefer the
version of any page over the HTML version. It is cleaner for reading and quoting..md- Every fetched markdown page begins with a
line. Keep that URL so you can cite the page back to the developer.Source: <url>
DO NOT rules:
- DO NOT invent documentation URLs. Get them from the search API, the sitemap, or a link the developer gave you then verify by fetching.
- DO NOT paraphrase a page you have not actually fetched. If a fetch fails, say so rather than filling the gap from memory.
- DO NOT assume every URL has a
version. If a fetch returns an error, fall back to the search API or the sitemap (Step 1) rather than guessing another URL..md
Fast Path (the developer already has a URL)
If the developer pasted a link, skip discovery and go straight to Step 2 to fetch and read it.
https://docs.slack.dev/...Step 1: Discover the Page (search)
Use the docs search API to find candidate pages. WebFetch this URL, with the query URL-encoded and a to scope the results:
categorytext
https://docs.slack.dev/api/v1/search?query=<url-encoded query>&category=<category>&limit=5Always start with a . An uncategorized search is dominated by SDK reference pages (a query like or can return a top 10 that is entirely Bolt/Node pages), which buries the conceptual and reference content most questions are actually about. Pick the starting category from the developer's intent:
categorysocket modeoauth- — the default for "how do I…", "what is…", and conceptual platform questions (Events API, OAuth, Socket Mode, manifests, modals, App Home). Start here when in doubt.
guides - — for a specific method, event, scope, object, or Block Kit element, especially an exact name like
reference.chat.postMessage - A tool/SDK category (,
python,javascript,java,slack_cli,slack_github_action) — only once you know the developer's tool. See Step 3.deno_slack_sdk
So as a concept → .
socket modehttps://docs.slack.dev/api/v1/search?query=socket%20mode&category=guides&limit=5The response is JSON:
json
{
"total_results": 12,
"results": [
{ "url": "/apis/events-api/using-socket-mode", "title": "Using Socket Mode" }
],
"limit": 5
}Scan for the best / match, then read it in Step 2. A query is required; calling the endpoint with no returns a with an field.
resultstitleurlquery400errorFull set of categories:
| Category | Scopes results to |
|---|---|
| Conceptual and how-to guides |
| API reference: methods, events, scopes, objects, Block Kit |
| Changelog and release notes |
| Python tools (Bolt for Python, Python Slack SDK) |
| JavaScript tools (Bolt for JS, Node Slack SDK) |
| Java tools (Bolt for Java, Java Slack SDK) |
| Slack CLI docs |
| Slack Send GitHub Action docs |
| Deno Slack SDK docs |
If a categorized search returns no good hit, widen it: try the other likely category ( ⇄ ), then drop entirely as a last resort. An unrecognized value returns a with an field listing the valid categories, so re-run with one of those or with no category.
guidesreferencecategory400errorFallbacks when search does not surface a good hit, or returns a /temporary error (the endpoint is rate-limited and cached ~5 minutes):
500- WebFetch , a flat list of every documentation page's
https://docs.slack.dev/llms-sitemap.mdURL, and scan it for the relevant path..md - For API reference lookups, the enriched index pages are often faster: ,
https://docs.slack.dev/reference/methods.md,.../events.md,.../scopes.md, and.../objects.mdeach list every item with a one-line description and a.../block-kit.mdlink..md - If the developer has the Slack CLI, does the same discovery from the terminal (see the
slack docs search "<query>"skill).slack:slack-cli
Step 2: Read the Page (fetch markdown)
Given a page reference (a from Step 1, or a link the developer pasted), read its markdown:
url- Normalize the reference to its URL:
.md- A site-relative path from Step 1 (e.g. ): prepend
/apis/events-api/using-socket-mode.https://docs.slack.dev - A full URL the developer pasted: drop any first.
#anchor - Append , e.g.
.md→…/using-socket-mode. The server lowercaseshttps://docs.slack.dev/apis/events-api/using-socket-mode.mdrequests, so casing does not matter:.mdandchat.postMessage.mdboth resolve.chat.postmessage.md
- A site-relative path from Step 1 (e.g.
- WebFetch it. The page opens with ; the rest is the page body in markdown.
Source: <original-url> - Answer the developer from the fetched content, and cite the URL.
Source
If a page is long and the developer asked something narrow, fetch it and quote only the relevant section rather than dumping the whole page.
Step 3: Tool and SDK Documentation
Implementation details differ significantly between the official tools, so establish which one the developer is using first, then scope your reading to that tool's doc subtree. Each lives under and its pages are fetchable as like any other (e.g. ). If the developer has not said, ask before assuming.
https://docs.slack.dev/tools/<name>.mdhttps://docs.slack.dev/tools/bolt-js/concepts.md| Tool | Docs path | Search | Use when the developer… |
|---|---|---|---|
| Slack CLI | | | scaffolds, runs, or manages an app from the terminal; mentions |
| Bolt for JavaScript | | | builds an app in Node/TypeScript with the Bolt framework |
| Bolt for Python | | | builds an app in Python with the Bolt framework |
| Bolt for Java | | | builds an app in Java with Bolt (Bolt for Java lives in the Java SDK docs) |
| Node Slack SDK | | | wants lower-level Node clients ( |
| Python Slack SDK | | | wants the lower-level Python client without Bolt |
| Java Slack SDK | | | wants Java clients, or is using Bolt for Java |
| Slack Send GitHub Action | | | sends data to Slack from a GitHub Actions workflow |
Once you know the tool, narrow discovery with the matching from Step 1, e.g. . Note the languages group: both Bolt for JavaScript and the Node Slack SDK fall under (likewise and each cover their Bolt framework plus lower-level SDK), so the category scopes to the language family, not a single subtree.
category…?query=middleware&category=javascriptjavascriptpythonjavaBolt is the framework built upon the matching language SDK. When unsure which subtree a topic lives in, fall back to the search API (Step 1) as it indexes all of these.