cli-audit-shell

Audit Bash scripts against Google Shell Style Guide for syntax, structure, and security risks.

5|1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/Destynova2/cli-code-skills --skill cli-audit-shell
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cli-audit-shell
Source: https://github.com/Destynova2/cli-code-skills/tree/main/cli-audit-shell
Command: npx skills add https://github.com/Destynova2/cli-code-skills --skill cli-audit-shell

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill audits shell scripts for adherence to Google Shell Style Guide and best practices, identifying potential issues in syntax, structure, and functionality.

Core Features & Use Cases

  • Syntax and Structure Analysis: Checks for syntax errors, proper structure, and best practices in shell scripts.
  • Security Audits: Identifies potential security risks like shell injection and environment variable misuse.
  • Quality Index: Computes a Shell Quality Index (SQI) based on various dimensions of the script.

Quick Start

Analyze your shell scripts with /cli-audit-shell /path/to/your/script.sh.

Frequently Asked Questions about cli-audit-shell

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit a bash script for syntax errors and security risks?▼

You can audit a bash script for syntax errors and security risks by running it against the Google Shell Style Guide. This process identifies structural issues, shell injection vulnerabilities, and environment variable misuse.

What is a Shell Quality Index and how does it evaluate scripting practices?▼

A Shell Quality Index (SQI) is a computed metric that evaluates scripting practices across various dimensions of a script. It measures adherence to best practices to ensure your shell scripts remain robust and maintainable.

How do I check my shell scripts for adherence to the Google Shell Style Guide?▼

To check shell scripts for adherence to the Google Shell Style Guide, provide the script path to an auditing tool. It will analyze syntax, structure, and functionality to pinpoint deviations from established guidelines.

Can I use shellcheck to identify potential shell injection vulnerabilities?▼

Yes, using shellcheck or similar auditing mechanisms can identify potential shell injection vulnerabilities. The audit specifically targets environment variable misuse and security risks while evaluating overall script quality.

What is the best way to ensure bash scripts are robust and follow best practices?▼

The best way to ensure bash scripts are robust and follow best practices is through a comprehensive quality audit. This detects syntax errors, structural problems, and security risks based on established style guidelines.

Why does my bash script audit report environment variable misuse?▼

A bash script audit reports environment variable misuse because it poses a potential security risk. Identifying this misuse ensures your scripts adhere to strict security guidelines and maintain robust execution.