Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计通过

shell-expert外壳专家

Agent Skill

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

总安装

2,164

周安装

92

GitHub Stars

28

下载量

758
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/laurigates/claude-plugins --skill shell-expert

简介

shell-expert 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 它支持结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

SKILL.md

Shell Expert

Expert knowledge for shell scripting, command-line tools, and automation with focus on robust, portable, and efficient solutions.

When to Use This Skill

Use this skill when...Use justfile-expert instead when...
Authoring portable bash, zsh, or POSIX shell scriptsWrapping commands as named recipes for a project task runner
Composing pipelines and one-off automation logicStandardising entry points across a team or repo
Hardening scripts with set -euo pipefail, traps, and quotingDefining cross-platform commands without writing shell glue
Use this skill when...Use jq-json-processing instead when...
Glue logic that wires together CLI toolsThe work is purely transforming JSON input
Writing reusable functions, argument parsing, or signal handlingA single jq expression can replace a chain of shell commands

Command-Line Tool Mastery

  • Expert knowledge of modern CLI tools (jq, yq, fd, rg, etc.)
  • JSON/YAML processing and transformation
  • File searching and text manipulation
  • System automation and orchestration

Shell Scripting Excellence

  • POSIX-compliant shell scripting for maximum portability
  • Bash-specific features and best practices
  • Error handling and defensive programming
  • Cross-platform compatibility (Linux, macOS, BSD)

Automation & Integration

  • CI/CD pipeline scripting
  • System administration automation
  • Tool integration and workflow automation
  • Performance optimization for shell operations

Key Capabilities

JSON/YAML Processing

  • jq: Complex JSON queries, transformations, and filtering
  • yq: YAML manipulation, in-place editing, format conversion
  • jd: JSON diffing and patching for configuration management
  • Data pipeline construction: Chaining tools for complex transformations

File Operations & Search

  • fd: Fast, user-friendly file finding with intuitive syntax
  • rg (ripgrep): Lightning-fast recursive grep with gitignore support
  • lsd: Modern ls replacement with visual enhancements
  • find/grep alternatives: When and how to use modern replacements

Shell Script Development

  • Error Handling: Proper trap usage, exit codes, error propagation
  • Input Validation: Argument parsing, option handling, user input sanitization
  • Debugging: Set options (-x, -e, -u, -o pipefail), debug output strategies
  • Performance: Process substitution, parallel execution, efficient loops

Cross-Platform Scripting

  • Platform Detection: OS-specific behavior handling
  • Path Management: Portable path construction and manipulation
  • Tool Availability: Checking for and handling missing dependencies
  • Compatibility Layers: Writing scripts that work everywhere

Automation Patterns

  • Idempotent Operations: Scripts that can run multiple times safely
  • Atomic Operations: Ensuring all-or-nothing execution
  • Progress Reporting: User-friendly output and status updates
  • Logging & Monitoring: Structured logging for automated systems

Essential Commands

jq - JSON Processing

jq . data.json                                    # Pretty-print
jq -r '.key.subkey' data.json                     # Extract value
jq '.items[] | select(.status == "active")'       # Filter

yq - YAML Processing

yq '.services.web.image' docker-compose.yml       # Read value
yq -i '.version = "2.1.0"' config.yml            # Update in-place
yq -o json config.yml                             # Convert to JSON

fd - Fast File Finding

fd 'pattern'                 # Find by pattern
fd -e md                     # Find by extension
fd -e sh -x shellcheck {}    # Find and execute

rg - Recursive Grep

rg 'DATABASE_URL'            # Basic search
rg 'TODO' -t python          # Search specific file types
rg -C 3 'error'              # Search with context

Best Practices

Script Development Workflow

  1. Requirements Analysis: Understand automation need and target platforms
  2. Tool Selection: Choose appropriate tools for the task
  3. Prototype Development: Create initial script with core functionality
  4. Error Handling: Add robust error handling and edge case management
  5. Cross-Platform Testing: Verify script works on all target systems
  6. Performance Optimization: Profile and optimize for efficiency
  7. Documentation: Add clear usage instructions and inline comments

Critical Guidelines

  • Always use shellcheck for linting
  • Set strict mode: set -euo pipefail
  • Quote all variables: "${var}"
  • Use functions for reusable code
  • Implement proper cleanup with trap
  • Provide helpful error messages
  • Include --help and --version options
  • Use meaningful variable names
  • Comment complex logic
  • Test with different shells when targeting POSIX

Common Patterns

Robust Script Template

#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'

trap 'echo "Error on line $LINENO"' ERR
trap cleanup EXIT

cleanup() {
    rm -f "$TEMP_FILE" 2>/dev/null || true
}

main() {
    parse_args "$@"
    validate_environment
    execute_task
}

main "$@"

Cross-Platform Detection

detect_os() {
    case "$OSTYPE" in
        linux*)   OS="linux" ;;
        darwin*)  OS="macos" ;;
        msys*)    OS="windows" ;;
        *)        OS="unknown" ;;
    esac
}

For detailed command-line tools reference, advanced automation examples, and troubleshooting guidance, see REFERENCE.md.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenCode

29.63%
按下载量换算225

Antigravity

21.83%
按下载量换算165

Claude Code

16.33%
按下载量换算124

github-copilot

13.3%
按下载量换算101

Gemini CLI

6.78%
按下载量换算51

kilo

3.61%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/laurigates/claude-plugins --skill shell-expert;npx skills add laurigates/claude-plugins --skill "shell-expert" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills