bash-script-validator

仓库创建 2026年7月27日最近提交 3 天前SkillHot 收录 2 天前
这个 Skill 做什么

帮你全面检查 bash / shell 脚本,能发现语法错误、违反最佳实践的写法、安全隐患和性能问题,并给出修复或优化建议。会根据 shebang 判断是 bash 还是 POSIX sh,分别应用合适的规则,适合在交付、代码审查或调试脚本时使用。还能指出危险用法并提供更稳健的替代写法,降低线上事故风险。

▸ 展开 SKILL.md 英文原文

Comprehensive toolkit for validating, linting, and optimizing bash and shell scripts. Use this skill when working with shell scripts (.sh, .bash), validating script syntax, checking for best practices, identifying security issues, or debugging shell script problems.

0
Stars
0
Forks
2
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/TAPPaaS/tappaas-claude/main/TAPPaaS/.claude/skills/bash-script-validator/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/TAPPaaS/tappaas-claude/main/TAPPaaS/.claude/skills/bash-script-validator/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Bash Script Validator

## Overview

This skill provides comprehensive validation for bash and shell scripts, checking for syntax errors, best practices, security vulnerabilities, and performance optimizations. It automatically detects whether a script is bash or POSIX sh based on the shebang and applies appropriate validation rules.

## When to Use This Skill

Use this skill when:
- Validating bash or shell scripts (.sh, .bash files)
- Checking scripts for syntax errors before deployment
- Identifying bashisms in POSIX sh scripts
- Finding security vulnerabilities (unsafe eval, command injection)
- Optimizing script performance
- Ensuring POSIX compliance
- Debugging shell script issues
- 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有