Capture conversation summaries and web content to daily notes. Use when user says "save this", "summarize", "capture notes", or pastes a URL without context.
Capture conversation summaries and web content to daily notes synced to GitHub.
When the user wants to save or summarize the current conversation:
Ask: "Any specific focus or instructions for the summary?"
Ask: "Any topics to link this to? (e.g., [[AI Coding]], [[Architecture]])"
Before suggesting new topics, search for existing notes that match. If found:
Review the conversation and extract:
# Todos section at the top of the daily noteIf user wants to link to a topic:
Create an entry with timestamp, key ideas, related notes, and links.
Timestamp: Read timezone from scripts/config.json and calculate the current local time. Use format HH:MM (24-hour).
Fetch existing daily note, append new entry, push back.
User: Save this conversation
Claude: Any specific focus or instructions for the summary?
User: Focus on the architecture decisions we made
Claude: Any topics to link this to? I found [[Event-Driven Architecture]] in your notes.
User: Yes, add it there. Also create a new note for System Design.
Claude: Got it. I'll update [[Event-Driven Architecture]] and create [[System Design]].
Added to Todos section:
- [ ] Implement retry logic with exponential backoff
- [ ] Document event schema for notification system
Added to Cortex section (2026-01-03.md):
## 14:30 - Architecture Discussion
### Key Ideas
- Decided to use event-driven architecture for the notification system
- Will implement retry logic with exponential backoff
- See [[Event-Driven Architecture]] for more details
### Related Notes
- [[Event-Driven Architecture]]
- [[System Design]]
### Links
- [EDA Article](https://example.com/eda) - reference article discussed
Updated [[Event-Driven Architecture]] with link to today's discussion.
Created [[System Design]] with initial notes.
When the user pastes a URL without context:
Ask: "Would you like me to summarize this link?"
If yes, ask: "Any specific focus or instructions for the summary?"
Retrieve the page content and create a summary based on instructions.
Add the link with its summary to the daily notes.
User: https://example.com/article-about-microservices
Claude: Would you like me to summarize this link?
User: Yes, focus on the deployment strategies
Claude: Any topics to link this to? I found [[Microservices]] in your notes.
User: Yes, and also [[Deployment Strategies]]
Claude: Got it. Keep it brief?
User: Yes
[Fetches and summarizes the article]
Added to Todos section:
- [ ] Set up blue-green deployment for checkout service
- [ ] Evaluate feature flag tooling options
Added to Cortex section (2026-01-03.md):
## 15:00 - Link Summary
### Key Ideas
- Article recommends blue-green deployments for microservices
- Canary releases reduce risk for critical services
- Feature flags enable gradual rollouts
### Related Notes
- [[Microservices]]
- [[Deployment Strategies]]
### Links
- [Microservices Deployment Strategies](https://example.com/article-about-microservices) - deployment patterns
Updated [[Microservices]] with link to this article.
Files are named YYYY-MM-DD.md (one file per day). Multiple sessions throughout the day all append to the same file.
Daily notes have two main sections:
# Todos - Action items at the top of the file# Cortex - Timestamped entries at the bottomWhen appending a new entry:
# Todos section (create at top if missing)# Cortex section (or create it below todos if missing)## HH:MM timestampsThe exact timestamp isn't critical - entries just need to be roughly in order of when they happened.
When summarizing a conversation, look for:
Format todos as Obsidian tasks:
- [ ] for incomplete tasks- [x] for completed tasksExample: 2026-01-03.md
# Todos
- [ ] Implement retry logic with exponential backoff
- [ ] Review EDA article and summarize key patterns
- [ ] Set up blue-green deployment pipeline
# Cortex
## 14:30 - Architecture Discussion
### Key Ideas
- Decided to use event-driven architecture
- Will implement retry logic with exponential backoff
- See [[Event-Driven Architecture]] for more details
### Related Notes
- [[Event-Driven Architecture]]
- [[System Design]]
### Links
- [EDA Article](https://example.com/eda) - reference article
---
## 15:00 - Link Summary
### Key Ideas
- Blue-green deployments recommended for microservices
### Related Notes
- [[Microservices]]
- [[Deployment Strategies]]
### Links
- [Microservices Guide](https://example.com/guide) - deployment patterns
---
The # Todos section stays at the top for easy access. The # Cortex header marks the section for timestamped entries.
YYYY-MM-DD.md# Todos at the top of the file (action items as - [ ] tasks)# Cortex below todos## HH:MM - Title### Key Ideas with bullet points### Related Notes with [[Topic Name]] links - only include if there are related notes (e.g., [[Claude Code]], [[Architecture Patterns]])### Links with [Title](URL) - description--- between entriesUse Obsidian-style [[wiki links]] to connect notes.
Reference topics naturally in sentences:
This discussion covered [[AI Coding]] best practices and [[Architecture Patterns]].
List related topics at the end of an entry:
### Related Notes
- [[AI Coding]]
- [[Cloudflare]]
- [[Architecture Patterns]]
Topic docs are standalone notes for recurring themes, projects, or reference material. They live in the same notes/ folder as daily notes.
Before creating a new topic, search the existing notes in the repo:
To check if a topic exists, try fetching it:
cd /mnt/skills/user/cortex/scripts
uv run github_sync.py --fetch "notes/AI Coding.md"
# AI Coding
## Overview
Brief description of the topic.
## Notes
- [[2026-01-03]] - Discussed using AI for code review
- [[2026-01-04]] - Explored cursor-based editing workflows
## Related Notes
- [[Architecture Patterns]]
- [[Code Review]]
## Links
AI coding tools have evolved rapidly, with IDE integrations like Cursor leading the way in seamless code generation. For terminal-based workflows, Claude Code offers powerful multi-file editing capabilities. Understanding the underlying architectures is essential for building effective tools.
- [Cursor](https://cursor.com) - AI-powered code editor built on VS Code with tab completion, inline editing, and chat-based code generation
- [Claude Code](https://claude.ai/claude-code) - Command-line coding assistant from Anthropic with file editing and multi-file refactoring
- [Building AI Coding Assistants](https://example.com/ai-coding-guide) - Guide on architectures, prompt engineering, and context management
Link format:
[Title](URL) - descriptionWhen multiple links exist, add a brief overview (1-2 sentences) at the top of the Links section that synthesizes the resources. Update the overview when new links are added.
Cortex uses Obsidian-flavored markdown. Reference: https://help.obsidian.md/obsidian-flavored-markdown
| Syntax | Description |
|---|---|
[[Link]] | Internal links to other notes |
![[Link]] | Embed files |
![[Link#^id]] | Block references |
^id | Defining a block |
[^id] | Footnotes |
%%Text%% | Comments |
~~Text~~ | Strikethroughs |
==Text== | Highlights |
``` | Code blocks |
- [ ] | Incomplete task |
- [x] | Completed task |
> [!note] | Callouts |
| | Tables |
Edit scripts/config.json to configure GitHub storage:
{
"github_repo": "mberg/cortex",
"github_token": "github_pat_xxxxx",
"github_branch": "main",
"github_notes_dir": "notes",
"timezone": "America/New_York"
}
github_repo: Your repository in username/repo-name formatgithub_token: Personal Access Token with repo scope. Create at: https://github.com/settings/tokensgithub_branch: Target branch (default: main)github_notes_dir: Directory
in repo for notes (default: notes)timezone: User's timezone for timestamps (e.g., America/New_York, Europe/London, Asia/Tokyo)When adding notes, read the timezone from config and calculate the local time:
import json
from datetime import datetime
from zoneinfo import ZoneInfo
# Read config
with open("config.json") as f:
config = json.load(f)
# Get current time in user's timezone
tz = ZoneInfo(config.get("timezone", "UTC"))
local_time = datetime.now(tz)
# Format for note header: "## 14:30 - Title"
timestamp = local_time.strftime("%H:%M")
# Format for daily note filename: "2026-01-03.md"
date_str = local_time.strftime("%Y-%m-%d")
Important: Must cd into the scripts directory so github_sync.py can find config.json.
cd /mnt/skills/user/cortex/scripts
uv run github_sync.py --fetch notes/2026-01-03.md > /tmp/2026-01-03.md
If the file doesn't exist yet, create it empty.
cat >> /tmp/2026-01-03.md << 'EOF'
## 14:30 - Session Summary
### Key Ideas
- Main concept discussed
- Decision made
### Links
- [Resource](https://example.com) - description
---
EOF
cd /mnt/skills/user/cortex/scripts
uv run github_sync.py \
--file /tmp/2026-01-03.md \
--dest notes/2026-01-03.md \
-m "Add notes for 2026-01-03"
cd into scripts/ so github_sync.py can find config.jsonconfig.json in the same directory as the script itself--dest is relative to the repo root (e.g., notes/2026-01-03.md)