omnifocus-2
БесплатноЗапускает вложенные скриптыНе проверенManage OmniFocus tasks via JavaScript for Automation (JXA) scripts. Use when the user asks Clawdbot to interact with OmniFocus, including - (1) Adding tasks…
от sundial-org★ 676 звёзд на GitHubОб этом скилле
OmniFocus Task Management
Automate OmniFocus task management via JavaScript for Automation (JXA) scripts.
Quick Start
All scripts are located in the scripts/ directory and use JXA. Run with:
osascript -l JavaScript scripts/<script-name>.js [args]
Key Scripts:
add_task.js- Add task to inboxlist_tasks.js- List tasks with filterssearch_tasks.js- Search tasks by keywordcomplete_task.js- Complete a task by nameupdate_task.js- Update task propertiesget_stats.js- Get OmniFocus statistics
Core Operations
Adding Tasks
osascript -l JavaScript scripts/add_task.js "Task name" ["Note"] ["YYYY-MM-DD"]
Examples:
osascript -l JavaScript scripts/add_task.js "Buy groceries"
osascript -l JavaScript scripts/add_task.js "Review doc" "Check sections 1-3"
osascript -l JavaScript scripts/add_task.js "Submit report" "Q1" "2026-01-31"
Returns: Task ID
Listing Tasks
osascript -l JavaScript scripts/list_tasks.js [filter] [limit]
Filters:
inbox- Inbox tasksavailable- Available (unblocked) tasks (default)flagged- Flagged tasksdue-soon- Due within 3 daysoverdue- Past dueall- All incomplete tasks
Returns: JSON array with task details (name, id, note, dueDate, flagged, project, tags)
Searching Tasks
osascript -l JavaScript scripts/search_tasks.js "keyword" [limit]
Searches task names and notes. Case-insensitive.
Returns: JSON array of matching tasks
Completing Tasks
osascript -l JavaScript scripts/complete_task.js "Task name"
Searches inbox first, then all tasks. Completes first match.
Updating Tasks
osascript -l JavaScript scripts/update_task.js "Task name" [--note "text"] [--due "YYYY-MM-DD"] [--flag true/false]
Examples:
osascript -l JavaScript scripts/update_task.js "Review" --note "Added notes"
osascript -l JavaScript scripts/update_task.js "Submit" --due "2026-02-01"
osascript -l JavaScript scripts/update_task.js "Important" --flag true
Getting Statistics
osascript -l JavaScript scripts/get_stats.js
Returns: JSON with counts:
- total, incomplete, inbox
- flagged, overdue, dueSoon
- available, blocked
Usage Guidelines
When Responding to User Queries
- List tasks before acting on them to confirm targets
- Parse JSON output for structured processing
- Present results in user-friendly format (not raw JSON)
- Confirm operations before completing or modifying tasks
- Handle errors gracefully (task not found, etc.)
Common Patterns
Daily Review:
# Statistics overview
osascript -l JavaScript scripts/get_stats.js
# What needs attention
osascript -l JavaScript scripts/list_tasks.js overdue
osascript -l JavaScript scripts/list_tasks.js due-soon
Task Queries:
# "What's in my inbox?"
osascript -l JavaScript scripts/list_tasks.js inbox
# "What are my next actions?"
osascript -l JavaScript scripts/list_tasks.js available 10
# "Show my flagged tasks"
osascript -l JavaScript scripts/list_tasks.js flagged
Task Management:
# "Add a task to call John"
osascript -l JavaScript scripts/add_task.js "Call John"
# "Find tasks about the project"
osascript -l JavaScript scripts/search_tasks.js "project"
# "Mark 'Buy milk' as complete"
osascript -l JavaScript scripts/complete_task.js "Buy milk"
# "Flag the review task"
osascript -l JavaScript scripts/update_task.js "Review" --flag true
Output Handling
Scripts return JSON for structured data. When presenting to users:
- Parse the JSON
- Format results clearly
- Summarize counts and key information
- Highlight urgent items (overdue, due soon)
Example response format:
Found 3 overdue tasks:
• Submit Q1 report (due Jan 20)
• Review contract (due Jan 23)
• Call vendor (due Jan 24)
And 5 tasks due in the next 3 days:
• [list tasks]
Would you like me to flag or update any of these?
Error Handling
Common errors:
- Task not found - Double-check name or search first
- No tasks - Empty result, report clearly
- Invalid date - Use YYYY-MM-DD format
- OmniFocus not running - Scripts require OmniFocus
Multi-Step Operations
Find then act:
# 1. Search for task
RESULTS=$(osascript -l JavaScript scripts/search_tasks.js "meeting")
# 2. Parse and identify target task name
# 3. Complete the task
osascript -l JavaScript scripts/complete_task.js "Team meeting notes"
Technical Reference
For detailed API information and advanced usage, see:
- JXA API Reference:
references/jxa-api.md- Object model and methods - Automation Guide:
references/automation-guide.md- Detailed script documentation and workflows
Read these files when:
- Building complex queries
- Understanding OmniFocus data model
- Implementing custom workflows
- Debugging scripts
Requirements
- macOS
- OmniFocus installed a
Установить omnifocus-2 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл omnifocus-2?
Manage OmniFocus tasks via JavaScript for Automation (JXA) scripts. Use when the user asks Clawdbot to interact with OmniFocus, including - (1) Adding tasks to inbox, (2) Listing or searching tasks (inbox, available, flagged, overdue, due soon), (3) Completing tasks, (4) Updating task properties (notes, due dates, flags), (5) Getting OmniFocus statistics, (6) Reporting on task status, or (7) Acting on tasks in OmniFocus based on user queries.
Как установить скилл omnifocus-2?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл omnifocus-2 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic