Shortcuts
ما الذي تفعله
تبني هذه المهارة اختصارات macOS لإجراءات لا يوجد لها مسار أتمتة آخر، مثل أجهزة المنزل، ثم تشغّلها من سطر الأوامر. وهي موجهة لمستخدمي Mac الذين يريدون أتمتة ما لا تصل إليه إلا أدوات Apple نفسها.
متى تستخدمها
- ✓عندما تريد التحكم في جهاز HomeKit من سطر الأوامر.
- ✓عندما تحتاج إلى أتمتة إجراء أصلي في Mac لا يملك واجهة برمجية.
- ✓عندما تريد معرفة الاختصارات التي أعددتها سابقاً.
رابط المهارة
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Shortcuts/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“ابنِ لي اختصار Mac يضبط منظم حرارة غرفة المعيشة على 70 درجة، ثم دعني أشغله من الطرفية.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تبني المهارة الاختصار مرة واحدة عبر واجهة سطح المكتب، ثم تتحقق منه بتشغيله ومقارنة المخرجات. وتصبح التشغيلات اللاحقة استدعاءات بسيطة من سطر الأوامر، دون الحاجة إلى التحكم بالشاشة.
المحتوى التقني (ملف 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
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"
الأسئلة الشائعة
هل تحتاج إلى النقر عبر شاشتي في كل مرة؟
لا. بعد بنائه يعمل الاختصار من سطر الأوامر دون تحكم بالشاشة.
لماذا لم يعمل اختصاري؟
غالباً لأن الاسم لا يطابق تماماً، فالأسماء حساسة لحالة الأحرف والمسافات.
ماذا يمكن أن تصل إليه؟
قدرات خاصة بـ 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
التعليقات
- …
المزيد من المهارات من هذا المستودع
LifeOS
20kيساعد وكيلك على إعداد LifeOS، وهو نظام شخصي يربط حالتك الحالية بحالتك المثالية عبر مقابلة ولوحة متابعة.
AnnualReports
20kيساعد وكيلك على إيجاد التقارير السنوية للأمن السيبراني من كبار المزودين ومقارنتها، مثل اتجاهات الاختراقات وبرامج الفدية، مع مصدر لكل رقم.
ApertureOscillation
20kيعلّم وكيلك اختبار سؤال تصميم واحد على نطاق ضيق ونطاق واسع، ثم تسمية النقاط التي تتعارض فيها الإجابتان قبل البناء.
Aphorisms
20kيساعد وكيلك على إيجاد الاقتباسات المنسوبة إلى أصحابها من مجموعة منتقاة ومطابقتها وتتبعها، مع تجنّب ما استُخدم منها مؤخراً في نشرتك.
مهارات مشابهة
knowledge-automation
394kيساعد وكيلك على إعداد مهمة متكررة تضيف المحتوى الجديد إلى خزنة Knowledge حسب جدول زمني، ثم يتحقق من أنها تعمل.
knowledge-source-ingest
394kيساعد وكيلك على إبقاء خزنة المعرفة محدّثة بالعناصر الجديدة من قنوات الدردشة أو الخلاصات أو صناديق البريد، دون إعادة إضافة ما لديه.
benchmark
280kيساعد وكيلك على قياس سرعة الشيفرة وأدائها، ويفيد في التأكد من أن الأشياء سريعة وفي إيجاد مشكلات البطء.