decision-log-keeper
Skill1 starsChanged 7 months agoMITView on GitHub
Extract decision messages from a Slack channel for a given date and append them as rows to a Notion "Decision Log" database. Designed to run daily via launchd cron, but can be invoked manually with --date for backfill or workshop demo.
In this repository13 other files it gives its agents.
- battle-card-builderSkill
- blocker-radarSkill
- deal-context-loaderSkill
- follow-up-radarSkill
- inbox-zero-triageSkill
- knowledge-graph-builderSkill
- meeting-prep-pullSkill
- okr-syncSkill
- project-briefSkill
- spec-from-threadSkill
- thread-zombie-killerSkill
- ticket-triage-routerSkill
- weekly-shipped-from-noiseSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 54
Keep decisions only — drop chatter and questions.
- Very specific: line 120
Notion DB schema drift: if the DB columns or types change, create_page fails.
- Very specific: line 121
In cron mode, the hook prompt blocks: use CLAUDE_CODE_TOOLKIT_CRON_MODE=1 to bypass the hook and only record the audit log.
- Distinctive: line 126
Do not anonymize the author — keep display_name as-is
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
decision-log-keeper
Workshop pick #1 (H+X warm-up). Each day, automatically moves decisions dropped into the Slack #decisions channel during PM meetings into a Notion DB. Permanently preserved so that, at quarterly retros, you can trace "Why did we decide it that way back then?". See docs/workshop-flow.md for the demo sequence.
Zero-config: this skill auto-resolves the Notion DB "Decision Log" and Slack channel #decisions on first run and caches the IDs — see docs/auto-resolve.md.
Input
--date YYYY-MM-DD(optional, defaults to today) — the target date to extract--channel #channel-name(override only — defaults to auto-resolve Slack channel#decisions)--notion-db-id <id>(override only — defaults to auto-resolve Notion DB "Decision Log". Env override:CLAUDE_CODE_TOOLKIT_DECISION_DB_ID)
Output
Prints the number of rows added + the Notion URL of each row. One-line console summary:
2026-04-26: extracted N decisions from #decisions → added N rows to Notion DB
- <Notion row URL 1>
- <Notion row URL 2>
- ...Procedure
1. Parse input
--datemissing → today (timezone Asia/Seoul, KST)- Slack channel: auto-resolve
#decisionsvia the algorithm in docs/auto-resolve.md (cache-first, fall through toslack_search_channels). Override:--channel <name>. - Notion DB ID: auto-resolve "Decision Log" via the algorithm in docs/auto-resolve.md (cache-first, fall through to notion-search). Override:
--notion-db-id <id>or envCLAUDE_CODE_TOOLKIT_DECISION_DB_ID.
2. Collect Slack messages
Call mcp__claude_ai_Slack__slack_read_channel:
channel: the resolved channel's IDoldest: Unix timestamp for 00:00 KST on the input datelatest: Unix timestamp for 23:59 KST on the input datelimit: 200
N messages returned. If 0, print "No messages on that date" and exit.
3. Filter decision messages (LLM)
Classify the N collected messages with the LLM:
- decision: declarative decisions like "going with X", "decided on Y", "finalized Z". Prefer messages tagged with approval reactions like
:white_check_mark:or:approved:. - chatter: greetings, weather, lunch, etc.
- question: ends in
?or seeks an answer
Keep decisions only — drop chatter and questions.
Attach the following metadata to each decision:
Author: resolve user_id → display_name viamcp__claude_ai_Slack__slack_read_user_profileTime: ISO 8601 message timestampContext (one line): a one-line summary of the decision's background, drawn from 1-2 prior messages in the same thread or 1 prior message in the channelSlack permalink: formathttps://<workspace>.slack.com/archives/<channel-id>/p<ts>
4. Add Notion DB rows
For each decision, call mcp__claude_ai_Notion__notion-create-pages:
parent:database_id= the resolved DB IDproperties:Title(title): one-line summary of the decision (≤ 50 chars)Date(date): decision timeAuthor(rich_text): Slack display_nameContext(rich_text): one-line contextSlack Link(url): Slack permalink
children: full text of the decision (paragraph block)
Hook behavior: the plugin's PreToolUse(mcp__claude_ai_Notion__notion-create-pages) hook fires on the first row creation — asks the user once "About to add N rows to the Notion DB. Proceed?". In cron mode, set CLAUDE_CODE_TOOLKIT_CRON_MODE=1 to bypass the hook and only record an audit log entry (audit log path = ~/.claude-code-toolkit/audit/decision-log-YYYY-MM-DD.jsonl).
5. Output
Print rows added + each row's Notion URL in the one-line summary format. Done.
Automated operation (cron)
Recommend launchd cron at 18:00 KST daily:
# ~/Library/LaunchAgents/<reverse-domain>.claude-code-toolkit.decision-log-keeper.plist
# Program: /usr/local/bin/claude
# ProgramArguments: -p "/claude-code-toolkit:decision-log-keeper"
# StartCalendarInterval: { Hour=18, Minute=0 }
# EnvironmentVariables:
# CLAUDE_CODE_TOOLKIT_CRON_MODE=1
# # Optional — only set if you want to override auto-resolve
# CLAUDE_CODE_TOOLKIT_DECISION_DB_ID=<id>See docs/cron-setup.md for the full plist example.
Workshop demo (T1 explicit invocation)
> /claude-code-toolkit:decision-log-keeper --date 2026-04-26Pre-demo setup:
- One-time creation of the Notion "Decision Log" DB (Title / Date / Author / Context / Slack Link columns)
- Seed 1-2 dummy decision messages into
#decisions(e.g. "Decided to change token vesting from 6 months → 12 months") - Presenter PC has
CLAUDE_CODE_TOOLKIT_DECISION_DB_IDenv var set + Slack/Notion MCP authenticated
30-second demo flow:
- Type the command (5s)
- Slack message fetch + LLM decision extraction (10s)
- Notion DB row creation + user confirmation prompt → y (5s)
- Presenter refreshes Notion UI to show the row appear (10s)
Key talking point: "Normally a daily 18:00 cron does this automatically. For the workshop we ran the same command manually with --date."
Pitfalls
- Slack timezone confusion:
oldest/latestare Unix timestamps (UTC). For--date 2026-04-26, convert KST 00:00-23:59 to UTC before passing. - Decision/chatter LLM classification too loose: false positives (chatter classified as decisions) flood the Notion DB with noise. Force this in the system prompt: "A decision = an explicit decision verb (
finalize/decide/confirm/pick) or an approval reaction (:white_check_mark: :approved:)". - Notion DB schema drift: if the DB columns or types change,
create_pagefails. On the first call, runmcp__claude_ai_Notion__notion-fetch <db-id>once to validate the schema before proceeding. - In cron mode, the hook prompt blocks: use
CLAUDE_CODE_TOOLKIT_CRON_MODE=1to bypass the hook and only record the audit log. The plugin checks this env var in hooks.json.
Tone
- Quote the decision text verbatim — no paraphrasing
- Do not anonymize the author — keep display_name as-is
- The one-line context is "why this decision came up" in one sentence — no speculation
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.

