Repository navigation
feat(web-api): add slackbot.skills.create method - #2831
Conversation
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
🦋 Changeset detectedLatest commit: f081dce The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2831 +/- ##
==========================================
- Coverage 94.33% 94.33% -0.01%
==========================================
Files 67 67
Lines 10663 10675 +12
Branches 683 683
==========================================
+ Hits 10059 10070 +11
Misses 575 575
- Partials 29 30 +1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
…rded java-slack-sdk sample Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
zimeg
left a comment
There was a problem hiding this comment.
seeming solid we want to merge java (before landing this . please update tests however
…s.create arguments Leaves the exactly-one-of check to the API, which returns invalid_arguments, and the JSDoc. Also line-breaks the mcp_servers object type. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
|
📝 Merged with admin rights and no approving review, to unblock the stack for this week's release. Here's what that rests on:
A follow-up review is still welcome here, and any fix can land as a new pull request. |
Summary
This pull request adds the
slackbot.skills.createmethod to@slack/web-api.client.slackbot.skills.create()takes a requireddisplay_name. The optional arguments areinstructions,canvas_id,description,category,example_prompt, andmcp_servers. The API takes exactly one ofinstructionsorcanvas_idand returnsinvalid_argumentsotherwise, as their JSDoc notes.mcp_serversitems are{ service_type, app_id?, server_id? }objects. The reference only saysarray, so this shape comes from the live API, which rejects strings and unknown keys. An app's MCP server needsservice_type: 'app',app_id, andserver_id.SlackbotSkillsCreateResponseincludes the createdskill, andinvalid_mcp_serversformcp_server_not_found.SlackbotSkillsCreateResponseis generated withscripts/code_generator.rbfrom thejson-logs/samples/api/slackbot.skills.create.jsonsample recorded live in feat: add slackbot.skills.create method java-slack-sdk#1685.This is part 1 of 11 in a stack that adds the Slackbot skills methods one at a time, following a skill from creation to deletion. Each pull request builds on the one before it and merges on its own, bottom to top. It replaces #2830.
slackbot.skills.create👈 this pull requestslackbot.skills.infoslackbot.skills.updateslackbot.skills.listslackbot.skills.library.addslackbot.skills.library.removeadmin.slackbot.skills.listadmin.slackbot.skills.publishadmin.slackbot.skills.setAutoEnabledadmin.slackbot.skills.unpublishslackbot.skills.deleteTesting
client.slackbot.skills.create({ display_name: 'Daily priorities', instructions: '# Purpose' })with askills:writetoken and confirmskill.idcomes back.canvas_idof a canvas you own, and withoutinstructions, and confirm the canvas becomes the skill.Each layer of this stack was checked against an Enterprise developer sandbox by running every method added so far, in order, with that layer's
WebClient.Requirements
🤖 Generated with Claude Code