From 80d67aea4a17063c3071d0d70d4d692743f9e43f Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Mon, 30 Nov 2026 16:10:59 -0800 Subject: [PATCH] feat(methods): add slackbot.skillSets.list method example Co-Authored-By: Claude --- methods/README.md | 1 + .../skillSets/slackbot_skill_sets_list.py | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 methods/src/slackbot/skillSets/slackbot_skill_sets_list.py diff --git a/methods/README.md b/methods/README.md index 75787fe..a65441f 100644 --- a/methods/README.md +++ b/methods/README.md @@ -76,6 +76,7 @@ $ slack run chat_post_message.py # Make the request - **[slackbot.skillSets.items.remove](https://docs.slack.dev/reference/methods/slackbot.skillSets.items.remove)**: Removes skills from a Slackbot skill set. [Implementation](./src/slackbot/skillSets/items/slackbot_skill_sets_items_remove.py). - **[slackbot.skillSets.library.add](https://docs.slack.dev/reference/methods/slackbot.skillSets.library.add)**: Adds a Slackbot skill set to the caller's library. [Implementation](./src/slackbot/skillSets/library/slackbot_skill_sets_library_add.py). - **[slackbot.skillSets.library.remove](https://docs.slack.dev/reference/methods/slackbot.skillSets.library.remove)**: Removes a Slackbot skill set from the caller's library. [Implementation](./src/slackbot/skillSets/library/slackbot_skill_sets_library_remove.py). +- **[slackbot.skillSets.list](https://docs.slack.dev/reference/methods/slackbot.skillSets.list)**: Lists Slackbot skill sets from the caller's point of view. The skills in each set are not included. [Implementation](./src/slackbot/skillSets/slackbot_skill_sets_list.py). - **[slackbot.skills.create](https://docs.slack.dev/reference/methods/slackbot.skills.create)**: Creates a skill from markdown instructions, or turns an existing canvas the caller owns into a skill. [Implementation](./src/slackbot/skills/slackbot_skills_create.py). - **[slackbot.skills.delete](https://docs.slack.dev/reference/methods/slackbot.skills.delete)**: Deletes a Slackbot skill and its canvas, and removes it from every library, skill set, and the org catalog. [Implementation](./src/slackbot/skills/slackbot_skills_delete.py). - **[slackbot.skills.info](https://docs.slack.dev/reference/methods/slackbot.skills.info)**: Returns one Slackbot skill, including its instructions. [Implementation](./src/slackbot/skills/slackbot_skills_info.py). diff --git a/methods/src/slackbot/skillSets/slackbot_skill_sets_list.py b/methods/src/slackbot/skillSets/slackbot_skill_sets_list.py new file mode 100644 index 0000000..2cc55a2 --- /dev/null +++ b/methods/src/slackbot/skillSets/slackbot_skill_sets_list.py @@ -0,0 +1,17 @@ +import os + +from slack_sdk import WebClient + +# Read a token from an environment variable +token = os.environ.get("SLACK_TOKEN") + +# Initialize +client = WebClient(token=token) + +# Call the slackbot.skillSets.list method +response = client.slackbot_skillSets_list( + filter="owned", +) + +# Inspect the response +print(response)