jpskill.com
💬 コミュニケーション コミュニティ

raycast

Best practices and workflows for developing and modifying Raycast Extensions (React/Node). Use when the user asks to create, update, or troubleshoot a Raycast extension, whether it interfaces with external APIs (Notion, Spotify) or executes local scripts (AppleScript, Keyboard Maestro).

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o raycast.zip https://jpskill.com/download/9738.zip && unzip -o raycast.zip && rm raycast.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/9738.zip -OutFile "$d\raycast.zip"; Expand-Archive "$d\raycast.zip" -DestinationPath $d -Force; ri "$d\raycast.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して raycast.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → raycast フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1
📖 Claude が読む原文 SKILL.md(中身を展開)

この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。

Raycast Extension Development

This skill defines the preferred workflow and best practices for building, modifying, and troubleshooting custom Raycast extensions.

1. Scaffolding & Setup

  • Preferred Method (Duplication): The fastest way to start a new extension is often duplicating the folder of an existing extension. If you do this, you must carefully update the package.json:
    • "name"
    • "title"
    • "description"
    • "author"
    • "commands" array (update name, title, and description).
  • Standard Method: If not duplicating, use npx @raycast/api@latest create.
  • Local Dev: After creating/duplicating, run npm install followed by npm run dev. This automatically installs the extension in the user's Raycast app locally and starts the build watcher.

2. General UI & UX Requirements

When modifying or creating forms and commands, adhere to these standards:

  • Clean Inputs: Do not set defaultValue with placeholder characters (e.g., - for bullet points) unless explicitly requested.
  • Auto-Close on Success: After successfully completing an action (like adding a Notion page, running a system script, etc.), the extension should disappear and return the user to the root Raycast search, rather than retaining the form on-screen.
    • Import: import { popToRoot } from "@raycast/api";
    • Execute: await popToRoot({ clearSearchBar: true });
  • Icon Changes: If an extension's icon is modified (e.g., extension-icon.png), the Raycast app must be fully restarted to reflect the change. Always explicitly alert the user to "Restart Raycast" when you modify an icon.

3. Data Fetching & State

  • Use @raycast/utils: For dynamic data fetching (e.g., loading dropdown options from a Notion database, or fetching Spotify tracks), rely on useCachedPromise from the @raycast/utils library. This ensures fast initial loads and proper caching.
  • Dynamic Forms: For fields like Notion's select, multi_select, or integrations with existing playlists, dynamic Form.TagPicker or Form.Dropdown components should be populated via useCachedPromise rather than hardcoding.

4. Automation & Local Execution

When an extension requires triggering local MacOS functionality (where external APIs fall short or aren't applicable):

  • AppleScript & Keyboard Maestro: Use Node's child_process.exec to run osascript.
    • Example: exec('osascript -e \'tell application "Keyboard Maestro Engine" to do script "MACRO_ID"\'')
  • Clipboard Operations: Always use the native Clipboard utilities from @raycast/api (e.g., Clipboard.copy(text)) rather than custom bash scripts.

5. Preferences & Authentication

When building an extension that requires an external API (like Notion or Spotify):

  • Add the required secrets/tokens to the preferences array in package.json.

  • User Instructions: You must proactively remind the user to configure the token when they first load the extension. For example, provide a short snippet:

    ⚠️ Integration Required You need to provide this extension with an API Token.

    1. Go to [Link to API dashboard]
    2. Create a new token.
    3. Open Raycast, run this new command, and paste the Token in the preferences when prompted.