Token导航 LogoToken导航

Agent Skill · 研究检索

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

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

build-raycast-script-command 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 59,803。

总安装 376周安装 16GitHub Stars 5下载 132核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

build-raycast-script-command 用于创建或转换 Raycast 脚本命令,支持元数据配置与参数绑定。适用于将 Python/Bash 脚本封装为 Raycast 扩展,或修复输出格式与行为异常。支持 fullOutput、compact、silent 等多种输出模式选择,提升脚本可共享性。

需确认目标环境与 Raycast 版本兼容性,注意脚本权限与运行时依赖管理。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/build-raycast-script-command

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill build-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

build-raycast-script-command 怎么安装?

在终端执行 npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill build-raycast-sc…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

build-raycast-script-command 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

build-raycast-script-command 需要什么权限?

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

build-raycast-script-command 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

build-raycast-script-command 用的人多吗?

公开数据是累计安装 376 次,近一周安装 16 次,下载 132 次,GitHub 5 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

build-raycast-script-command 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
build-raycast-script-command

构建光线投射脚本命令 · 本页

3765接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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

平台分布

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