omnifocus-mcp: Skill for Claude Code

.claude/skills/applescript-omnifocus/SKILL.md

applescript-omnifocus is a skill for Claude Code from s-morgan-jeffries/omnifocus-mcp. It costs 69 tokens per session (1,631 once invoked), scanned A, original, MIT.

A set of instructions for writing AppleScript that controls OmniFocus, a task and project management app on Apple devices. It covers common scripting problems involving task properties, text, repeating tasks, dates, and connector methods.

In plain words
What is it for?
Creating, changing, and debugging OmniFocus automation, including recurring tasks, rich text, dates, variable names, and new connector methods.
Why use it?
It helps avoid AppleScript mistakes that can silently read the wrong value or change OmniFocus data incorrectly. It also documents limitations and formatting details that are easy to miss.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is s-morgan-jeffries/omnifocus-mcp's own configuration. It tells Claude Code how to work on omnifocus-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything omnifocus-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to s-morgan-jeffries/omnifocus-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/s-morgan-jeffries/omnifocus-mcp/main/.claude/skills/applescript-omnifocus/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/s-morgan-jeffries/omnifocus-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for applescript-omnifocus

README.md
[![agentmods](https://agentmods.dev/badge/skills/s-morgan-jeffries/omnifocus-mcp/applescript-omnifocus/github.svg)](https://agentmods.dev/skills/s-morgan-jeffries/omnifocus-mcp/applescript-omnifocus)
Your own site
<a href="https://agentmods.dev/skills/s-morgan-jeffries/omnifocus-mcp/applescript-omnifocus"><img src="https://agentmods.dev/badge/skills/s-morgan-jeffries/omnifocus-mcp/applescript-omnifocus/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for applescript-omnifocus

Your own site · 80×15
<a href="https://agentmods.dev/skills/s-morgan-jeffries/omnifocus-mcp/applescript-omnifocus"><img src="https://agentmods.dev/badge/skills/s-morgan-jeffries/omnifocus-mcp/applescript-omnifocus.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,631 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.01631
Opus 5 $0.00034 $0.00816
Sonnet 5 $0.00014 $0.00326
Haiku 4.5 $0.00007 $0.00163

Measured 10d ago against content hash 628c4b016763, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

applescript-omnifocus scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

This is more reliable than catching `subprocess.CalledProcessError`, which doesn't always contain useful error messages from OmniFocus.
.claude/skills/applescript-omnifocus/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AppleScript + OmniFocus Patterns

This skill covers the hard-won knowledge about scripting OmniFocus via AppleScript. These are not obvious from documentation and have caused real bugs in this project.

Critical: Variable Naming Conflicts

OmniFocus AppleScript has a dangerous quirk: if you use a variable name that matches an OmniFocus property, AppleScript silently reads the property instead of your variable.

Bug-causing names (NEVER use as variables): name, note, status, flagged, completed, sequential, due date, defer date, estimated minutes, repetition rule, repetition method

Safe naming pattern: Always prefix with the entity type:

-- BAD: "name" collides with OmniFocus property
set name to "My Task"
set name of theTask to name  -- reads property of theTask, not your variable!

-- GOOD: prefixed variable name
set taskName to "My Task"
set name of theTask to taskName  -- works correctly

Real bug from this project: A variable called status inside a tell task block caused OmniFocus to read the task's status property instead of the variable value, producing silent data corruption. The elifintervalDays typo story: unit tests passed because they mocked AppleScript, but integration tests against real OmniFocus caught the variable collision. This is why integration tests exist.

Rich Text Notes Limitation

OmniFocus stores notes as rich text internally. The AppleScript API exposes this inconsistently:

  • Reading: note of task returns plain text (stripped of formatting)
  • Writing: set note of task to "text" replaces the entire note with plain text, destroying any rich text formatting

There is no workaround. You cannot preserve rich text through the AppleScript API. Document this to users and warn when overwriting notes.

Recurring Task Completion

Two ways to complete a task — only one handles recurrence correctly:

-- CORRECT: Creates next occurrence for recurring tasks
mark complete theTask

-- WRONG: Just marks this instance done, no next occurrence spawned
set completed of theTask to true

Read the full file on GitHub · 165 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 165 lines · 69 tokens per session scan A 628c4b016763

Subscribe to this mod's changes

applescript-omnifocus is a skill published in the GitHub repository s-morgan-jeffries/omnifocus-mcp (7 stars, last pushed 4mo ago), licensed MIT. It adds 69 tokens to every session and 1,631 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories