Claude-skill-registry context-save
Save decision, bet, or learning to the context registry
git clone https://github.com/majiayu000/claude-skill-registry
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/context-save" ~/.claude/skills/majiayu000-claude-skill-registry-context-save && rm -rf "$T"
skills/data/context-save/SKILL.mdSave a decision record, strategic bet, or learning to the persistent context registry.
V2V Phase
Phase 6: Learning & Adaptation - This skill persists organizational knowledge for future use.
Prerequisites: Decision record, strategic bet, or learning created Outputs used by: All phases (enables organizational memory)
Auto-Initialization
Before saving, ensure the context folder structure exists. If any required folder or file is missing, create it:
-
Check if
folder exists - if not, inform user to runcontext/
first OR create the basic structure:/setupcontext/decisions/index.mdcontext/bets/index.mdcontext/assumptions/registry.mdcontext/portfolio/active-bets.mdcontext/learnings/index.md
-
When creating year folders (
), create them automatically.context/decisions/2026/
Purpose
The context registry provides organizational memory. This skill extracts key information from documents and saves them to the appropriate index, enabling future recall and cross-referencing.
When to Use
Invoke
/context-save after:
- Creating a decision record with
/decision-record - Formulating a strategic bet with
/strategic-bet - Completing a retrospective with
/retrospective - Completing an outcome review with
/outcome-review - Completing a decision quality audit with
/decision-quality-audit
Process
1. Identify What to Save
Ask the user what they want to save:
- Decision Record → Extract to
context/decisions/ - Strategic Bet → Extract to
andcontext/bets/context/portfolio/ - Learning → Extract to
context/learnings/ - Assumptions → Extract to
context/assumptions/registry.md
2. Extract Key Information
For Decision Records
Extract and save:
| ID | Title | Date | Owner | Product | Status | Tags |
- Include Product field if specified (for multi-product organizations)
- Generate tags from content (3-5 relevant keywords)
- Link related decisions if mentioned
- Extract assumptions to assumption registry
For Strategic Bets
Extract and save:
| ID | Title | Date | Owner | Product | Status | Key Assumption |
- Include Product field if specified (for multi-product organizations)
- Add to
if status is Activecontext/portfolio/active-bets.md - Extract ALL explicit assumptions to
context/assumptions/registry.md - Note upcoming checkpoints
For Learnings
Extract and save:
| ID | Learning | Source | Date | Product | Tags | Confidence |
- Include Product field if applicable (for multi-product organizations)
- Categorize by type (Strategy, Product, GTM, Customer, Process)
- Link to source document
For Assumptions
Extract and save:
| ID | Assumption | Source | Confidence | Validation Method | Status | Outcome |
- Generate assumption ID (A-NNN, sequential)
- Link back to source decision/bet
- Set initial status to "Pending"
3. Update Index Files
- Read the current index file
- Add the new entry to the appropriate table
- Update "Last updated" timestamp
- Update quick filters/categories
- Write the updated index
4. Save Full Record
For decisions and bets, also save the full record:
- Create year folder if needed:
context/[type]/[YYYY]/ - Save full document as
[ID].md
5. Update JSON Index
Also update
for fast retrieval:context/index.json
- Read
context/index.json - Add entry to the
array:entries{ "id": "DR-2026-001", "title": "API Versioning Strategy", "type": "decision", "path": "context/decisions/2026/DR-2026-001.md", "topics": ["api", "versioning", "compatibility"], "phase": "phase2", "created": "2026-01-25", "lastAccessed": "2026-01-25" } - Update
- add ID to each topic arraytopicIndex - Update
- add ID to the type array (decision, bet, learning)typeIndex - Update
- add ID to the appropriate phase arrayphaseIndex - Update
timestamplastUpdated - Write updated JSON
Topic extraction:
- Use tags from the document
- Extract key terms from title
- Include product name if multi-product org
6. Confirm Save
Report what was saved:
Saved to context registry: - Decision DR-2026-001 added to decisions/index.md - 3 assumptions extracted to assumptions/registry.md - Full record saved to decisions/2026/DR-2026-001.md - JSON index updated (topics: api, versioning, compatibility)
Instructions
- Ask what type of content to save (or detect from recent conversation)
- If the content was just created, extract from it directly
- If content is in a file, read it using @path/to/file.md syntax
- Extract metadata following the formats above
- Read current index files before updating
- Preserve existing entries when adding new ones
- Generate sequential IDs based on existing entries
- Update all affected index files
- Report what was saved and where
ID Generation
- Decisions:
(e.g., DR-2026-001)DR-[YYYY]-[NNN] - Bets:
(e.g., SB-2026-003)SB-[YYYY]-[NNN] - Assumptions:
(e.g., A-015) - sequential across all assumptionsA-[NNN] - Learnings:
(e.g., L-042) - sequential across all learningsL-[NNN]
Check existing indexes to determine next available number.