slack-feature

Implements new Slack commands and event handlers in a TypeScript Slack bot project.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/nico0695/ai-tools --skill slack-feature-nico0695
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: slack-feature
Source: https://github.com/nico0695/ai-tools/tree/main/projects/slack-bot/skills/slack-feature
Command: npx skills add https://github.com/nico0695/ai-tools --skill slack-feature-nico0695

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Adding a new command or event handler to a Slack bot requires touching multiple files—controller methods, regex configuration, and listener registration—and missing any one of them silently breaks the feature. This Skill codifies the exact three-step wiring pattern so new Slack commands work correctly on the first attempt. ## Core Features & Use Cases - Controller Handler Pattern: Guides creation of handler methods with the @SlackAuth decorator, constructor binding, error handling, and structured logging. - Regex & Listener Wiring: Covers registering command patterns in slackConfig.ts and wiring message or action listeners in app.ts. - Argument Parsing & Block Kit UI: Provides conventions for parsing command flags and building rich Slack responses with overflow menus and buttons. - Use Case: When you need to add a ".remind" command to the slack-bot project, follow this Skill to add the authenticated controller method, register the regex pattern, and wire the listener without missing a step. ## Quick Start Add a new Slack command called ".remind" to the slack-bot project following the three-step wiring pattern.

Frequently Asked Questions about slack-feature

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new Slack command to a Bolt TypeScript bot?▼

Add a handler method with the @SlackAuth decorator on the controller, register a regex pattern in slackConfig.ts under slackListenersKey, and wire the listener in app.ts using app.message with the pattern and controller method.

How to handle button clicks and overflow menu actions in Slack Bolt?▼

Register an action listener with app.action using a regex matching the action_id prefix, call ack() first to acknowledge the interaction, then delegate to a controller handler passing the payload and say function.

Why is my Slack command not triggering the handler?▼

The most common cause is a missing step in the three-point wiring: the regex pattern may be absent from slackConfig.ts, or the listener was never registered in app.ts. Also verify the regex actually matches your command text.

How do I parse command arguments and flags in Slack messages?▼

Strip the command prefix with a regex replace, then split the text on spaces. Use indexOf to locate flags like -t or -tt and read the following argument, or use includes for boolean flags like -l or -list.

What does the @SlackAuth decorator do in a Slack bot controller?▼

The @SlackAuth decorator resolves the Slack user making the request and sets this.userData on the controller before the handler runs. Handlers should always use it when user identity is needed and must be bound in the constructor.