Shortcuts
Ce qu’il fait
Ce skill crée des Raccourcis macOS pour les actions qui n'ont pas d'autre voie d'automatisation, comme les appareils de la maison, puis les lance en ligne de commande. Il s'adresse aux utilisateurs de Mac qui veulent automatiser ce que seuls les outils d'Apple peuvent atteindre.
Quand l’utiliser
- ✓Quand vous voulez contrôler un appareil HomeKit en ligne de commande.
- ✓Quand vous avez besoin d'automatiser une action native de Mac qui n'a pas d'API.
- ✓Quand vous voulez vérifier quels Raccourcis vous avez déjà configurés.
Lien du skill
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Shortcuts/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Crée un raccourci Mac qui règle mon thermostat du salon à 21 degrés, puis laisse-moi le lancer depuis le terminal.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Le skill construit le raccourci une fois via l'interface du bureau, puis le vérifie en l'exécutant et en comparant le résultat. Les exécutions suivantes sont de simples appels en ligne de commande, sans contrôle de l'écran.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Shortcuts
Turn GUI-only macOS Shortcuts into callable LifeOS automation. Shortcuts reaches Apple-only surfaces (HomeKit/Home, native system actions, app intents) that have no other automation path. Computer use is slow and pixel-fragile, while the shortcuts CLI is fast and deterministic but can only run shortcuts, never build them. So each capability is built once (BuildShortcut) and is plain CLI from then on (RunShortcut, through Tools/Shortcuts.ts). This is CLI-first doctrine applied to the no-API problem.
Ideal State
- Each Apple-only capability is built once as a Shortcut under the exact name its consumers call, and is proven by a
runwhose output matches the spec, never by how the editor looks. - Every later use is plain CLI through
Tools/Shortcuts.tsorshortcuts run, with no pixels and no computer use. - A failed run or missing shortcut is diagnosed against the exact registered names, so a case or whitespace mismatch is caught before anything is rebuilt.
Intent Routing
| Intent | Trigger | File |
|---|---|---|
| BuildShortcut | "build a shortcut", "create a shortcut", "set up the X shortcut" | Intents/BuildShortcut.md |
| RunShortcut | "run the X shortcut", "invoke X", any consumer calling a built shortcut | Intents/RunShortcut.md |
| ListShortcuts | "list shortcuts", "what shortcuts exist", "does X exist" | Intents/ListShortcuts.md |
| File | Read when |
|---|---|
Setup.md |
first-time setup, a worked example of adding your own shortcut, and the read-only proof commands |
Gotchas
- Creation is GUI-only: there is no
shortcuts create. TheshortcutsCLI runs, lists, and views, but cannot author. Never claim a shortcut was "built" via CLI. - Name matching is exact, case and spaces included.
shortcuts run "Casa Set Zone 1 Temp"fails silently-ish (nonzero exit) if the registered name iscasa set zone 1 tempor has a trailing space. Confirm withexistsafter building, register the exact string a consumer expects, and on a nonzerorunwith no clear error, diff the target string againstlistbefore rebuilding anything. - Input arrives on stdin; output is whatever the last action returns. The CLI pipes
--inputto the shortcut's stdin and captures the final action's output on stdout; without a final output action, stdout comes back empty.
Data & Config
The skill keeps no per-user data. Shortcut names belong to the consumer that calls them: a home-control skill, for example, builds its thermostat names from thermostat_shortcut_prefix and thermostat_room lines in its own Config.md. There is no config file for this skill. First-time setup, a worked example and a read-only proof: Setup.md.
The frontmatter evals check (list) proves this skill on its own. A consumer that depends on a particular shortcut name can check it with Tools/Shortcuts.ts exists "<name>", which exits 1 when that name is not registered.
Examples
Example 1: Build the thermostat status shortcut
User: "build the thermostat status shortcut"
→ BuildShortcut, authored through Skill("ComputerUse", "Drive") --app Shortcuts
→ "<prefix> Thermostat Status" exists, reads every thermostat through Home actions,
and `bun Tools/Shortcuts.ts run "<prefix> Thermostat Status"` returns
"Zone 1 21 heating, Zone 2 20 idle"
Example 2: A consumer runs a built shortcut
A home-control skill's thermostat script calls `shortcuts run "<prefix> Set Zone 1 Temp"`
with "21" on stdin → RunShortcut path → deterministic, no computer use
Example 3: Check what's there
User: "do my <prefix> shortcuts exist yet?"
→ ListShortcuts: bun Tools/Shortcuts.ts list | rg "<prefix>"
→ the matching names, or a plain "not built yet"
Questions fréquentes
Doit-il cliquer sur mon écran à chaque fois ?
Non. Une fois créé, le raccourci s'exécute en ligne de commande sans contrôle de l'écran.
Pourquoi mon raccourci ne s'est-il pas lancé ?
Souvent parce que le nom ne correspond pas exactement, car les noms sont sensibles aux majuscules et aux espaces.
Que peut-il atteindre ?
Les fonctions réservées à Apple, comme les appareils de la maison et les actions système natives.
Détails
Description originale de l’auteur
Bridges macOS Shortcuts.app into LifeOS: build a Shortcut once via computer use, then call it as a CLI to reach Apple-only capabilities like HomeKit. USE WHEN build a shortcut, create a shortcut, macOS shortcut, shortcuts app, run a shortcut, automate a native mac task, HomeKit automation that needs a shortcut, thermostat shortcuts, control home from CLI, wrap an Apple-only action, no API for this app. NOT FOR web automation (Interceptor), shell-scriptable tasks (Bash), devices reachable by API (Home / Network).
repo: danielmiessler/LifeOS
Popularité
- Étoiles GitHub
- 20k
- Position au classement
- #10456
- Licence
- MIT
- Mis à jour
- 28/10/2026
Commentaires
- …
Autres skills de ce dépôt
LifeOS
20kAide votre agent à mettre en place LifeOS, un système personnel qui fait le lien entre votre situation actuelle et votre situation idéale, grâce à un entretien et à un tableau de bord.
AnnualReports
20kAide votre agent à trouver et comparer les rapports annuels de cybersécurité des grands éditeurs, comme les tendances de fuites de données et de rançongiciels, avec une source pour chaque chiffre.
ApertureOscillation
20kApprend à votre agent à tester une question de conception à une échelle étroite puis à une échelle large, et à nommer les points où les deux réponses se contredisent avant de construire.
Aphorisms
20kPermet à votre agent de trouver, d'associer et de suivre des citations attribuées issues d'une collection choisie, en évitant celles utilisées récemment dans votre newsletter.
Skills similaires
knowledge-automation
394kAide votre agent à configurer une tâche récurrente qui ajoute du nouveau contenu à votre coffre Knowledge selon un calendrier, puis vérifie qu'elle fonctionne.
knowledge-source-ingest
394kAide votre agent à tenir un coffre Knowledge à jour avec les nouveaux éléments de canaux de discussion, de flux ou de boîtes mail, sans rajouter ce qui existe déjà.
benchmark
280kAide votre agent à mesurer la vitesse et les performances du code. Utile pour s'assurer que tout est rapide et repérer les lenteurs.