/kargnas-skills:slack-api-readonlyfrom kargnas-skills
Scrapes Slack conversations via the Web API into markdown for LLM consumption. Fetches by channel, thread permalink, or search query without copy-paste. Supports real names, emoji, reactions, timezone config, and optional attachment downloads.
Ships in kargnas-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Pulls Slack messages straight from the Web API and prints one markdown document to stdout. No copy-paste, no LLM context spent on the raw conversation.
Needs a Slack user token (xoxp-*) in the environment — a bot token cannot
search or read DMs. Export it as AGENT_SLACK_USER_TOKEN from ~/.zshenv.
Read scopes it uses: channels:history groups:history im:history
mpim:history channels:read users:read users.profile:read search:read
reactions:read files:read emoji:read.
EXECUTE the script (do not reimplement it):
# a channel by name or ID, newest 200 msgs, threads expanded, KST
scripts/scrape_slack.py --channel eng-team > out.md
# drop a translation bot (repeatable; matches sender name substring)
scripts/scrape_slack.py --channel eng-team --exclude "Translator" > out.md
# one thread from a message permalink
scripts/scrape_slack.py --thread 'https://xxx.slack.com/archives/C0AB/p1700000000123456'
# a search query (user token only)
scripts/scrape_slack.py --search 'rollback in:#eng-team' > out.md
# narrow a channel by date + render in another timezone
scripts/scrape_slack.py --channel C0AB --since 2026-07-01 --until 2026-07-22 --tz America/New_York
# download attachments too: ./files/ next to out.md, images embed as 
scripts/scrape_slack.py --channel eng-team --files > out.md
# or name the basedir yourself (keep it relative to out.md's location)
scripts/scrape_slack.py --channel eng-team --files attachments > out.md
Sources are mutually exclusive — pick exactly one of --channel / --thread
/ --search.
--tz IANA — timezone for timestamps (default Asia/Seoul); recorded in frontmatter--limit N — max messages (default 200)--since / --until YYYY-MM-DD — channel-mode date window--no-threads — channel mode: don't expand thread replies--title — frontmatter title/source label--exclude NAME — drop senders containing NAME (repeatable; e.g. translation bots)--files [DIR] — download attachments into DIR (default files, relative to
where the md lives — run from that dir). Images embed as ,
other files link; the basedir is recorded as files_dir in the frontmatter,
so md + DIR move together as a portable bundle. Without the flag, only
[file: name] markers (nothing is written anywhere)Frontmatter identifies the conversation — channel + channel_type
(channel / private-channel / dm / group-dm; DM shows the counterpart's
name, group DM lists members) or search for search mode — plus captured,
tz, participants. No H1; messages follow, grouped by ## YYYY-MM-DD day
headers:
Real Name [14:11] first body line
continuation lines flush left
↳ Reply Name [14:12] thread replies indented, packed tight
↳ Other Name [14:18] consecutive same-sender messages (≤3 min apart)
fold into one block as continuation lines
Mentions render as <@Real Name> / <@subteam-handle>, channels as #name,
links unwrapped to bare URL or label. Standard reaction emoji become unicode
(👍×3); custom workspace emoji keep their slug (:acme:×1). File
attachments append per message.
Senders whose Slack profile timezone (users.info — never guessed) differs
from the document tz get a dual stamp on their first message and then at most
once per hour: Casey Morgan [11:59 KST / 21:59 CDT] …. Same-offset zones
(Seoul vs Tokyo) are not annotated. Every abbreviation used in the body is
defined in a frontmatter timezones: map (CDT: "America/Chicago") so
ambiguous codes can't be misread; the key is omitted when no annotation occurs.
Use the bundled read-only filter for Slack desktop copy-paste. It reads a file or stdin and writes only stdout.
pbpaste | scripts/clean_slack.py
scripts/clean_slack.py paste.txt > out.txt
pbpaste | scripts/clean_slack.py --exclude "Translator" --strip ':robot_face:.*'
The parser accepts Korean and English timestamps, removes edit markers, thread-count lines, and blank runs, and preserves multiline message bodies.
scripts/scrape_slack.py --selftest # prints "selftest ok" — no network
scripts/clean_slack.py --selftest # prints "selftest ok" — no network
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
13 skills in this plugin
/ai-readyUse only when the user asks to make the repo AI-ready or AI-optimized (AGENTS.md migration, debugging/testing setup, docs). Do not run on your own./git-loreCaptures, queries, and configures decision context in native Git trailers. Use for non-trivial commit messages, decisions, rejected alternatives, follow-ups, Lore history queries, pull request decision summaries, or Lore rules in agent instructions./humanizer-kill-gptRuns a cross-language cleanup for writing tells shared by large frontier LLMs, not only GPT: English source constructs that survive other language translation and language-surface translationese. Use only when the user asks to remove AI/GPT tells from text (de-GPT, GPT 티, AI 티, 번역체 GPT, 자폐 말투 — colloquial shorthand for rigid or over-complete model prose, not a claim about autism)./minimal-frontendA default fallback design system for app UI and standalone HTML report pages, covering theme tokens, type and density scale, status colors, container-first responsive rules, anti-slop, and accessibility./minimal-patch-with-subagentsMinimal patching workflow that debates fix options across parallel independent subagents and applies the smallest safe diff. Use only when you want risk-free code, and to code real minimal that only needs to fix the issue./oss-finderFinds battle-tested open-source repos, libraries, frameworks, CLI tools, or code on GitHub, ranked by README polish-days instead of stars. Also the shared GitHub code-search backend toolkit — rotating PAT pool, grep.app, Blackbird web index, BigQuery/GHArchive, and the code-search fallback chain. Use for 'find a library/framework/tool for X', 'battle-tested repo', GitHub-wide code search, or when `gh search code` rate-limits. Finding installable SKILL.md agent-skill packages goes to the skill-finder skill (it delegates its GitHub sweep here).npx claudepluginhub kargnas/skills --plugin kargnas-skills