Skip to content
Back to skills

Test Omnifocus Operator

ASecurity

Manual-only repo workflow. Use only when explicitly invoked as test-omnifocus-operator or by SKILL.md path; do not auto-select from related requests.

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
ai-agentspythongobashtestingdebuggingdatabase

Works with

  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add HelloThisIsFlo/omnifocus-operator --skill test-omnifocus-operator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Omnifocus Operator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test Omnifocus Operator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hellothisisflo-test-omnifocus-operator/badge)](https://www.skillsdirectory.com/skills/hellothisisflo-test-omnifocus-operator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: test-omnifocus-operator
description: Manual-only repo workflow. Use only when explicitly invoked as test-omnifocus-operator or by SKILL.md path; do not auto-select from related requests.
disable-model-invocation: true
allowed-tools: Bash, Read, Write, Edit, Glob, Grep, mcp__omnifocus-operator__get_all
---

# Test OmniFocus Operator

## What this skill does

Tests the `get_all` MCP tool against the user's live OmniFocus database, then
builds a minimal snapshot file that covers every field value at least once. The
snapshot serves as a compact reference for what the real data looks like — useful
for debugging, testing model changes, and verifying schema migrations.

The key insight is **coverage**: rather than grabbing random items, we select the
fewest items that together exercise every null/non-null field, every boolean
true/false, and every enum value. Gaps that can't be covered (because the value
doesn't exist anywhere in the database) are flagged for manual investigation.

## Prerequisites

- OmniFocus must be running
- The `mcp__omnifocus-operator__get_all` MCP tool must be available

## Workflow

### Step 1 — Call get_all and report counts

Call `mcp__omnifocus-operator__get_all` with no arguments. The result will be
large (millions of characters) and gets saved to a temp file automatically. Note
the file path — it's the input for subsequent steps.

Report item counts so the user can sanity-check:
```
tasks: N, projects: N, tags: N, folders: N, perspectives: N
```

### Step 2 — Build the covering snapshot

Use the bundled script to automatically select the minimum covering set:

```bash
python .claude/skills/test-omnifocus-operator/scripts/analyze_snapshot.py \
  "$RESULT_FILE" \
  --build-cover
```

The output file is automatically timestamped (e.g.,
`snapshot-sample-live-20260307-110400.json`) so it never overwrites previous
snapshots. You can override with `--output <path>` if needed.

The script handles everything: greedy set-cover for null fields, boolean
true/false coverage, and enum value coverage. It prints per-entity selection
counts and a verification report.

### Step 3 — Review the report with the user

The script's output distinguishes:

- **OK** — all coverable values are represented
- **Uncoverable nulls** — a field is null across the entire database (no item
  can cover it). This may indicate a bridge bug or a field OmniFocus never
  populates for this entity type.
- **Uncoverable booleans** — a boolean value (true or false) never appears in
  the entire database
- **MISSED gaps** — a value exists in the database but wasn't selected. This
  means the script has a bug — report it.

Walk the user through any gaps. Uncoverable gaps are worth investigating:
- Could be a bridge serialization bug (field always emits null)
- Could be a field that OmniFocus structurally never populates for that entity
- Could be a boolean that's always one value by design

### Step 4 — Compare with previous snapshots (if they exist)

Check `.sandbox/` for existing snapshots (`snapshot-sample.json`,
`snapshot-sample-live.json`). If found, briefly compare schemas:

- New fields added?
- Fields removed?
- Field type changes? (e.g., `status` replaced by `urgency`/`availability`)
- Different enum values?

Note differences for the user — these confirm that a migration worked or
highlight unexpected changes.

### Step 5 — Analyze the snapshot independently (optional)

If the user wants to verify an existing snapshot without rebuilding, or check a
snapshot against the full database:

```bash
# Analyze a snapshot on its own (no full-DB comparison)
python .claude/skills/test-omnifocus-operator/scripts/analyze_snapshot.py \
  .sandbox/snapshot-sample-live.json

# Analyze with full-DB reference (shows uncoverable vs missed)
python .claude/skills/test-omnifocus-operator/scripts/analyze_snapshot.py \
  .sandbox/snapshot-sample-live.json \
  --full-db "$RESULT_FILE"
```

## Script reference

The analysis script lives at:
```
.claude/skills/test-omnifocus-operator/scripts/analyze_snapshot.py
```

**Modes:**
- `analyze_snapshot.py <file>` — analyze coverage of a snapshot
- `analyze_snapshot.py <file> --full-db <full.json>` — analyze with uncoverable detection
- `analyze_snapshot.py <full.json> --build-cover --output <out.json>` — build minimal covering set

**How enum detection works:** Two sources, combined:
1. **Schema-based** — the script imports `omnifocus_operator.models.enums` at
   runtime to get the authoritative enum values (Urgency, Availability,
   TagAvailability, FolderAvailability). This catches values that don't happen to exist in
   the current database (e.g., `due_soon` when no tasks are due soon).
2. **Data heuristic** — a string field with <= 20 distinct values AND a low
   uniqueness ratio (< 5%) is also treated as an enum. This catches enum-like
   fields not in the registry.

If the source import fails (e.g., running outside the repo), the script falls
back to data-only heuristics with a warning.

**How the covering algorithm works:**
1. Greedy null coverage — repeatedly pick the item that covers the most remaining null fields
2. Boolean coverage — for each boolean field, ensure both true and false appear
3. Enum coverage — for each enum field, ensure every value from the schema and DB appears

Files in this skill

  • SKILL.md5.2 KB
  • scripts/analyze_snapshot.py35.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.