मुख्य सामग्री पर जाएँ
Skillpedia
ऑटोमेशन20k · #10456

Shortcuts

यह क्या करती है

यह स्किल उन कार्रवाइयों के लिए macOS Shortcuts बनाती है जिनका कोई और स्वचालन रास्ता नहीं, जैसे घर के उपकरण, और फिर उन्हें कमांड लाइन से चलाती है। यह उन Mac उपयोगकर्ताओं के लिए है जो ऐसी चीज़ें स्वचालित करना चाहते हैं जिन तक केवल Apple के अपने टूल पहुँच सकते हैं।

कब इस्तेमाल करें

  • ✓जब आप कमांड लाइन से HomeKit उपकरण नियंत्रित करना चाहते हों।
  • ✓जब आपको ऐसी मूल Mac कार्रवाई स्वचालित करनी हो जिसका कोई API न हो।
  • ✓जब आप जाँचना चाहते हों कि आपके पास कौन-से Shortcuts पहले से सेट हैं।

Skill का लिंक

https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Shortcuts/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Shortcuts/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“एक Mac shortcut बनाइए जो मेरे बैठक कक्ष के थर्मोस्टेट को 70 डिग्री पर सेट करे, फिर मुझे उसे टर्मिनल से चलाने दीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल shortcut एक बार डेस्कटॉप इंटरफ़ेस से बनाती है, फिर उसे चलाकर और आउटपुट की तुलना करके जाँचती है। बनने के बाद बाद के रन सादे कमांड लाइन कॉल होते हैं, जिनमें स्क्रीन नियंत्रण की ज़रूरत नहीं।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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 run whose output matches the spec, never by how the editor looks.
  • Every later use is plain CLI through Tools/Shortcuts.ts or shortcuts 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. The shortcuts CLI 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 is casa set zone 1 temp or has a trailing space. Confirm with exists after building, register the exact string a consumer expects, and on a nonzero run with no clear error, diff the target string against list before rebuilding anything.
  • Input arrives on stdin; output is whatever the last action returns. The CLI pipes --input to 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"
अक्सर पूछे जाने वाले सवाल

क्या हर बार मेरी स्क्रीन पर क्लिक करना पड़ता है?

नहीं। बनने के बाद shortcut बिना स्क्रीन नियंत्रण के कमांड लाइन से चलता है।

मेरा shortcut क्यों नहीं चला?

अक्सर नाम पूरी तरह मेल नहीं खाता, क्योंकि नाम अक्षरों के बड़े-छोटे होने और जगह पर संवेदनशील होते हैं।

यह किन चीज़ों तक पहुँच सकती है?

केवल Apple की क्षमताएँ, जैसे घर के उपकरण और मूल सिस्टम कार्रवाइयाँ।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
20k
रैंकिंग में स्थान
#10456
लाइसेंस
MIT
अपडेट की गई
28/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

LifeOS

20k

आपके एजेंट को LifeOS सेट करने में मदद करती है, एक निजी प्रणाली जो एक इंटरव्यू और डैशबोर्ड से आपकी मौजूदा स्थिति को आपके आदर्श लक्ष्य से जोड़ती है।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

AnnualReports

20k

आपके एजेंट को प्रमुख विक्रेताओं की साइबर सुरक्षा वार्षिक रिपोर्ट खोजने और तुलना करने में मदद करती है, जैसे उल्लंघन और ransomware के रुझान, हर आँकड़े के स्रोत के साथ।

लेखन और डॉक्यूमेंटरिसर्च

ApertureOscillation

20k

आपके एजेंट को एक डिज़ाइन सवाल को संकीर्ण और व्यापक दायरे में परखना सिखाती है, फिर बनाने से पहले बताना कि दोनों जवाब कहाँ टकराते हैं।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

Aphorisms

20k

आपके एजेंट को एक चुने हुए संग्रह से श्रेय वाले उद्धरण खोजने, मिलाने और उनका रिकॉर्ड रखने देती है, और हाल में आपके न्यूज़लेटर में इस्तेमाल हुए उद्धरण छोड़ देती है।

मार्केटिंगकॉपी और सेल्स

मिलती-जुलती skills