Markdown Converter
Agent skill for markdown-converter
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
LifeOS is a personal GTD (Getting Things Done) system with Todoist integration. The system enables natural language task creation, automated project management, and comprehensive life tracking.
# Todoist Task Management ./lifeos 'your task description' # Natural language task creation ./lifeos setup # Setup Todoist API Token ./lifeos test # Test Todoist connection ./lifeos setup-goals # Quick setup for fitness/career/English goals ./lifeos fitness # Send workout plan ./lifeos export-tasks # Export all tasks to JSON ./lifeos list-tasks # List all tasks # Anki Sync (Notion → Anki) ./lifeos setup-anki [PAGE_ID] # Create Anki Cards database in Notion ./lifeos sync-anki # Sync Notion to Anki (.apkg) ./lifeos sync-anki --dry-run # Test sync without changes (safe mode) # Eudic Sync (欧路词典 → Notion → Anki) ./lifeos sync-eudic # Sync Eudic vocabulary to Notion ./lifeos test-eudic # Test Eudic API connection (dry-run) ./lifeos sync-eudic --limit 10 # Test with limited number of words # Life Tracking (Logseq Integration) ./lifeos today # Initialize today's journal ./lifeos log work 'content' 8 '2h' # Log activity with rating and duration ./lifeos report # Generate weekly report ./lifeos sync # Git sync Logseq # AI Advisor ./lifeos analyze # Analyze life patterns from historical data ./lifeos plan # Generate optimized plans based on analysis
scripts/todoist_manager.py)Full-featured Todoist API integration:
Key Features:
scripts/personal_assistant.py)Natural language task processing:
scripts/setup_goals.py)Quick initialization for three major goals:
scripts/logseq_tracker.py)Daily journaling and life tracking:
scripts/ai_advisor.py)Pattern analysis and recommendations:
scripts/sync_notion_anki.py)Notion to Anki synchronization system:
Key Features:
scripts/sync_eudic_notion.py)Eudic (欧路词典) vocabulary synchronization to Notion:
Key Features:
config/todoist_config.json - Todoist API settings and project mappingsconfig/assistant_profile.json - Assistant behavior configurationconfig/logseq_templates.json - Logseq journal templatesconfig/anki_sync_config.json - Anki sync behavior and deck settingsconfig/eudic_config.json - Eudic (欧路词典) API token and sync settingsnotion-kit/.env - Notion and Telegram credentials{ "fitness": "work-out", // Workout and fitness "career": "job-hunt", // Job searching "english": "speak-up", // English learning "errands": "Errands", // Daily errands and life tasks (shopping, cleaning, etc.) "inbox": "Inbox" // Default inbox for uncategorized tasks }
urgent - Urgent tasks (red)important - Important tasks (orange)routine - Daily routines (grey)habit - Habit formation (green)LifeOS/ ├── lifeos # Main entry point ├── CLAUDE.md # This file ├── README.md # Project readme │ ├── .github/ │ └── workflows/ │ └── sync-anki.yml # GitHub Actions for daily sync │ ├── scripts/ │ ├── todoist_manager.py # Todoist API core │ ├── personal_assistant.py # NLP task parser │ ├── setup_goals.py # Goal templates │ ├── logseq_tracker.py # Life tracking │ ├── ai_advisor.py # AI recommendations │ ├── sync_notion_anki.py # Anki sync script │ └── setup_anki_database.py # Anki database setup │ ├── config/ │ ├── todoist_config.json # Todoist settings │ ├── assistant_profile.json # Assistant config │ ├── logseq_templates.json # Journal templates │ └── anki_sync_config.json # Anki sync settings │ ├── docs/ # Documentation │ ├── ANKI_SETTINGS_FINAL.md # Optimized Anki settings guide │ ├── ANKI_SYNC_QUICKSTART.md # Anki sync quickstart │ └── NOTION_ANKI_SYNC_PLAN.md # Anki sync implementation plan │ ├── notion-kit/ │ ├── .env # Notion & Telegram credentials │ └── notion_wrap.py # Notion API wrapper (2025-09-03) │ ├── data/ # Local data storage │ ├── anki_sync_*.apkg # Generated Anki packages │ └── anki_sync_state.json # Sync state tracking │ ├── archive/ # Historical documents │ ├── TODOIST_QUICKSTART.md # Todoist setup guide (archived) │ └── ANKI_SETTINGS_*.md # Old Anki settings versions │ └── knowledge/ # Personal knowledge base
pip install todoist-api-python # Official Todoist SDK pip install genanki # Anki package generator pip install notion-client # Notion API SDK pip install requests # HTTP requests pip install python-dotenv # Environment variables
Standard libraries used:
json, os, sys, pathlib - System operationsdatetime, statistics - Data processingsubprocess, argparse - CLI operationshashlib - GUID generationconfig/todoist_config.jsonhttps://api.todoist.com/rest/v2notion-kit/.envhttps://api.notion.com/v1notion-kit/.envhttps://api.telegram.org/bot{token}/root/Documents/logseq/Natural language:
./lifeos '明天要准备面试资料和更新简历' # Parses into 2 tasks, assigns to job-hunt project
Python API:
from scripts.todoist_manager import TodoistManager manager = TodoistManager() manager.create_task( content="Morning workout", project="fitness", # Maps to "work-out" priority="high", # P1 in Todoist due_days=0, # Today labels=["habit"] # Add habit label )
tasks = [ {"name": "Task 1", "project": "career", "priority": "high"}, {"name": "Task 2", "project": "english", "priority": "medium"} ] manager.create_tasks_batch(tasks)
# All three goals at once python3 scripts/setup_goals.py --all # Individual goals python3 scripts/setup_goals.py --goal fitness python3 scripts/setup_goals.py --goal career python3 scripts/setup_goals.py --goal english
# Export to JSON ./lifeos export-tasks # File location: ~/LifeOS/data/todoist_export_YYYYMMDD_HHMMSS.json
Setup:
config/eudic_config.json with your tokenEUDIC_TOKEN to GitHub Secrets for automationManual Sync:
# Test connection (dry-run) ./lifeos test-eudic # Small batch test (5 words) ./lifeos sync-eudic --limit 5 # Full sync (all vocabulary) ./lifeos sync-eudic
GitHub Actions Setup:
EUDIC_TOKEN = your API tokenWorkflow:
欧路词典生词本 → Eudic API → Notion Anki Cards → sync-anki → Telegram (.apkg)
# Test Todoist connection ./lifeos test # Should output: # ✅ 连接成功! # 项目数: 4 # 标签数: 4 # 任务数: X
Task Management:
Project Tools First:
todoist_manager.py for task operationspersonal_assistant.py for NLP parsingTodoist Integration:
Data Privacy:
config/todoist_config.json.gitignore for sensitive datahigh → 4 (P1 - Urgent) medium → 2 (P2 - Normal) low → 1 (P3 - Low)
The system has permissions for:
./lifeos helpdocs/ANKI_SYNC_QUICKSTART.mddocs/ANKI_SETTINGS_FINAL.mdLast Updated: 2026-01-09