slack-directory

slack-directory is a skill for Claude Code, Codex from pbc-os/smb-starter-kit. It costs 23 tokens per session (1,662 once invoked), scanned A, original, MIT.

A Slack user lookup tool that finds people by partial or approximate name and remembers the matching Slack ID for later.

In plain words
What is it for?
Finding the right person to message, mention, add to a channel, or include in a people directory.
Why use it?
Slack actions require user IDs, while people usually refer to coworkers by name. It avoids repeated manual searching and helps handle multiple possible matches.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Finding the right person to message, mention, add to a channel, or include in a people directory.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pbc-os/smb-starter-kit/slack-directory
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pbc-os/smb-starter-kit --skill slack-directory
Clone the repo
git clone --depth 1 https://github.com/pbc-os/smb-starter-kit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for slack-directory

README.md
[![agentmods](https://agentmods.dev/badge/skills/pbc-os/smb-starter-kit/slack-directory/github.svg)](https://agentmods.dev/skills/pbc-os/smb-starter-kit/slack-directory)
Your own site
<a href="https://agentmods.dev/skills/pbc-os/smb-starter-kit/slack-directory"><img src="https://agentmods.dev/badge/skills/pbc-os/smb-starter-kit/slack-directory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for slack-directory

Your own site · 80×15
<a href="https://agentmods.dev/skills/pbc-os/smb-starter-kit/slack-directory"><img src="https://agentmods.dev/badge/skills/pbc-os/smb-starter-kit/slack-directory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,662 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.01662
Opus 5.5 $0.00009 $0.00665
Sonnet 5.5 $0.00005 $0.00332
Haiku 4.5 $0.00002 $0.00166

Measured 2mo ago against content hash c7d52259d036, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

slack-directory scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (lookup.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

bins: ["curl", "jq"]
skills/tier-2-communication/slack-directory/SKILL.md · 227 lines

How it starts

The opening of the file, as written. The whole thing — 227 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Slack Directory Lookup

Why This Skill Exists

The Problem:
When someone says "DM Sarah about the budget" or "add Mike to the channel," you need a Slack user ID — not a name. Slack's API requires IDs for all user operations, but humans think in names.

The Solution:
This skill lets you search Slack users by partial name (first, last, display name, or username), handles multiple matches gracefully, and builds a local cache so you never look up the same person twice.

Real-world example:

"Hey, message the new hire about onboarding"
→ "What's their name?"
→ "Jamie something... started last week"
→ Run lookup for "Jamie" → Find Jamie Chen (U09ABC123)
→ Cache the mapping → Send the message


When to Use This Skill

Situation Use This Skill
Need to DM someone by name ✅ Yes
Need to @mention someone ✅ Yes
Adding users to channels ✅ Yes
Building a people directory ✅ Yes
You already have the Slack ID ❌ No (just use it)

How It Works

Step 1: Check Your Cache First

Before calling the API, check if you already have the mapping cached (in TOOLS.md, a JSON file, or wherever you store local state):

### People Directory
| Name | Slack ID | Notes |
|------|----------|-------|
| Sarah Chen | U09ABC123 | Engineering |
| Mike Brown | U07XYZ789 | Sales lead |

Why cache? Slack API calls cost time and rate limits. Most workspaces have the same 20-50 people you interact with regularly. Cache them once, use forever.

Step 2: Fuzzy Search via API

If not cached, run the lookup:

./lookup.sh "jamie"

The script searches across:

  • real_name (e.g., "Jamie Chen")
  • display_name (e.g., "Jamie C")
  • username (e.g., "jamie.chen")

Case-insensitive, partial match.

Step 3: Handle Results

Single match → Use it and cache it:

✅ Single match found:
| Jamie Chen | U09ABC123 | [email protected] |

Multiple matches → Clarify with the user:

⚠️ Multiple matches for 'jamie' (2 found):
1. Jamie Chen (U09ABC123) - [email protected]
2. Jamie Rodriguez (U08DEF456) - [email protected]

Which one did you mean?

Read the full file on GitHub · 227 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 227 lines · 23 tokens per session scan A c7d52259d036

Subscribe to this mod's changes

slack-directory is a skill published in the GitHub repository pbc-os/smb-starter-kit (10 stars, last pushed 5mo ago), licensed MIT. It adds 23 tokens to every session and 1,662 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

slack-directory compared with skills from other repositories

slack-directory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
slack-directorypbc-os/smb-starter-kitSkill105mo agoMITA23Claude Code, Codex
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code