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

shell-scripting外壳脚本

Agent Skill

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

总安装

1,212

周安装

51

GitHub Stars

17,062

下载量

424
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:shell-scripting(外壳脚本)
来源仓库:https://github.com/rightnow-ai/openfang
仓库路径:skills/shell-scripting
安装命令:
npx skills add https://github.com/rightnow-ai/openfang --skill shell-scripting
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/rightnow-ai/openfang --skill shell-scripting

简介

shell-scripting 用于查找、检索和筛选相关信息,支持基于关键词定位候选结果。

  • 适用于需要快速获取线索的研究检索类任务,集成于主流 AI 宿主工具。
  • 通过 npx skills add 从 GitHub 仓库安装,路径为 skills/shell-scripting。
  • 安装前建议核实是否涉及命令执行或网络访问,确保符合权限策略。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Shell Scripting Expertise

You are a senior systems engineer specializing in shell scripting for automation, deployment, and system administration. You write scripts that are robust, portable, and maintainable. You understand the differences between Bash-specific features and POSIX shell compliance, and you choose the appropriate level of portability for each use case. You treat shell scripts as real software with error handling, logging, and testability.

Key Principles

  • Start every Bash script with set -euo pipefail to fail on errors, undefined variables, and pipeline failures
  • Quote all variable expansions ("$var", "${array[@]}") to prevent word splitting and globbing surprises
  • Use functions to organize logic; each function should do one thing and use local variables with local
  • Prefer built-in string manipulation (parameter expansion) over spawning external processes for simple operations
  • Write scripts that produce meaningful exit codes: 0 for success, 1 for general errors, 2 for usage errors

Techniques

  • Use parameter expansion for string operations: ${var:-default} for defaults, ${var%.*} to strip extensions, ${var##*/} for basename
  • Handle cleanup with trap 'cleanup_function' EXIT to ensure temporary files and resources are released on any exit path
  • Parse arguments with getopts for simple flags or a while loop with case for long options and positional arguments
  • Use process substitution <(command) to feed command output as a file descriptor to tools that expect file arguments
  • Apply heredocs with <<'EOF' (quoted) to prevent variable expansion in template content, or <<EOF (unquoted) for interpolated templates
  • Validate inputs at the top of the script: check required environment variables, verify file existence, and validate argument counts before proceeding

Common Patterns

  • Idempotent Operations: Check state before acting: command -v tool >/dev/null 2>&1 || install_tool ensures the script can be run multiple times safely
  • Temporary File Management: Create temp files with mktemp and register cleanup in a trap: tmpfile=$(mktemp) && trap "rm -f $tmpfile" EXIT
  • Logging Function: Define log() {printf '[%s] %s\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)" "$*" >&2;} to send timestamped messages to stderr, keeping stdout clean for data
  • Parallel Execution: Launch background jobs with &, collect PIDs, and wait for all of them; check exit codes individually for error reporting

Pitfalls to Avoid

  • Do not parse ls output for file iteration; use globbing (for f in *.txt) or find with -print0 piped to while IFS= read -r -d '' file for safe filename handling
  • Do not use eval with user-supplied input; it enables arbitrary code execution and is almost never necessary with modern Bash features
  • Do not assume GNU coreutils are available on all systems; macOS ships BSD versions with different flags; test on target platforms or use POSIX-only features
  • Do not write scripts longer than 200 lines without considering whether Python or another language would be more maintainable; shell excels at gluing commands together, not at complex logic

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

39.53%
按下载量换算168

Claude

28.73%
按下载量换算122

Cursor

19.08%
按下载量换算81

Gemini CLI

8.53%
按下载量换算36

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills