omnifocus-mcp: Skill for Claude Code

.claude/skills/performance-patterns/SKILL.md

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

Guidance for making OmniFocus MCP operations faster. OmniFocus is a task-management app, and MCP is a standard way for an AI agent to call external tools.

In plain words
What is it for?
Optimizing task and project retrieval, removing repeated per-item requests, filtering data early, setting operation timeouts, and checking safety before destructive changes.
Why use it?
It reduces delays caused by repeated AppleScript subprocess calls and avoids fetching more data than an operation needs. It also documents timeouts and safety checks for destructive actions.

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/performance-patterns/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 performance-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/s-morgan-jeffries/omnifocus-mcp/performance-patterns.svg)](https://agentmods.dev/skills/s-morgan-jeffries/omnifocus-mcp/performance-patterns)
Your own site
<a href="https://agentmods.dev/skills/s-morgan-jeffries/omnifocus-mcp/performance-patterns"><img src="https://agentmods.dev/badge/skills/s-morgan-jeffries/omnifocus-mcp/performance-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,395 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00064 $0.01395
Opus 5 $0.00032 $0.00698
Sonnet 5 $0.00013 $0.00279
Haiku 4.5 $0.00006 $0.00139

Measured 8d ago against content hash 917d7b92a80c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

performance-patterns scanned grade A with 0 findings 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/performance-patterns/SKILL.md · 121 lines

How it starts

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

OmniFocus MCP Performance Patterns

AppleScript round-trips via osascript are the dominant performance cost. Every optimization in this project reduces the number of subprocess calls.

Known Operation Timings

Operation Time Notes
Single osascript call overhead 100-300ms Minimum cost per subprocess
get_tasks() — 188 tasks, no filters ~2.3s Baseline with full property extraction
get_projects() — 33 projects ~0.9s After N+1 fix
get_projects() — 33 projects (BEFORE fix) ~7.6s N+1 pattern: 1 call per project
Individual task update 200-400ms Single property change
get_tasks() with overdue filter ~0.3s Filter-first eliminates non-matching tasks early
Database safety check ~100ms Runs before every destructive operation

Timeout defaults: 60s standard, 300s maximum. Configurable per operation.

Pattern 1: Eliminate N+1 Queries

The most impactful optimization in this project. Before the fix, filtering projects by their tasks required one AppleScript call per project:

# BAD: N+1 pattern (33 projects = 33 calls = 7.6s)
for project in projects:
    tasks = get_tasks(project_id=project.id)  # 230ms each!
    if meets_filter(tasks):
        results.append(project)

# GOOD: Batch pattern (33 projects = 1 call = 0.9s)
all_tasks_by_project = _get_tasks_batch_for_filtering()  # Single call
for project in projects:
    tasks = all_tasks_by_project.get(project.id, [])
    if meets_filter(tasks):
        results.append(project)

Implementation: _get_tasks_batch_for_filtering() fetches minimal data (id, projectId, dueDate) for ALL tasks in one AppleScript call, returning a {projectId: [tasks]} dictionary.

Result: 8.5x faster (7.6s -> 0.9s for 33 projects). Scales linearly — 500 projects would go from 115s to 13.5s.

Apply this pattern whenever you need to cross project boundaries for filtering or aggregation.

Pattern 2: Conditional Filter-First Architecture

Read the full file on GitHub · 121 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. 8d ago First seen · 121 lines · 64 tokens per session scan A 917d7b92a80c

Subscribe to this mod's changes

performance-patterns is a skill published in the GitHub repository s-morgan-jeffries/omnifocus-mcp (7 stars, last pushed 4mo ago), licensed MIT. It adds 64 tokens to every session and 1,395 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. 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

opik-diagnose

Surface the Opik traces worth a developer's attention, ranked by signal — Diagnostics issues first, then errors, failed tool calls, latency, regressions, and low online-eval scores. With the Opik MCP connected it lists the project's agentinsightsissue entities, then fills the gaps with list (filters, sort, a time…

comet-ml/opik-mcp · 174 tokens

cortex-explore-memory

Explore the memory system's state, find gaps in knowledge, assess coverage, and get diagnostic information. Use when the user asks 'what does my memory look like', 'show me memory stats', 'what am I missing', 'how good is my knowledge', 'memory health', 'show coverage', 'find gaps', 'what topics are weak', or when you…

cdeust/Cortex · 91 tokens

quick-capture

Use this skill to drop a new task into GSD Task Manager from any AI assistant that has the gsd-mcp-server connected.

vscarpenter/gsd-task-manager · 0 tokens

event-staffing-ordering

Order W-2 event staff for US/CA events through TempGuru.

Tempguru-co/tempguru-mcp · 22 tokens

chainstack

Work with the Chainstack MCP server to manage blockchain nodes and projects. Use when deploying nodes, migrating to Chainstack from another RPC provider such as QuickNode or Alchemy, checking platform status, searching Chainstack docs, contacting the Chainstack team, or interacting with the Chainstack platform API via…

chainstacklabs/mcp-server · 66 tokens

delegacion-local

Regla y catálogo para delegar pasos mecánicos (resumir, clasificar, extraer, boilerplate, mensaje de commit desde un diff, traducir texto o archivo, resumir salida de lint/tests/CI, explicar código, describir una imagen, verificar si el backend local está disponible) a modelos locales vía las tools local del MCP…

ZahiriNatZuke/local-delegate · 137 tokens