Coyote-git

OmniFocus Automation

生活服務v1.0.0
作者:Coyote-git更新於 2026-05-17omnifocus-automation@clawhub_coyote-git/omnifocus-automation
個人計劃#Task Management

據 AlphaMoat 統計,截至 2026-09,OmniFocus Automation 累計下載 4,001 次、獲 2 個星標,在全部 5,078 個 AI 技能中排名第 2,559 位,在「生活服務」分類(246 個)中排名第 95 位。

累計安裝
125
累計下載
4001
星標
2
全站排名
#2,559
全站前 51% · 「生活服務」前 39%
平台累計安裝累計下載星標評論
ClawHub ↗12537312-
SkillHub ↗12540012—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

它支援查詢任務、建立專案或標籤,以及修改名稱、備註、截止日期、重複規則和完成狀態。刪除操作可能永久移除資料;執行修改前應核對任務 ID 和擬議變更,並在刪除前明確徵得使用者確認。

資料釋出於 2026-10-29

可以用來做什麼

  • 檢視收件箱、專案或到期任務
  • 整理任務的標籤、日期或重複安排

什麼時候用

  • OmniFocus 已安裝並執行,且使用者授權本地自動化訪問時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

先列出某個專案中的任務,不要更改內容。
展示擬刪除任務的匹配結果和 ID,並等待我明確確認。

月度資料趨勢

累計下載4001
3146360540642026-05 · 累計下載 32092026-06 · 累計下載 33392026-07 · 累計下載 35562026-08 · 累計下載 36492026-09 · 累計下載 400126-0526-09
星標2
1232026-05 · 星標 22026-06 · 星標 22026-07 · 星標 22026-08 · 星標 22026-09 · 星標 226-0526-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094001—2
2026-083649+2.6%2
2026-073556+6.5%2
2026-063339+4.1%2
2026-053209—2

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

3.9 KB · ClawHub v1.0.0
---
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
展開全部(共 149 行)

- macOS with OmniFocus 3 or 4 installed
- OmniFocus must be running (or will auto-launch)

## Quick Reference

```bash
# 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

```bash
# 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 abc123
```

Methods: `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"`.

```json
{
  "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

```bash
# 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 today
```

## Notes

- Task IDs are OmniFocus internal IDs (returned in all task responses)
- Dates use ISO format: YYYY-MM-DD
- Project and folder names are case-sensitive
- Tags are created automatically if they don't exist when using `tag` command
- All output is JSON for easy parsing

## 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:
- JSON output for easy parsing
- Robust escaping for special characters in tag names
- Error handling with clear messages

**First run:** OmniFocus may prompt to allow automation access. Enable this in System Settings > Privacy & Security > Automation.

「生活服務」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。