Skip to content

feat: add slackbot.skillSets methods - #1727

Open
samkantor123 wants to merge 1 commit into
slackapi:mainfrom
samkantor123:feat-slackbot-skill-sets-methods
Open

samkantor123 wants to merge 1 commit into
slackapi:mainfrom
samkantor123: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 sync and async clients. Docs pages for these methods are publishing soon.

A new com.slack.api.model.slackbot.SkillSet model holds the skill set fields. create and delete are Tier 2, and the others are Tier 3. These follow the slackbot.skills methods added in #1685 through #1695, as a single pull request.

Testing

  • ./scripts/run_no_prep_tests.sh on JDK 17: BUILD SUCCESS, 1,687 tests, 0 failures, 0 errors, and a clean working tree afterward. That includes 528 in slack-api-client and the MethodsTest coverage check.
  • test_locally.api.methods.SlackbotTest calls each new method, sync and async, against the mock server and parses sample responses, including failed_skills and a null skill in info items.
  • test_locally.api.methods.RequestFormBuilderTest checks that skill_ids is comma-joined and that an empty description is sent.
  • I called all nine methods (sync, plus async list and items.add) against a live workspace with a user token. Each request reached its endpoint, authenticated, passed argument validation, and parsed. A request missing skill_set_id returned invalid_arguments as expected. Skill sets aren't available on that workspace yet, so I couldn't test the success responses there.
  • Run the new remote test, test_with_remote_apis.methods.slackbot_skill_sets_Test, with SLACK_SDK_TEST_BOT_TOKEN (skills:read, skills:write). It creates a skill and a skill set, runs every method, and deletes both at the end.

Category

  • bolt (Bolt for Java)
  • bolt-{sub modules} (Bolt for Java - optional modules)
  • slack-api-client (Slack API Clients)
  • slack-api-model (Slack API Data Models)
  • slack-api-*-kotlin-extension (Kotlin Extensions for Slack API Clients)
  • slack-app-backend (The primitive layer of Bolt for Java)

Requirements

🤖 Generated with Claude Code

Add the slackbot.skillSets.create, update, delete, info, list,
items.add, items.remove, library.add, and library.remove methods to the
sync and async clients, with a SkillSet model, rate limit tiers, and
sample responses.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@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
@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.53086% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.19%. Comparing base (0d5f722) to head (33358e5).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...java/com/slack/api/methods/RequestFormBuilder.java 94.44% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1727      +/-   ##
============================================
+ Coverage     74.06%   74.19%   +0.13%     
- Complexity     4828     4872      +44     
============================================
  Files           490      490              
  Lines         15033    15114      +81     
  Branches       1584     1586       +2     
============================================
+ Hits          11134    11214      +80     
+ Misses         2972     2969       -3     
- Partials        927      931       +4     
Flag Coverage Δ
jdk-14 74.19% <97.53%> (+0.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant