forge-lang-bash

Automate bats testing, ShellCheck linting, and shfmt formatting for Bash scripts.

1|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/martimramos/claude-forge --skill forge-lang-bash
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: forge-lang-bash
Source: https://github.com/martimramos/claude-forge/tree/main/skills/languages/bash
Command: npx skills add https://github.com/martimramos/claude-forge --skill forge-lang-bash

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bash and Shell scripting often suffer from inconsistencies and bugs; this Skill provides a formal standard for testing, linting, and formatting to improve reliability.

Core Features & Use Cases

  • Testing: Run bats tests to validate scripts and ensure expected behavior.
  • Static Analysis: Use ShellCheck to catch common errors and enforce safe practices.
  • Formatting: Apply shfmt to maintain consistent code style across projects.
  • Project Structure: Guidelines for organizing binaries, libraries, and tests.

Quick Start

Use this skill to scaffold a shell project and apply tests and linting to existing scripts.

Frequently Asked Questions about forge-lang-bash

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

FAQPage Schema
How do I set up testing and linting for Bash scripts?

To set up testing and linting for Bash scripts, this Skill automates bats tests, ShellCheck static analysis, and shfmt formatting across your project, while enforcing a conventional project layout.

What is the best way to standardize Shell script formatting and catch common errors?

Standardizing Shell script formatting and catching common errors is best achieved by applying shfmt for consistent code style and ShellCheck for static analysis, which this Skill automates to enforce safe practices and improve reliability.

Can I scaffold a new shell project with bats tests included?

Yes, you can scaffold a shell project with bats tests included, as this Skill provides conventional project layout guidelines and templates for both test and script scaffolding to ensure reliable execution.

Do I need a specific project structure to use ShellCheck and shfmt?

You do not need a pre-existing structure, as this Skill enforces a conventional project layout for organizing binaries, libraries, and tests when applying ShellCheck and shfmt to your shell scripts.

Why does my Bash script fail ShellCheck linting?

Bash scripts fail ShellCheck linting when they contain common errors or violate safe practices; this Skill uses ShellCheck static analysis to catch these issues and applies templates to scaffold reliable scripts.