Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

check-tools检查工具

Agent Skill

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

总安装

703

周安装

29

GitHub Stars

118

下载量

230
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/oaustegard/claude-skills --skill check-tools

简介

用于开发环境工具链验证,check-tools 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 支持严格/宽松/自定义检查模式。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 可系统性验证 Python、Node.js、
  • Git 等核心工具的存在性和版本。
  • 提供跨编程生态系统的工具依赖关系检查。

SKILL.md

Check Tools - Development Environment Validator

Core Philosophy

Systematically verify tool presence and versions across major programming ecosystems. Provide actionable feedback about availability and validate complete toolchains with awareness of interdependencies (e.g., Node.js requires npm).

Environment Compatibility

This skill supports flexible validation modes:

  • Strict mode: Fail on missing core tools (python3, node, git, gcc)
  • Lenient mode: Report all tools but only warn on optional ones
  • Custom mode: Define required vs optional tools per project

Default behavior reports all tools without failing validation, suitable for diverse PaaS environments.

When to Use This Skill

Trigger this skill when working on:

  • Environment setup verification - Validating that all required tools are installed
  • Troubleshooting build failures - Checking for missing dependencies or version mismatches
  • Documentation generation - Creating system requirements documentation
  • CI/CD pipeline setup - Ensuring container images have required tools
  • Onboarding new developers - Verifying development environment readiness
  • Cross-platform development - Checking tool availability across different operating systems
  • Polyglot projects - Validating toolchains for multiple programming languages

Tool Categories

1. Python Ecosystem

Core Tools (typically available):

  • python3, python - Python interpreters ✅
  • pip - Package installer ✅
  • uv - Fast Python package installer ✅

Development Tools (install as needed):

  • poetry - Dependency management and packaging
  • black - Code formatter
  • mypy - Static type checker
  • pytest - Testing framework
  • ruff - Fast Python linter

Validation Pattern:

if command -v python3 &> /dev/null; then
    python3 --version
fi

2. Node.js Ecosystem

Core Tools (typically available):

  • node - Node.js runtime ✅
  • npm - Package manager ✅

Development Tools (install as needed):

  • nvm - Node version manager
  • yarn - Fast, reliable package manager
  • pnpm - Efficient disk space package manager
  • eslint - JavaScript linter
  • prettier - Code formatter
  • chromedriver - Browser automation

Validation Pattern:

if command -v node &> /dev/null; then
    node --version
    # Check for multiple Node versions via nvm
    if [[ -s "/opt/nvm/nvm.sh" ]]; then
        source "/opt/nvm/nvm.sh"
        nvm list
    fi
fi

3. Java Ecosystem

Core Tools (typically available):

  • java - Java runtime and compiler ✅

Build Tools (install as needed):

  • mvn - Maven build tool
  • gradle - Gradle build tool

Validation Pattern:

if command -v java &> /dev/null; then
    java -version 2>&1 | head -3
fi

4. Go Ecosystem

Development Tools (install as needed):

  • go - Go compiler and toolchain

Validation Pattern:

if command -v go &> /dev/null; then
    go version
fi

5. Rust Ecosystem

Development Tools (install as needed):

  • rustc - Rust compiler
  • cargo - Rust package manager and build tool

Environment Setup:

# Source cargo environment if it exists
if [[ -f "$HOME/.cargo/env" ]]; then
    source "$HOME/.cargo/env"
fi

6. C/C++ Ecosystem

Core Tools (typically available):

  • gcc - GNU Compiler Collection ✅

Build Tools (install as needed):

  • clang - LLVM C/C++ compiler
  • cmake - Cross-platform build system
  • ninja - Small build system with focus on speed
  • conan - C/C++ package manager

Validation Pattern:

if command -v gcc &> /dev/null; then
    gcc --version | head -1
fi

7. System Utilities

Core Tools (typically available):

  • git - Version control ✅
  • curl - Data transfer tool ✅
  • awk - Pattern scanning and processing ✅
  • sed - Stream editor ✅
  • grep - Pattern matching ✅
  • gzip - File compression ✅
  • tar - Archive utility ✅
  • make - Build automation ✅

Development Tools (install as needed):

  • jq - JSON processor
  • rg (ripgrep) - Fast text search
  • tmux - Terminal multiplexer
  • yq - YAML processor
  • vim - Vi improved
  • nano - Simple text editor

Validation Strategies

Basic Presence & Version Check

Combine tool detection with version extraction:

check_tool() {
    local tool=$1
    local required=${2:-false}

    if command -v "$tool" &> /dev/null; then
        echo "✅ $tool: $($tool --version 2>&1 | head -1)"
        return 0
    else
        if [[ "$required" == "true" ]]; then
            echo "❌ $tool: not found (REQUIRED)"
            return 1
        else
            echo "⚠️  $tool: not found (optional)"
            return 0
        fi
    fi
}

# Usage
check_tool python3 true   # Required
check_tool poetry false   # Optional

Environment-Specific Loading

Some tools require environment setup before detection:

# Load version managers if present
[[ -f "$HOME/.nvm/nvm.sh" ]] && source "$HOME/.nvm/nvm.sh"
[[ -f "$HOME/.cargo/env" ]] && source "$HOME/.cargo/env"

# Then check tools
check_tool node true
check_tool cargo false

Output Formatting

Visual Indicators

  • ✅ Tool found and working
  • ❌ Tool not found or not working
  • ⚠️ Tool optional but recommended

Categorical Organization

Group tools by ecosystem for clarity:

=================== Python ===================
✅ python3: Python 3.11.4
✅ pip: pip 23.1.2
✅ poetry: Poetry (version 1.5.1)
❌ mypy: not found

=================== NodeJS ===================
✅ node: v20.5.0
✅ npm: 9.8.0
...

ASCII Art Banners

Create visually appealing output for tool reports:

cat << 'EOF'
   _____ _                 _        _____           _
  / ____| |               | |      / ____|         | |
 | |    | | __ _ _   _  __| | ___  | |     ___   __| | ___
 | |    | |/ _` | | | |/ _` |/ _ \ | |    / _ \ / _` |/ _ \
 | |____| | (_| | |_| | (_| |  __/ | |___| (_) | (_| |  __/
  \_____|_|\__,_|\__,_|\__,_|\___|  \_____\___/ \__,_|\___|

      Development Environment Tool Versions
      =====================================
EOF

Common Use Cases

1. Container/Docker Environment Validation

When setting up development containers, validate that all required tools are installed:

#!/bin/bash
# Validate Python data science environment
check_tool python3 "required"
check_tool pip "required"
check_tool jupyter "required"
check_tool pandas "optional - data analysis"
check_tool numpy "optional - numerical computing"

2. CI/CD Pipeline Health Checks

Add environment validation as the first step in CI pipelines:

# .github/workflows/validate.yml
steps:
  - name: Validate Build Environment
    run: |
      ./scripts/check-tools.sh
      if [ $? -ne 0 ]; then
        echo "Build environment validation failed"
        exit 1
      fi

Implementation Patterns

Modular Validation Functions

validate_python_tools() {
    local failed=0

    for tool in python3 pip poetry pytest black; do
        if ! command -v "$tool" &> /dev/null; then
            echo "❌ $tool: not found"
            failed=1
        else
            echo "✅ $tool: $($tool --version 2>&1 | head -1)"
        fi
    done

    return $failed
}

Cross-Platform Considerations

case "$(uname -s)" in
    Linux*) check_linux_tools ;;
    Darwin*) check_macos_tools ;;
esac

Best Practices

  1. Fail on missing core tools only - python3, node, git, gcc must be present
  2. Source environments first - Load nvm, cargo before checking tools
  3. Show versions, not just presence - Use tool --version 2>&1 | head -1
  4. Use visual indicators - ✅ (available), ❌ (required missing), ⚠️ (optional missing)
  5. Return proper exit codes - 0 for success, 1 for missing required tools

Quick Reference: Tool Availability

EcosystemCore (typically present)Optional (install as needed)
Pythonpython3, pip, uvpoetry, black, mypy, pytest, ruff
Node.jsnode, npmnvm, yarn, pnpm, eslint, prettier
Javajavamaven, gradle
Go-go
Rust-rustc, cargo
C/C++gccclang, cmake, ninja, conan
Utilsgit, curl, awk, grep, sed, tar, make, gzipjq, rg, tmux, yq, vim, nano

Use check_required_tool for core tools, check_optional_tool for others.

Constraints

DO: Use command -v for detection, source environments (nvm, cargo) first, handle stderr for versions, group by ecosystem, return proper exit codes DON'T: Assume paths, hardcode locations, ignore stderr, mark all tools as required

Reference Files

  • assets/check-tools.sh: Focused development tool validation script (exit codes, quick checks)
  • assets/environment-diagnostic.sh: Comprehensive system and tool diagnostic with three modes:

- tools - Development tools only (fast validation) - system - System info, hardware, mounts, processes - full - Complete diagnostic with package inventories

  • references/tool-categories.md: Detailed breakdown of tools by category with installation instructions

Validation Checklist

Before delivering, verify:

  • Core tools marked required, others optional
  • Environments sourced (nvm, cargo) before checking
  • Versions extracted correctly (handle stderr)
  • Visual indicators consistent (✅/❌/⚠️)
  • Exit code 0 for success, 1 only for missing core tools

Example Output

   _____ _                 _        _____           _
  / ____| |               | |      / ____|         | |
 | |    | | __ _ _   _  __| | ___  | |     ___   __| | ___
 | |    | |/ _` | | | |/ _` |/ _ \ | |    / _ \ / _` |/ _ \
 | |____| | (_| | |_| | (_| |  __/ | |___| (_) | (_| |  __/
  \_____|_|\__,_|\__,_|\__,_|\___|  \_____\___/ \__,_|\___|

      Development Environment Tool Versions
      =====================================

=================== Python ===================
✅ python3: Python 3.12.3
✅ pip: pip 24.0
✅ uv: uv 0.9.2
⚠️  poetry: not found (optional)
⚠️  black: not found (optional)
⚠️  mypy: not found (optional)
⚠️  pytest: not found (optional)
⚠️  ruff: not found (optional)

=================== NodeJS ===================
✅ node: v22.20.0
✅ npm: 10.9.3
⚠️  nvm: not found (optional)
⚠️  yarn: not found (optional)
⚠️  pnpm: not found (optional)

=================== Java ===================
✅ java: openjdk 11.0.25 2024-10-15
⚠️  mvn: not found (optional)
⚠️  gradle: not found (optional)

=================== C/C++ ===================
✅ gcc: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

=================== System Utilities ===================
✅ git: git version 2.34.1
✅ curl: curl 7.81.0
✅ awk: GNU Awk 5.1.0
✅ sed: sed (GNU sed) 4.8
✅ grep: grep (GNU grep) 3.7
⚠️  jq: not found (optional)
⚠️  rg: not found (optional)

=================== Summary ===================
✅ All required tools present
   (Optional tools marked with ⚠️ can be installed as needed)

Getting Started

Quick Validation

# Fast tool check (exit code validation)
bash assets/check-tools.sh

# Development tools only
bash assets/environment-diagnostic.sh tools

# System diagnostics only
bash assets/environment-diagnostic.sh system

# Complete diagnostic with report
bash assets/environment-diagnostic.sh full /path/to/report.txt

Customization

  1. For CI/CD: Use check-tools.sh (fast, exit code based)
  2. For debugging: Use environment-diagnostic.sh full (comprehensive)
  3. For onboarding: Use environment-diagnostic.sh tools with package lists
  4. Modify required/optional: Edit check_required_tool and check_optional_tool calls

Both scripts support minimal PaaS environments and full development setups.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.81%
按下载量换算85

Claude

29.68%
按下载量换算68

Cursor

20.16%
按下载量换算46

Gemini CLI

9.54%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills