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
累计下载
4,001
星标
2
全站排名
#2,559
全站前 51% · 「生活服务」前 39%
平台累计安装累计下载星标评论
ClawHub ↗1253,7312-
SkillHub ↗1254,0012—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

它支持查询任务、创建项目或标签,以及修改名称、备注、截止日期、重复规则和完成状态。删除操作可能永久移除数据;执行修改前应核对任务 ID 和拟议变更,并在删除前明确征得用户确认。

资料发布于 2026-10-29

可以用来做什么

  • 查看收件箱、项目或到期任务
  • 整理任务的标签、日期或重复安排

什么时候用

  • OmniFocus 已安装并运行,且用户授权本地自动化访问时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

先列出某个项目中的任务,不要更改内容。
展示拟删除任务的匹配结果和 ID,并等待我明确确认。

月度数据趋势

累计下载4,001
3,1463,6054,0642026-05 · 累计下载 3,2092026-06 · 累计下载 3,3392026-07 · 累计下载 3,5562026-08 · 累计下载 3,6492026-09 · 累计下载 4,00126-0526-09
星标2
1232026-05 · 星标 22026-06 · 星标 22026-07 · 星标 22026-08 · 星标 22026-09 · 星标 226-0526-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-094,001—2
2026-083,649+2.6%2
2026-073,556+6.5%2
2026-063,339+4.1%2
2026-053,209—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),按月更新。口径说明见数据方法。