/asb-core:slack-trackerfrom ASB Core
Maps Slack channels to clients and runs a stateful Mention Ledger sweep to ensure no mentions, thread replies, or DMs go unanswered.
Ships in ASB Core. 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.
None: SKILL.md is the whole skill.
This skill manages the mapping of Slack channels to specific clients and teams AND runs the stateful Mention Ledger sweep — the system that guarantees no mention of the owner, thread reply, or DM slips through unanswered.
scripts/mention_ledger.py — stateful, 3-layer sweep. Replaces reliance on the old runner's 5-msgs-per-channel skim, which structurally missed old-thread replies, unsearched mentions, and anything beyond the last 5 messages.
Layer 1 — Collector (pure Python, cron */30, no LLM):
search.messages <@<SLACK_ID>> catches mentions of the owner ANYWHERE (all channels, thread replies, DMs) — search indexes thread replies, so old-thread activity is caught.conversations.history oldest=<last_ts>) — every message since the last sweep, no cap.answered only when the owner actually replied after it (same thread / channel) or ack-reacted. Ack reactions (the owner's decision): ✅ ☑️ 👍 👌 — 👀 does NOT count, item stays open.is_noise, conservative): bot/notifier messages (bot_id, or a known-app author in NOISE_AUTHORS e.g. Google Calendar / Slackbot) and short pure-acknowledgment closers ("thanks", "sure no worries", "yes exactly", "it is done") are auto-dismissed so they never reach the queue. Never fires on a question, a link-only message, or a bare ^ ping — false-dismiss risk is kept near zero (a bit of residual noise beats hiding a real ask). Runs on new items AND re-checks the existing backlog each sweep. Add new notifier app user-IDs to NOISE_AUTHORS as they appear.sweep_thread_replies, added 4 Sep 2026): conversations.history returns thread roots only, never replies. So a reply inside a thread the owner is in, written by somebody who did not type his handle, was invisible to every other layer at once: not a mention (search greps for <@yourhandle>), not a DM, and not in history. state['threads'] already existed and was written in two places, but the ONLY code that read it was prune(), which deleted it. Rohit Salaria answered a question of the owner's on 2 Sep 2026 this way and no sweep saw it for two days; Raouf Cherkawi's sign-off on the SAIB journey went the same way. The pass walks the thread registry, fetches replies, and raises anything landing after the owner's last message in a thread he has posted in. Scope is narrow on purpose: a thread with no the owner message is somebody else's conversation and is marked participating: false so it is never fetched again. Three related traps, all now covered by tests/test_slack_thread_pass.py:
sweep_channels hits continue on his messages before the registration line. That is precisely the case that broke: he asks, they answer, nothing sees it.prune() dropped every thread with no OPEN item, which deleted exactly the threads worth watching (a thread the owner answered has no open item, so the NEXT reply would be missed all over again). It now keeps a participating thread until THREAD_IDLE_DAYS of silence.THREAD_REPLY_MAX_CALLS cap starves the tail if threads are sorted by activity alone, because a checked thread gets fresh activity and stays on top. Never-checked threads are served first, then the least-recently-checked.
Backfill: sweep --reseed-threads registers every thread the owner posted in over the last 14 days. It runs itself once, when thread_pass_seeded is absent.enrich_pointers): a bare ^, :point_up:, or a shared permalink carries no standalone ask — the real request is in the message it points to. For every open pointer/link-only item the collector fetches the substantive predecessor (or resolves the permalink target, chasing the chain up to 2 hops) and stores it as context, which report prints as ↳ re:. This is why a bare ping is KEPT not dismissed: e.g. Ali's "@yourhandle ^" resolved to the real ask "scope the OMS↔ExampleProgram Jahez Redemption API (integrate get-card-balance)". Without enrichment that task would have been invisible.journal/state/slack_mention_ledger.json (items persist across days until answered/dismissed). Digest for GLM: journal/state/slack_sweep_digest.jsonl.Layer 2 — Classifier (GLM via agy-bridge, cheap): mention_ledger.py classify batches the digest + open items through --task harvest (GLM/Gemini chain) → needs_reply / action_item / meeting_input / fyi / noise + urgency. GLM never decides answered/open — that stays mechanical.
Layer 3 — Surface (Claude, morning/evening updates): mention_ledger.py report prints the "🔴 Waiting on your reply" markdown (priority authors first — any YourManager message is 🔥, then newest). The daily updates embed this and the owner can mention_ledger.py dismiss <item_id> anything handled offline.
python3 .agent/skills/slack-tracker/scripts/mention_ledger.py sweep # cron does this
python3 .agent/skills/slack-tracker/scripts/mention_ledger.py sweep --reseed-threads # re-register the owner's recent threads
python3 tests/test_slack_thread_pass.py # regression: the thread pass
python3 .agent/skills/slack-tracker/scripts/mention_ledger.py report # for briefings
python3 .agent/skills/slack-tracker/scripts/mention_ledger.py classify # GLM triage of digest
python3 .agent/skills/slack-tracker/scripts/mention_ledger.py dismiss <SLACK_ID>:1783574754.502969
Cron (installed): */30 * * * * flock -n /tmp/mention_ledger.lock python3 .../mention_ledger.py sweep >> .../ledger_cron.log
Gotchas: needs the user token (xoxp — search.messages never works with a bot token); a full sweep takes ~3-4 min on ~100 conversations (paced for rate limits); first run looks back 3 days (mentions) / 24h (channels) / 14 days (thread seeding) to avoid flooding. Never "fix" the sweep by deleting from state['threads'] on the basis that a thread has no open item — that is the exact regression the thread pass exists to prevent.
channels.json for all Slack MCP tool calls.The channels.json file is the source of truth for channel mappings.
channels.json with the new channel ID and name under the appropriate client/team.channels.json only when explicitly requested by the user.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub brianarfi/ai-second-brain --plugin asb-core66 skills in this plugin
/access-watchFinds every request for access that is waiting on the owner, from both places they arrive, and verifies each one against the live permission state before reporting it./achievements-trackerFinds the owner's product wins in real data each month, drafts CV bullets with caveats and the decisions behind them, messages the owner, and adds them to the CV after a grace period (silence = approved). Use when the owner says "review my CV wins", "approve ACH-xxxx", "reject ACH-xxxx", asks what wins are pending, or asks to add an achievement to their CV./agy-bridgeOptional cost saver that routes bulk mechanical work to a non-Claude model. Use for harvest, critic, and research offload; never for synthesis or strategy. Fully skippable, the harness works without it./browser-serviceBrowser ServiceEnsures the Chrome CDP browser service is running before any browser interaction. Must be invoked before using browser_subagent./clickup-connectorClickUp ConnectorA skill to interact with ClickUp workspaces, allowing retrieval of spaces, folders, lists, and tasks, plus task creation./command-queueTurns the owner's task-comments (by:"owner" comments on dashboard tickets) into auto-dispatched headless `claude -p` worker runs, routing each to the right model+effort per the CLAUDE.md table. Scan → triage → spawn. Safe by construction — workers never send external messages; anything needing a send is drafted and flagged.Other plugins' skills for the same job