Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/ivancampos/agents/applescript-open-appnpx skills add IvanCampos/agents --skill applescript-open-appgit clone --depth 1 https://github.com/IvanCampos/agentsWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00061 | $0.00499 |
| Opus 5 | $0.00030 | $0.00249 |
| Sonnet 5 | $0.00012 | $0.00100 |
| Haiku 4.5 | $0.00006 | $0.00050 |
Grade A, and why
applescript-open-app 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 3d 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.
What it actually says
AppleScript Open App
Overview
Use a performance-first launch path for opening apps (open -a) with AppleScript fallback for compatibility, and AppleScript for graceful quits.
Quick Start
- Prefer
scripts/open_app.shfor a reliable one-liner interface. - Prefer
scripts/quit_app.shfor quitting an app. - Pass the app name exactly as it appears in Finder (for example, "Xcode", "Safari", "Final Cut Pro").
scripts/open_app.sh "Safari"
scripts/quit_app.sh "Discord"
Tasks
Open an app by name
- Run
scripts/open_app.sh "<App Name>". - The script uses fast LaunchServices activation first, then falls back to AppleScript activation only when needed.
- If the app is not installed, surface the AppleScript error and ask for the correct name.
Open a new instance (only when asked)
- Use
open -na "<App Name>"only if the user explicitly requests a new instance. - Otherwise use AppleScript activation.
Quit an app by name
- Run
scripts/quit_app.sh "<App Name>". - The script checks whether the app is running before sending
quit, avoiding slow error-path exits for already-closed apps. - If the app is not installed, surface the AppleScript error and ask for the correct name.
Handle ambiguous names
- If multiple apps share a name, ask for the exact display name or bundle id.
- If a bundle id is provided, use AppleScript with
application id.
osascript -e 'tell application id "com.apple.Safari" to activate'
AppleScript snippet
osascript -e 'tell application "Safari" to activate'
osascript -e 'tell application "Safari" to quit'
Resources
scripts/
open_app.sh: Fastopen -alaunch/activate with AppleScript fallback.quit_app.sh: Graceful AppleScript quit with running-state guard.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3d ago First seen · 61 lines · 61 tokens per session scan A 457983985cdd
applescript-open-app is a skill published in the GitHub repository IvanCampos/agents (5 stars, last pushed 6mo ago), licensed MIT. It adds 61 tokens to every session and 499 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.
Other skills, from other repositories
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.
github-code-review
Review PRs: diffs, inline comments via gh or REST.
plan
Plan mode: write markdown plan, no execution.
simplify-code
Sequential 3-lens cleanup of recent code changes.
skill-authoring
Author SKILL.md: frontmatter, structure, writing principles.
requesting-code-review
Pre-commit review: security scan, quality gates, auto-fix.