Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

build-raycast-script-command构建光线投射脚本命令

Agent Skill

build-raycast-script-command 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

376

周安装

16

GitHub Stars

5

下载量

132
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:build-raycast-script-command(构建光线投射脚本命令)
来源仓库:https://github.com/yigitkonur/skills-by-yigitkonur
仓库路径:skills/build-raycast-script-command
安装命令:
npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill build-raycast-script-command
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill build-raycast-script-command

简介

build-raycast-script-command 用于创建或转换 Raycast 脚本命令,支持元数据配置与参数绑定。

  • 适用于将 Python/Bash 脚本封装为 Raycast 扩展,或修复输出格式与行为异常。
  • 支持 fullOutput、compact、silent 等多种输出模式选择,提升脚本可共享性。
  • 需确认目标环境与 Raycast 版本兼容性,注意脚本权限与运行时依赖管理。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Build Raycast Script Command

Build Raycast Script Commands with correct metadata, mode selection, argument wiring, and runtime behavior.

Trigger boundary

Use this skill when the task involves:

  • Creating a new Raycast Script Command from scratch
  • Converting an existing Python or Bash script into a Raycast Script Command
  • Choosing between fullOutput, compact, silent, and inline
  • Adding or fixing Script Command arguments
  • Fixing why a Script Command does not appear in Raycast
  • Fixing output, refresh, or failure behavior in a Script Command
  • Making a Script Command more shareable or closer to Raycast community conventions

Do NOT use this skill for:

  • Full Raycast Extensions API work with @raycast/api, React, List, Grid, Form, or Detail views
  • General shell scripting that is not intended for Raycast
  • General Python scripting that has no Raycast integration

If the project already imports @raycast/api or uses ray build / ray develop, stop and use a Raycast Extensions skill instead.

Behavioral flow

Step 1: Detect what exists

Inspect the current workspace before writing anything.

Look for:

  • an existing .py or .sh file to convert
  • metadata lines such as @raycast.title
  • a request for a greenfield command vs a repair task
  • whether the command is Python-first, Bash-first, or undecided

Step 2: Choose the branch

Use this decision tree:

User request
├─ "Create a new command from scratch"
│  ├─ Python is the best fit or unspecified
│  │  → Read references/foundations/workflow.md
│  │  → Read references/python/file-anatomy.md
│  │  → Read references/metadata/mode-selection.md
│  │  → Read references/examples/python-recipes.md
│  └─ Bash is clearly the best fit
│     → Read references/foundations/workflow.md
│     → Read references/bash/bash-script-patterns.md
│     → Read references/metadata/mode-selection.md
│     → Read references/examples/bash-recipes.md
│
├─ "Convert an existing script into a Raycast command"
│  → Read references/foundations/workflow.md
│  → Read references/metadata/required-fields.md
│  → Read references/conventions/dependencies-and-portability.md
│  → Read references/troubleshooting/discovery-checklist.md
│
├─ "Choose or change the output mode"
│  → Read references/metadata/mode-selection.md
│  → Read references/metadata/inline-refresh-and-errors.md
│
├─ "Add or fix arguments"
│  → Read references/arguments/typed-arguments.md
│  → Read references/python/implementation-patterns.md or references/bash/bash-script-patterns.md
│
├─ "Why doesn't this command show up in Raycast?"
│  → Read references/troubleshooting/discovery-checklist.md
│  → Read references/metadata/required-fields.md
│
├─ "Why does runtime behavior/output feel wrong?"
│  → Read references/troubleshooting/runtime-and-output-issues.md
│  → Read references/metadata/mode-selection.md
│  → Read references/metadata/inline-refresh-and-errors.md
│
├─ "Should this be Python or Bash?"
│  → Read references/foundations/language-selection.md
│
└─ "Make this repo-ready or shareable"
   → Read references/conventions/community-repo-conventions.md
   → Read references/conventions/dependencies-and-portability.md

Step 3: Implement directly

Once the branch is clear:

  1. Read only the routed references for that branch.
  2. Build or edit the Script Command directly.
  3. Use the templates in assets/templates/ only as starting points, not rigid output.
  4. Keep the implementation minimal and aligned with Raycast's documented behavior.

Step 4: Validate before stopping

Always verify these:

  • required metadata exists
  • chosen mode matches the shape of output
  • inline commands include refreshTime
  • arguments match how the script reads positional inputs
  • failure paths print a human-readable final line and exit non-zero
  • dependency instructions exist when the command depends on extra tools or packages

Core defaults

  • Default to Python for API calls, JSON parsing, text processing, and richer logic.
  • Default to Bash for tiny shell-native wrappers around existing CLIs or OS actions.
  • Default to fullOutput if the result is meant to be read.
  • Default to compact or silent for single-line confirmations or actions.
  • Use inline only for dashboard-style, one-line status commands.

Key patterns

Pattern 1: minimal Python command

#!/usr/bin/env python3

# @raycast.schemaVersion 1
# @raycast.title Example Python Command
# @raycast.mode fullOutput
# @raycast.packageName Examples

print("Hello from Raycast")

Pattern 2: safe optional arguments in Python

import sys

def arg(index: int, default: str = "") -> str:
    return sys.argv[index] if len(sys.argv) > index else default

query = arg(1)

Pattern 3: clean failure path

print("Missing API token")
raise SystemExit(1)

Pattern 4: minimal Bash command

#!/usr/bin/env bash
set -euo pipefail

# @raycast.schemaVersion 1
# @raycast.title Example Bash Command
# @raycast.mode compact
# @raycast.packageName Examples

echo "Done"

Minimal reading sets

"Create a new Python Script Command"

  • references/foundations/workflow.md
  • references/python/file-anatomy.md
  • references/python/implementation-patterns.md
  • references/metadata/mode-selection.md
  • references/examples/python-recipes.md

"Create a new Bash Script Command"

  • references/foundations/workflow.md
  • references/bash/bash-script-patterns.md
  • references/metadata/mode-selection.md
  • references/examples/bash-recipes.md

"Convert an existing script"

  • references/foundations/workflow.md
  • references/metadata/required-fields.md
  • references/conventions/dependencies-and-portability.md
  • references/troubleshooting/discovery-checklist.md

"Add arguments"

  • references/arguments/typed-arguments.md
  • references/python/implementation-patterns.md
  • references/bash/bash-script-patterns.md

"Fix inline/compact/silent/fullOutput behavior"

  • references/metadata/mode-selection.md
  • references/metadata/inline-refresh-and-errors.md
  • references/troubleshooting/runtime-and-output-issues.md

"Make it community-repo ready"

  • references/conventions/community-repo-conventions.md
  • references/conventions/dependencies-and-portability.md
  • references/troubleshooting/discovery-checklist.md

Templates

When a user wants a quick scaffold, start from:

  • assets/templates/python-script-command.py
  • assets/templates/bash-script-command.sh

Then adapt the template to the user's exact mode, arguments, and dependencies.

Common pitfalls

PitfallFix
Using Extensions API concepts in a Script CommandStop and switch skills; Script Commands are metadata plus normal script execution
Choosing compact for multi-line outputMove to fullOutput
Choosing inline without refreshTimeAdd refreshTime or switch modes
Reading optional args unsafelyGuard Python sys.argv and Bash positional params
Leaving user-specific placeholders in a runnable fileUse .template. or fully configure the command
Missing dependency instructionsAdd top-of-file dependency notes and readable missing-dependency failures

Reference files

FileWhen to read
references/foundations/scope-and-fit.mdRead when deciding whether the task is really a Script Command and not a full Raycast extension.
references/foundations/workflow.mdRead when creating or converting a command and you need the end-to-end build flow.
references/foundations/language-selection.mdRead when deciding between Python and Bash.
references/metadata/required-fields.mdRead when adding or repairing metadata headers.
references/metadata/mode-selection.mdRead when choosing between fullOutput, compact, silent, and inline.
references/metadata/inline-refresh-and-errors.mdRead when working on inline refresh, first-line/last-line behavior, or failure semantics.
references/arguments/typed-arguments.mdRead when adding, changing, or debugging Script Command arguments.
references/python/file-anatomy.mdRead when creating a Python command file or checking placement of metadata and code.
references/python/implementation-patterns.mdRead when wiring sys.argv, dependency notes, failure messages, or Python output patterns.
references/bash/bash-script-patterns.mdRead when building or fixing a Bash-based Script Command.
references/conventions/community-repo-conventions.mdRead when the command should follow Raycast community-repo conventions.
references/conventions/dependencies-and-portability.mdRead when the command depends on tools/packages or must stay portable.
references/troubleshooting/discovery-checklist.mdRead when a command does not appear in Raycast or seems not to be recognized.
references/troubleshooting/runtime-and-output-issues.mdRead when output, refresh, or failure behavior is wrong.
references/examples/python-recipes.mdRead when you need concrete Python command patterns.
references/examples/bash-recipes.mdRead when you need concrete Bash command patterns.
references/sources/source-map.mdRead when you need the provenance for the internal references or want to expand the skill from the original Raycast research docs.

Guardrails

  • Do not invent metadata fields that are not verified in Raycast-owned sources.
  • Do not use Extensions API components or @raycast/api patterns in a Script Command.
  • Do not choose inline without refreshTime.
  • Do not emit noisy multi-line progress output for compact, silent, or inline.
  • Do not read optional arguments unsafely; guard Python sys.argv access and shell $2 / $3 usage.
  • Do not hide missing dependencies; document them and fail clearly.
  • Do not leave .template. in a filename unless the command intentionally requires user edits before use.
  • Do not bloat the response with generic shell or Python tutorials when the routed references already cover the needed pattern.

Final check

Before stopping, make sure the command would pass a practical smoke test:

  • visible metadata at the top
  • plausible mode
  • consistent argument count
  • readable success/failure output
  • no obvious mismatch between implementation language and task

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.39%
按下载量换算44

Claude

31.97%
按下载量换算42

Cursor

19.64%
按下载量换算26

Gemini CLI

9.79%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills