Skip to content

feat: add slackbot.skillSets methods - #2084

Merged
mwbrooks merged 2 commits into
mainfrom
feat-slackbot-skill-sets-methods
Nov 30, 2026
Merged

mwbrooks merged 2 commits into
mainfrom
feat-slackbot-skill-sets-methods

Conversation

@samkantor123

Copy link
Copy Markdown
Contributor

Summary

This pull request adds the nine Slackbot skill sets methods to the Web API clients:

skill_ids accepts a string or a list of up to 20 IDs. A list is sent comma-separated, the same way as skill_ids in admin.slackbot.skills.publish. The async and legacy clients are regenerated with scripts/codegen.py, and the methods are added to the Web API coverage test.

These follow the slackbot.skills.* methods from #2017 through #2027. The docs pages are publishing soon, so the links above may not resolve yet.

Testing

  • ./scripts/run_validation.sh on Python 3.15: ruff format and lint pass, mypy finds no issues in 107 source files, and the tests pass with 1090 passed and 5 skipped.
  • Each of the nine methods was called against the live API with both WebClient and AsyncWebClient and a user token. All 18 calls reached their endpoint, authenticated, and parsed an API error response. An existing method, slackbot_skills_list, returned ok with the same token and client. Sending an empty skill_ids list returns invalid_arguments, and a comma-separated list passes argument validation.

To try it with a token that has the skills:write scope:

  1. Call client.slackbot_skillSets_create(display_name="Launch kit") and note skill_set.id.
  2. Call client.slackbot_skillSets_items_add(skill_set_id=..., skill_ids=[...]), then client.slackbot_skillSets_info(skill_set_id=...), and confirm items lists the skills.
  3. Call client.slackbot_skillSets_delete(skill_set_id=...).
  4. Repeat with AsyncWebClient to check the generated async methods.

Category

  • slack_sdk.web.WebClient (sync/async) (Web API client)
  • slack_sdk.webhook.WebhookClient (sync/async) (Incoming Webhook, response_url sender)
  • slack_sdk.socket_mode (Socket Mode client)
  • slack_sdk.signature (Request Signature Verifier)
  • slack_sdk.oauth (OAuth Flow Utilities)
  • slack_sdk.models (UI component builders)
  • slack_sdk.scim (SCIM API client)
  • slack_sdk.audit_logs (Audit Logs API client)
  • slack_sdk.rtm_v2 (RTM client)
  • /docs (Documents)
  • /tutorial (PythOnBoardingBot tutorial)
  • tests/integration_tests (Automated tests for this library)

Requirements

  • I've read and understood the Contributing Guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've run python3 -m venv .venv && source .venv/bin/activate && ./scripts/run_validation.sh after making the changes.

🤖 Generated with Claude Code

Add the nine slackbot.skillSets.* Web API methods to the clients:
create, update, delete, info, list, items.add, items.remove,
library.add, and library.remove. skill_ids lists are sent
comma-separated. The async and legacy clients are regenerated with
scripts/codegen.py, and the methods are added to the Web API coverage
test.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.93939% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.97%. Comparing base (01a4d2b) to head (caf98b4).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
slack_sdk/web/async_client.py 93.93% 2 Missing ⚠️
slack_sdk/web/client.py 93.93% 2 Missing ⚠️
slack_sdk/web/legacy_client.py 93.93% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2084      +/-   ##
==========================================
+ Coverage   84.91%   84.97%   +0.06%     
==========================================
  Files         118      118              
  Lines       14133    14232      +99     
==========================================
+ Hits        12001    12094      +93     
- Misses       2132     2138       +6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@samkantor123
samkantor123 marked this pull request as ready for review November 25, 2026 18:47
@samkantor123
samkantor123 requested a review from a team as a code owner November 25, 2026 18:47
@zimeg zimeg added enhancement M-T: A feature request for new functionality semver:minor labels Nov 30, 2026
@zimeg zimeg added this to the 3.48.1 milestone Nov 30, 2026

@mwbrooks mwbrooks left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Thanks @samkantor123! All nine skill sets methods line up with the slackbot.skills family, and skill_ids joins the same way as admin.slackbot.skills.publish, so these slot right in.

@mwbrooks

Copy link
Copy Markdown
Member

Thanks @samkantor123 for adding all nine skill sets methods and checking each one live! 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement M-T: A feature request for new functionality semver:minor web-client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants