OmniFocus
name: omnifocus
by coyote-git · published 2026-03-22
$ claw add gh:coyote-git/coyote-git-omnifocus-automation---
name: omnifocus
description: Manage OmniFocus tasks, projects, and folders via Omni Automation. Use for task management, to-do lists, project tracking, GTD workflows, adding/completing/editing tasks, setting due dates, managing tags, and recurring tasks. Requires OmniFocus installed on macOS.
---
# OmniFocus
Control OmniFocus via JXA (JavaScript for Automation).
Requirements
Quick Reference
# Run via the wrapper script
./scripts/of <command> [args...]
# Or directly
osascript -l JavaScript ./scripts/omnifocus.js <command> [args...]Commands
List/Query
| Command | Description |
|---------|-------------|
| `inbox` | List inbox tasks |
| `folders` | List all folders |
| `projects [folder]` | List projects, optionally filtered by folder |
| `tasks <project>` | List tasks in a project |
| `tags` | List all tags |
| `today` | Tasks due today or overdue |
| `flagged` | Flagged incomplete tasks |
| `search <query>` | Search tasks by name |
| `info <taskId>` | Full task details |
Create
| Command | Description |
|---------|-------------|
| `add <name> [project]` | Add task to inbox or project |
| `newproject <name> [folder]` | Create project |
| `newfolder <name>` | Create top-level folder |
| `newtag <name>` | Create or get tag |
Modify
| Command | Description |
|---------|-------------|
| `complete <taskId>` | Mark complete |
| `uncomplete <taskId>` | Mark incomplete |
| `delete <taskId>` | Permanently delete |
| `rename <taskId> <name>` | Rename task |
| `note <taskId> <text>` | Append to note |
| `setnote <taskId> <text>` | Replace note |
| `defer <taskId> <date>` | Set defer date (YYYY-MM-DD) |
| `due <taskId> <date>` | Set due date |
| `flag <taskId> [true\|false]` | Set flagged |
| `tag <taskId> <tag>` | Add tag (creates if needed) |
| `untag <taskId> <tag>` | Remove tag |
| `move <taskId> <project>` | Move to project |
Repeat
# repeat <taskId> <method> <interval> <unit>
of repeat abc123 fixed 1 weeks
of repeat abc123 due-after-completion 2 days
of repeat abc123 defer-after-completion 1 months
of unrepeat abc123Methods: `fixed`, `due-after-completion`, `defer-after-completion`
Units: `days`, `weeks`, `months`, `years`
Output Format
All commands return JSON. Success responses include `"success": true`. Errors include `"error": "message"`.
{
"success": true,
"task": {
"id": "abc123",
"name": "Task name",
"note": "Notes here",
"flagged": false,
"completed": false,
"deferDate": "2026-01-30",
"dueDate": "2026-02-01",
"project": "Project Name",
"tags": ["tag1", "tag2"],
"repeat": {"method": "fixed", "rule": "RRULE:FREQ=WEEKLY;INTERVAL=1"}
}
}Examples
# Add task to inbox
of add "Buy groceries"
# Add task to specific project
of add "Review docs" "Work Projects"
# Set due date and flag
of due abc123 2026-02-01
of flag abc123 true
# Add tags
of tag abc123 "urgent"
of tag abc123 "home"
# Create recurring task
of add "Weekly review" "Habits"
of repeat xyz789 fixed 1 weeks
# Search and complete
of search "groceries"
of complete abc123
# Get today's tasks
of todayNotes
Technical Details
This skill uses JavaScript for Automation (JXA) for most operations, with AppleScript fallbacks for tag and repeat operations (due to known JXA type conversion bugs with these specific OmniFocus APIs).
The hybrid approach provides:
**First run:** OmniFocus may prompt to allow automation access. Enable this in System Settings > Privacy & Security > Automation.
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...