Repository navigation
Conversation
…xamples Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
This was referenced Nov 12, 2026
Member
Author
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
This pull request adds Web API method examples for the Slackbot skills methods, as a proof of concept:
methods/src/slackbot/skills/hasslackbot.skills.create,delete,info,list, andupdate.methods/src/slackbot/skills/library/hasslackbot.skills.library.addandslackbot.skills.library.remove.methods/src/admin/slackbot/skills/hasadmin.slackbot.skills.list,publish,setAutoEnabled, andunpublish.agents/conversations/, with one directory per method family, its own.slack/config andmanifest.json. The skills manifests declareskills:readandskills:writebot scopes. The admin manifest declares theadmin.skills:readandadmin.skills:writeuser scopes, since the admin methods need a user token from an org-level install.methodsREADME lists both families.The reference pages don't have an example request, so each example passes every argument the page documents. Values are the page's defaults or come from its example responses.
slackbot.skills.createpassesinstructionsand notcanvas_id, since only one of the two can be sent.Dependency
These methods are added to
@slack/web-apiin slackapi/node-slack-sdk#2830, which isn't released yet. This PR stays a draft until that version ships andmethods/package.jsonis bumped to it. Until then thenpm run checkCI step fails withProperty 'slackbot' does not exist. That's expected.Testing
This was run against an Enterprise developer sandbox with the slackapi/node-slack-sdk#2830 build installed (
npm install --no-save) and an org-installed user token:npm run checkpasses for all 11 examples. Against the published 8.3.0 it fails for each one.skill_not_found,mcp_server_not_found, andinvalid_cursor.ok:create,info,update,library.remove,library.add,list,admin.slackbot.skills.list,publish,unpublish, anddelete.createandupdateran withoutmcp_servers, and both list methods ran withoutcursor.setAutoEnabledreturnedusergroup_not_found, because no real user group was available forusergroup_ids.lack manifest validatepasses for all three manifests.To repeat it:
cd methods/src/slackbot/skills, install the app withslack install --environment local, and export a token with theskills:readandskills:writescopes asSLACK_TOKEN.slack run slackbot-skills-create.js(dropmcp_serversunless you have an MCP-enabled app). Copy theskill.idinto the other examples in place ofF0123ABCDand run them, finishing withslackbot-skills-delete.js.methods/src/admin/slackbot/skillswith an org-installed user token that hasadmin.skills:readandadmin.skills:write.🤖 Generated with Claude Code