본문으로 건너뛰기
Skillpedia
자동화20k · #10456

Shortcuts

하는 일

이 스킬은 홈 기기처럼 다른 자동화 경로가 없는 동작을 위해 macOS 단축어를 만들고, 명령줄에서 실행합니다. Apple 자체 도구만 닿는 것을 자동화하려는 Mac 사용자를 위한 스킬입니다.

사용하는 경우

  • ✓명령줄에서 HomeKit 기기를 제어하고 싶을 때.
  • ✓API가 없는 Mac 기본 동작을 자동화해야 할 때.
  • ✓이미 설정한 단축어가 무엇인지 확인하고 싶은 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Shortcuts/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“거실 온도조절기를 70도로 맞추는 Mac 단축어를 만들어 주시고, 터미널에서 실행할 수 있게 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 단축어를 데스크톱 인터페이스로 한 번 만든 뒤, 실행해서 출력을 비교하며 확인합니다. 이후 실행은 화면 조작 없이 단순한 명령줄 호출입니다.

기술 내용 (원본 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"
자주 묻는 질문

매번 화면을 클릭하나요?

아니요. 한 번 만들면 단축어는 화면 조작 없이 명령줄에서 실행됩니다.

단축어가 실행되지 않으면 왜 그런가요?

이름이 정확히 맞지 않는 경우가 많습니다. 이름은 대소문자와 띄어쓰기에 민감합니다.

무엇에 닿을 수 있나요?

홈 기기나 기본 시스템 동작처럼 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
업데이트
2026. 10. 28.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬