本文へ移動
cccskills
無料GitHub で公開日本語紹介

Shortcuts

macOSのShortcuts.appで一度作ったショートカットをCLIから実行し、HomeKitなどAPIのない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).

danielmiessler/LifeOSスター 19,635(GitHub 19,635 + cccskills 0)

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • macOSの機能をショートカット化したいとき
  • HomeKit操作をCLIから実行したいとき
  • 登録済みショートカットを確認したいとき
  • APIのないApple機能を呼び出したいとき

日本語での紹介

できること

macOSのShortcuts.appで作成したショートカットを、LifeOSから呼び出せるようにします。HomeKitやmacOSの標準機能、アプリのアクションなど、ほかに自動化手段やAPIがないApple専用機能を扱う用途です。ショートカットの作成はコンピューター操作で一度行い、その後はCLIを使って実行できます。登録済みショートカットの一覧表示や、指定した名前の有無の確認にも対応します。実行時には入力を標準入力から渡し、最後のアクションが返す内容を受け取れます。

こんなときに便利

HomeKitの操作をコマンドから呼びたいときや、APIが用意されていないmacOSの機能をほかの処理から使いたいときに便利です。すでに作成したショートカットを実行する用途にも向いています。

使い方の例

  • 「サーモスタットの状態を返すショートカットを作って」
  • 「登録済みのショートカットを一覧にして」
  • 「温度を21にして、設定済みのショートカットを実行して」

注意点

作成にはShortcuts.appのGUI操作が必要で、CLIから新規作成はできません。実行時の名前は大文字小文字や空白も含めて登録名と一致させる必要があります。macOSとShortcuts.appが必要です。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(6)

  • SKILL.md4.9 KB
  • Intents/BuildShortcut.md5.2 KB
  • Intents/ListShortcuts.md1.1 KB
  • Intents/RunShortcut.md1.4 KB
  • Setup.md2.9 KB
  • Tools/Shortcuts.ts3.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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

IntentTriggerFile
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 shortcutIntents/RunShortcut.md
ListShortcuts"list shortcuts", "what shortcuts exist", "does X exist"Intents/ListShortcuts.md
FileRead when
Setup.mdfirst-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"

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

AnnualReports

無料概要あり

複数ベンダーの年次サイバーセキュリティ報告書を探して取得し、脅威やランサムウェア、侵害統計の傾向を出典付きで比較・分析します。

  • 脅威レポートをカテゴリ別に探したいとき
  • 特定ベンダーの報告書を取得したいとき
  • ランサムウェア動向を複数社で比較したいとき
danielmiessler/LifeOS2万2026年10月28日 更新

ApertureOscillation

無料概要あり

個別の機能や部品の設計と、システム全体の目的を同じ問いで比較し、両者の食い違い、適切な実装範囲、全体との整合性を3段階で整理するスキルです。

  • サービスやライブラリの分割判断
  • 機能要求と製品方針を比較したいとき
  • 新しい部品と既存システムの整合性確認
danielmiessler/LifeOS2万2026年10月28日 更新

Aphorisms

無料概要あり

文章のテーマに合う格言や引用を探し、著者・出典と選定理由を添えて提案します。引用の追加、思想家の調査、利用履歴の管理を通じて、同じ引用の繰り返しも防ぎます。

  • ニュースレター向けの引用探し
  • 出典付きの引用を重複なく保存
  • 思想家の言葉をテーマ別に調査
danielmiessler/LifeOS2万2026年10月28日 更新

Art

無料概要あり

ブログの挿絵や技術図解、比較図、マンガ、アイコンなどを用途別の手順で制作します。形式に合う構図や配色を組み立て、確認用の画像を出力します。

  • ブログの見出し画像を作りたいとき
  • システムの仕組みを図解したいとき
  • 比較や時系列を可視化したいとき
danielmiessler/LifeOS2万2026年10月28日 更新

ArtDirection

無料概要あり

画像や映像、スライド、サイト画面の品質を複数の判定役で評価し、修正点の整理から基準を満たした成果物の引き渡しまで進めます。

  • 画像の修正点を優先順に整理したいとき
  • 映像やスライドを基準に沿って評価したいとき
  • 公開前に見た目が基準を満たすか確認したいとき
danielmiessler/LifeOS2万2026年10月28日 更新

ArXiv

無料概要あり

arXivの論文をテーマ・分野・論文IDで探し、著者や要旨、リンクをまとめます。新着論文の確認や、用意されている場合はAlphaXivのAI生成概要の取得にも対応します。

  • AI・機械学習の新着論文の確認
  • 特定テーマの論文を探したいとき
  • 論文IDやarXivのURLで照会
danielmiessler/LifeOS2万2026年10月28日 更新

danielmiessler のスキルをすべて見る

このスキルの問題を報告する