slack-development
Skill365 starsChanged 8 months agoApache-2.0View on GitHub
Implement Slack bot behavior with correct Slack-documented message formats, inbound mention/event routing, and long-running task UX. Use when asked to "format Slack messages", "fix Slack markdown", "debug thread mentions", "improve Slack bot UX", "add streaming in Slack", or "build Slack Chat SDK behavior". Covers mrkdwn quirks, Events API payload patterns, routing guardrails, and Chat SDK implementation patterns.
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- packages/docs/public/llms.txtllms.txt
- nitroSkill
- pi-agent-integrationSkill
- public-docsSkill
- vercel-queuesSkill
- vercel-sandboxSkill
- example-bundle-helpSkill
- example-localSkill
- agent-browserSkill
- demo-videoSkill
- visual-web-qaSkill
- amplitudeSkill
- cloudflareSkill
- datadogSkill
- coding-workspace-fixtureSkill
- github-headless-pr-fixtureSkill
- eval-guardian-actionsSkill
- eval-authSkill
- eval-directorySkill
- eval-mcpSkill
- eval-oauthSkill
- eval-operationSkill
- incident-briefSkill
- resilient-working-directorySkill
- source-handbookSkill
- weather-lookupSkill
- github-codeSkill
- github-issuesSkill
- hexSkill
- linearSkill
- self-updateSkill
- notionSkill
- octolensSkill
- sentrySkill
- jr-rpcSkill
- eval-authSkill
- eval-mcp-openSkill
- ttsSkill
- vercelSkill
- junior-qaSkill
- juniorSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
If the request is ambiguous, ask one focused question and continue after clarification.
- Very specific: line 26
Use the selected reference files as the implementation guide.
- Very specific: line 30
Use Slack's current inbound event payload as the source of truth for assistant-thread API calls.
- Distinctive: line 31
Do not invent assistant-thread identifiers from persisted state unless Slack's docs explicitly require it.
- Very specific: line 33
Treat assistant_thread_started and assistant_thread_context_changed differently.
- Very specific: line 37
If debugging a live repro through the example app, verify whether the app is executing packages/junior/dist/* output before trusting source …
- Distinctive: line 41
When modifying this repository:
- Distinctive: line 43
Keep tool behavior aligned with AI Gateway primitives already in use.
- Distinctive: line 44
Avoid reintroducing deprecated custom search integrations when Gateway-native tools exist.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Implement Slack-facing behavior with predictable formatting, inbound routing, and responsive long-running UX.
Step 1: Classify the requested change
Determine which category applies before writing code:
| Category | Typical request | Primary reference |
| Output formatting | "Fix markdown", "why does Slack render this weirdly?" | ${CLAUDE_SKILL_ROOT}/references/slack-output-formatting.md |
| Slack event payloads | "What does Slack send?", "why did raw event parsing fail?" | ${CLAUDE_SKILL_ROOT}/references/slack-inbound-message-formats.md |
| Chat SDK payload contract | "What fields do handlers actually receive?", "which fields are reliable in onSubscribedMessage?" | ${CLAUDE_SKILL_ROOT}/references/chat-sdk-payload-contract.md |
| Thread routing | "Passive detector skips thread replies", "reply/no-reply logic is wrong" | ${CLAUDE_SKILL_ROOT}/references/slack-thread-routing.md |
| Assistant-thread APIs | "Why does assistant.threads.setStatus fail?", "should this DM have assistant status/title?", "does Chat tab DM count as an assistant thread?" | Read Slack docs for assistant_thread_started, assistant_thread_context_changed, message.im, and assistant.threads.* first, then load ${CLAUDE_SKILL_ROOT}/references/assistant-thread-apis.md and ${CLAUDE_SKILL_ROOT}/references/chat-sdk-payload-contract.md |
| Long-running behavior | "No feedback while it runs", "show progress", "stream output" | ${CLAUDE_SKILL_ROOT}/references/chat-sdk-patterns.md |
| Multiple categories | Change touches formatting, routing, and/or runtime UX | Read only the needed references above |
If the request is ambiguous, ask one focused question and continue after clarification.
Step 2: Load only relevant references and implement
Use the selected reference files as the implementation guide. Keep SKILL.md high-level and put details in references.
Slack assistant-thread guardrails:
- Use Slack's current inbound event payload as the source of truth for assistant-thread API calls. For non-DM message events, use the live
channelplusthread_ts ?? ts. Formessage.im, require the livechanneland explicitthread_ts. For lifecycle events, useassistant_thread.channel_idandassistant_thread.thread_ts. - Do not invent assistant-thread identifiers from persisted state unless Slack's docs explicitly require it.
- Separate reply continuity from assistant-thread API eligibility. A stored root timestamp can be valid for reply threading without being valid for
assistant.threads.*. - Treat
assistant_thread_startedandassistant_thread_context_changeddifferently. Context changes can refresh prompts/context, but should not clobber a conversation-specific thread title back to a generic default. - Conversation-specific thread titles should come from the earliest human message the runtime actually knows about for that thread, using the lightweight title model. Do not base titles on assistant reply text or a later follow-up.
- Title generation may run in parallel with the main assistant turn, but it must not delay assistant reply generation or visible reply delivery.
- Assistant status is best effort. Do not make Slack status writes part of the critical path for tool/model execution.
- If debugging a live repro through the example app, verify whether the app is executing
packages/junior/dist/*output before trusting source edits against runtime behavior.
Step 3: Enforce project conventions
When modifying this repository:
- Keep tool behavior aligned with AI Gateway primitives already in use.
- Avoid reintroducing deprecated custom search integrations when Gateway-native tools exist.
- Preserve webhook
waitUntilbehavior so long-running handlers finish after HTTP response.
Step 4: Validate before finalizing
Use this checklist:
- Rendering: message examples render correctly in Slack (
mrkdwnexpectations, escapes, mentions/links). - Inbound formats: routing uses documented Chat SDK payload fields first; raw Slack parsing only when necessary.
- Thread routing: explicit bot mention paths bypass passive no-reply classification.
- Assistant threads:
assistant.threads.*calls use the live inbound assistant-thread context; non-DM message events may usethread_ts ?? ts,message.immust carry explicitthread_ts, and runtime code does not synthesize DM assistant roots for status/title updates. - Accessibility: block messages include an adequate top-level fallback
textstrategy. - Latency UX: user sees immediate feedback for long-running tasks.
- Streaming/progress: behavior is observable during tool/model execution, not only at completion.
- Failure mode: errors return actionable responses rather than silent stalls.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

