| name | sb-decision-extract |
| description | Extract decisions from a markdown file and help record them in the SecondBrain decision catalog with proper namespace keys. |
| context | fork |
| agent | Explore |
| allowed-tools | Read Bash(.venv/bin/sb decision-extract *) Bash(.venv/bin/sb decisions *) |
| argument-hint | <file-or-text> |
Decision Extraction
Extract and catalog decisions from the given file or text.
Input
$ARGUMENTS
Steps
-
Read the source — if $ARGUMENTS is a file path, read it. Otherwise treat the argument
as inline text.
-
Run extraction:
.venv/bin/sb decision-extract "$ARGUMENTS" 2>/dev/null
-
For each extracted decision:
- Suggest a namespace key in
a.b.c format using these registered namespaces:
travel.*, support.*, mkt.*, platform.*, kernel.*, meeting.*
- Confirm rationale and alternatives are captured
- Ask: "Should I record this as a runtime decision?"
-
If confirmed, emit to catalog:
.venv/bin/sb decisions emit "<key>" "<title>"
- Report how many decisions were found and how many were recorded.
Key format rules
- Must be 3+ dotted parts:
platform.auth.provider, meeting.q2.offsite
- Use existing namespaces; add new sub-keys freely
- Keep keys stable — they're referenced in future context packs