Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

raycast

БесплатноБез исполняемых скриптовНе проверен

Raycast is a keyboard-driven launcher for macOS and Windows that you extend with React and TypeScript commands. Use this skill to build Raycast extensions…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Raycast — Launcher Extension Development

Overview

A Raycast extension is a Node.js project of React components that Raycast renders natively (no DOM, no CSS). Each command in package.json maps to a file in src/. The API package is @raycast/api (2.x today, which requires Node 22 or newer) and the helper hooks live in @raycast/utils (useFetch, useCachedPromise, useForm, showFailureToast). Extensions run on macOS and Windows; declare which in the manifest platforms field. The public store lives in the raycast/extensions repository.

Instructions

Create and run an extension

Scaffold with the Create Extension command inside Raycast (pick a template such as Detail or List), then:

cd ~/Developer/github-tools
npm install
npm run dev        # ray develop: hot reload, extension appears in root search
npm run build      # ray build -e dist: validates a production build
npm run lint       # ray lint: ESLint over src/
npm run publish    # verifies, builds and opens a pull request to raycast/extensions
npx ray migrate    # upgrade to the latest @raycast/api after a major release

npm run dev runs until you press Ctrl+C; the extension stays installed afterwards. Run npm run build before every submission.

Manifest

package.json is the manifest. Required extension fields: name, title, description, icon (512x512 PNG; add [email protected] for dark mode), author (your Raycast Store handle), platforms, categories. Required command fields: name (matches src/<name>.tsx), title, description, mode.

{
  "name": "github-tools",
  "title": "GitHub Tools",
  "description": "Search repositories, file issues and watch notifications",
  "icon": "github-icon.png",
  "author": "mira_kowalski",
  "platforms": ["macOS", "Windows"],
  "categories": ["Developer Tools"],
  "license": "MIT",
  "commands": [
    { "name": "search-projects", "title": "Search Projects", "description": "Search and open your repositories", "mode": "view" },
    { "name": "create-issue", "title": "Create Issue", "description": "Create a GitHub issue", "mode": "view" },
    { "name": "menu-bar", "title": "GitHub Notifications", "description": "Unread notifications in the menu bar", "mode": "menu-bar", "interval": "5m" }
  ],
  "preferences": [
    { "name": "githubToken", "title": "GitHub Token", "description": "Personal access token with repo scope", "type": "password", "required": true }
  ]
}

Command mode is view, no-view or menu-bar. interval (minimum 1m, units s/m/h/d) only works for no-view and menu-bar commands. Preference types: textfield, password, checkbox, dropdown, appPicker, file, directory. Categories are Title Case and case sensitive (for example Developer Tools, Productivity, Web, Other).

Lists, details, forms

A List takes List.Item children, each with an ActionPanel; the first action runs on Enter. useFetch handles loading state, caching and revalidation. mapResult receives the parsed response and must return { data }.

Cache and LocalStorage

Cache stores strings only: new Cache({ namespace, capacity }), then get, set(key, string), has, remove, clear. It has no TTL option (it evicts least-recently-used entries past capacity, default 10 MB), so store a timestamp if you need expiry. LocalStorage is async and keeps user data across runs.

Examples

Example 1: "Search my GitHub repos from Raycast"

// src/search-projects.tsx
import { List, Action, ActionPanel, Icon, Color, getPreferenceValues } from "@raycast/api";
import { useFetch } from "@raycast/utils";

interface Repo { id: number; name: string; html_url: string; language: string | null; stargazers_count: number; pushed_at: string }

export default function SearchProjects() {
  const { githubToken } = getPreferenceValues<Preferences>();
  const { data, isLoading } = useFetch("https://api.github.com/user/repos?sort=pushed&per_page=50", {
    headers: { Authorization: `Bearer ${githubToken}`, Accept: "application/vnd.github+json" },
    mapResult: (repos: Repo[]) => ({ data: repos }),
    keepPreviousData: true,
    initialData: [] as Repo[],
  });

  return (
    <List isLoading={isLoading} searchBarPlaceholder="Search your repos...">
      {data.map((repo) => (
        <List.Item
          key={repo.id}
          title={repo.name}
          subtitle={repo.language ?? ""}
          icon={{ source: Icon.Code, tintColor: Color.Blue }}
          accessories={[{ text: `${repo.stargazers_count} stars` }, { date: new Date(repo.pushed_at), tooltip: "Last push" }]}
          actions={
            <ActionPanel>
              <Action.OpenInBrowser url={repo.html_url} title="Open on GitHub" />
              <Action.CopyToClipboard content={`git clone ${repo.html_url}.git`} title="Copy Clone Command" />
            </ActionPanel>
          }
        />
      ))}
    </List>
  );
}

Preferences is a global type that `npm run de

Полный SKILL.md на GitHub

Установить raycast в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл raycast?

Raycast is a keyboard-driven launcher for macOS and Windows that you extend with React and TypeScript commands. Use this skill to build Raycast extensions - list, detail and form views, menu bar commands, preferences, caching - with @raycast/api and @raycast/utils, test them with `npm run dev`, and submit them to the Raycast Store.

Как установить скилл raycast?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл raycast запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить raycast с