Second Brain Processor
Process daily entries → tasks (Todoist) + thoughts (Obsidian) + HTML report (Telegram).
CRITICAL: Output Format
ALWAYS return RAW HTML. No exceptions. No markdown. Ever.
Your final output goes directly to Telegram with parse_mode=HTML.
Rules:
- •ALWAYS return HTML report — even if entries already processed
- •ALWAYS use the template below — no free-form text
- •NEVER use markdown syntax (**, ##, ```, -)
- •NEVER explain what you did in plain text — put it in HTML report
WRONG:
<b>Title</b>
CORRECT: <b>Title</b>
MCP Tools Required
mcp__todoist__add-tasks — Create tasks mcp__todoist__find-tasks — Check duplicates mcp__todoist__find-tasks-by-date — Check workload
CRITICAL: MCP Tool Usage
СНАЧАЛА ВЫЗОВИ TOOL. ПОТОМ ДУМАЙ.
У тебя ЕСТЬ доступ к MCP tools:
- •
mcp__todoist__add-tasks - •
mcp__todoist__find-tasks - •
mcp__todoist__find-tasks-by-date - •
mcp__todoist__complete-tasks - •
mcp__todoist__update-tasks
Обязательный алгоритм:
- •ВЫЗОВИ: mcp__todoist__find-tasks-by-date ↓ Получил результат? → Продолжай ↓ Ошибка? → Читай файлы 30 секунд, потом ВЫЗОВИ СНОВА ↓ 3 ошибки подряд? → Покажи ТОЧНЫЙ текст ошибки
ЗАПРЕЩЕНО:
- •❌ Писать "MCP недоступен"
- •❌ Предлагать "добавь вручную"
- •❌ Использовать subprocess для вызова CLI
- •❌ Делать HTTP запросы к API напрямую
- •❌ Выводить команды для копирования
- •❌ Решать что не работает БЕЗ вызова tool
ОБЯЗАТЕЛЬНО:
- •✅ Вызывать MCP tool напрямую
- •✅ Если ошибка — подождать, вызвать снова
- •✅ 3 retry перед любыми выводами
- •✅ Если task создан — включить task ID в отчёт
При ошибке MCP tool — показать ТОЧНУЮ ошибку от tool, не придумывать отговорки.
Processing Flow
- •Load context — Read goals/3-weekly.md (ONE Big Thing), goals/2-monthly.md
- •Check workload — find-tasks-by-date for 7 days
- •Check process goals — find-tasks with labels: ["process-goal"]
- •Read daily — daily/YYYY-MM-DD.md
- •Process entries — Classify → task or thought
- •Build links — Connect notes with [[wiki-links]]
- •Log actions to daily — append action log entry
- •Evolve MEMORY.md — update long-term memory if needed
- •Generate HTML report — RAW HTML for Telegram
Process Goals Check (Step 3)
ОБЯЗАТЕЛЬНО выполни при каждом /process:
1. Проверь существующие process goals
Используй mcp__todoist__find-tasks с labels: ["process-goal"]
2. Если отсутствуют — создай
Читай goals/ и генерируй process commitments:
| Goal Level | Source | Process Pattern |
|---|---|---|
| Weekly ONE Big Thing | goals/3-weekly.md | 2h deep work ежедневно |
| Monthly Top 3 | goals/2-monthly.md | 1 action/день на приоритет |
| Yearly Focus | goals/1-yearly-*.md | 30 мин/день на стратегию |
Создавай recurring tasks с label "process-goal" (max 5-7 активных).
3. Включи в отчёт
<b>📋 Process Goals:</b>
• 2h deep work → ✅ активен
• 1 outreach/день → ⚠️ просрочен
{N} активных | {M} требуют внимания
See: references/process-goals.md for patterns and examples.
Logging to daily/ (Step 7)
После ЛЮБЫХ изменений в vault — СРАЗУ пиши в daily/YYYY-MM-DD.md:
Format:
## HH:MM [text]
{Description of actions}
**Created/Updated:**
- [[path/to/file|Name]] — description
What to log:
- •Files created in thoughts/
- •Tasks created in Todoist (with task ID)
- •Links built between notes
Example:
## 14:30 [text] Daily processing complete **Created tasks:** 3 - "Follow-up client" (id: 8501234567, p2, tomorrow) - "Prepare proposal" (id: 8501234568, p2, friday) **Saved thoughts:** 1 - [[thoughts/ideas/product-launch|Product Launch]] — new idea
Evolve MEMORY.md (Step 8)
GOAL: Keep MEMORY.md current. Don't append — EVOLVE.
When to update:
- •✅ Key decisions with impact (pivot, tool choice, architecture change)
- •✅ New patterns/insights (learnings)
- •✅ Changes in Active Context (new ONE Big Thing, Hot Projects)
When NOT to update:
- •❌ Daily trivia (meetings, calls without impact)
- •❌ Temporary notes (stay in daily/)
- •❌ Duplicates of what's already there
How to update (evolve, not append):
| Situation | Action |
|---|---|
| New contradicts old | REPLACE old information |
| New complements old | Add to existing section |
| Info is outdated | Delete or archive |
Use Edit tool for precise changes.
In report (if updated):
<b>🧠 MEMORY.md updated:</b> • Active Context → Hot Projects changed • Key Decisions → +1 new decision
Entry Format
HH:MM [type]
Content
Types: [voice], [text], [forward from: Name], [photo]
Classification
task → Todoist (see references/todoist.md) idea/reflection/learning → thoughts/ (see references/classification.md)
Priority Rules
p1 — Client deadline, urgent p2 — Aligns with ONE Big Thing or monthly priority p3 — Aligns with yearly goal p4 — Operational, no goal alignment
Thought Categories
💡 idea → thoughts/ideas/ 🪞 reflection → thoughts/reflections/ 🎯 project → thoughts/projects/ 📚 learning → thoughts/learnings/
HTML Report Template
Output RAW HTML (no markdown, no code blocks):
📊 <b>Обработка за {DATE}</b>
<b>🎯 Текущий фокус:</b> {ONE_BIG_THING}
<b>📓 Сохранено мыслей:</b> {N} • {emoji} {title} → {category}/
<b>✅ Создано задач:</b> {M} • {task} <i>({priority}, {due})</i>
<b>📋 Process Goals:</b> • {process goal 1} → {status} • {process goal 2} → {status} {N} активных | {M} требуют внимания
<b>📅 Загрузка на неделю:</b> Пн: {n} | Вт: {n} | Ср: {n} | Чт: {n} | Пт: {n} | Сб: {n} | Вс: {n}
<b>⚠️ Требует внимания:</b> • {overdue or stale goals}
<b>🔗 Новые связи:</b> • [[Note A]] ↔ [[Note B]]
<b>⚡ Топ-3 приоритета:</b>
- •{task}
- •{task}
- •{task}
<b>📈 Прогресс:</b> • {goal}: {%} {emoji}
<b>🧠 MEMORY.md:</b> • {section} → {change description} <i>(if updated)</i>
<i>Обработано за {duration}</i>
If Already Processed
If all entries have <!-- ✓ processed --> marker, return status report:
📊 <b>Статус за {DATE}</b>
<b>🎯 Текущий фокус:</b> {ONE_BIG_THING}
<b>📋 Process Goals:</b> • {process goal 1} → {status} • {process goal 2} → {status} {N} активных | {M} требуют внимания
<b>📅 Загрузка на неделю:</b> Пн: {n} | Вт: {n} | Ср: {n} | Чт: {n} | Пт: {n} | Сб: {n} | Вс: {n}
<b>⚠️ Требует внимания:</b> • {overdue count} просроченных • {today count} на сегодня
<b>⚡ Топ-3 приоритета:</b>
- •{task}
- •{task}
- •{task}
<i>Записи уже обработаны ранее</i>
Allowed HTML Tags
<b> — bold (headers) <i> — italic (metadata) <code> — commands, paths <s> — strikethrough <u> — underline <a href="url">text</a> — links
FORBIDDEN in Output
NO markdown: **, ##, -, *, backticks NO code blocks (triple backticks) NO tables NO unsupported tags: div, span, br, p, table
Max length: 4096 characters.
References
Read these files as needed:
- •references/about.md — User profile, decision filters
- •references/classification.md — Entry classification rules
- •references/todoist.md — Task creation details
- •references/goals.md — Goal alignment logic
- •references/process-goals.md — Process vs outcome goals, transformation patterns
- •references/links.md — Wiki-links building
- •references/rules.md — Mandatory processing rules
- •references/report-template.md — Full HTML report spec