moeryomenko/dotfiles/bash

Claude Code and agent skill by moeryomenko/dotfiles

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Complete Bash development skill — defensive patterns, testing with BATS, linting with ShellCheck, POSIX compatibility, idioms, project structure, and CI/CD integration. Load automatically when working with .sh files.

Install

npx vskill@latest install moeryomenko/dotfiles/bash

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as moeryomenko/dotfiles/bash.

Bash Skill Assembly

Unified Bash development knowledge base organized by domain features. Route to the correct feature file based on the task.

ALWAYS READ

  1. Load features/defensive-patterns.md before loading any other feature file.

This file is MANDATORY. It contains the foundational defensive programming knowledge (strict mode, error trapping, variable safety, safe file operations, argument parsing, structured logging) that every other feature builds on. Skipping it leads to fragile, unsafe scripts.

Configuration

The Bash skill directory is the directory containing this file. Feature files are in the features/ subdirectory.

Capabilities

Defensive Patterns

When writing new Bash scripts, hardening existing scripts, or reviewing for safety:

  1. Load features/defensive-patterns.md for strict mode (set -Eeuo pipefail), error trapping, variable quoting, safe temp files, argument parsing, structured logging, idempotent design, and dependency checking.
  2. This is the ALWAYS READ feature — load it before anything else.
Testing

When writing tests, setting up BATS infrastructure, or establishing test patterns:

  1. Load features/testing.md for BATS fundamentals, test structure, assertions, setup/teardown, mocking and stubbing, fixture management, error condition testing, shell compatibility testing, parallel execution, and CI/CD integration.
Linting

When configuring ShellCheck, setting up shfmt, or enforcing code quality gates:

  1. Load features/linting.md for ShellCheck configuration (.shellcheckrc), error code categories (SC1000–SC3057), suppression patterns, shfmt integration, pre-commit hooks, editor integration, CI workflows, and common violation patterns with before/after examples.
POSIX Compatibility

When targeting POSIX sh (#!/bin/sh) or ensuring portability across dash, ash, yash, BusyBox:

  1. Load features/posix-compatibility.md for shebang conventions, strict mode diffs, conditional diffs ([ ] vs [[ ]]), missing features (arrays, process substitution, local, +=), portable alternatives, and ShellCheck SC3010–SC3057 POSIX compliance flags.
Idioms

When writing idiomatic Bash, choosing between competing syntaxes, or leveraging modern Bash features:

  1. Load features/idioms.md for parameter expansion patterns, arithmetic, arrays and associative arrays, process substitution, here-documents and here-strings, brace expansion, redirection patterns, coprocesses, nameref variables, and Bash 5.x features with version requirements.
Project Structure

When designing the layout of a Bash project, organizing libraries, or establishing conventions:

  1. Load features/project-structure.md for recommended project layout (bin/, lib/, tests/, fixtures/), library sourcing patterns, module system, entry point scripts, function naming conventions, exit code conventions, dependency management, documentation generation, configuration file patterns, and Makefile targets.
CI Integration

When setting up continuous integration for Bash projects, configuring automated checks, or standardizing pipelines:

  1. Load features/ci-integration.md for GitHub Actions workflows, GitLab CI pipelines, pre-commit hooks, Makefile targets, matrix testing across shell dialects, containerized testing, actionlint, automated releases, coverage reporting, CodeQL scanning, secrets detection, and Dependabot/Renovate integration.

Cross-Referencing

When a task spans multiple domains, load the primary feature first, then additional features as needed. Features reference each other for cross-cutting topics.

Common Task-to-Feature Mapping
TaskPrimary Features
New scriptdefensive-patterns, idioms, project-structure
Review existing scriptdefensive-patterns, linting, posix-compatibility
Write teststesting, defensive-patterns
Set up CIci-integration, linting, testing
Port script to POSIX shposix-compatibility, linting
Modernize / refactoridioms, defensive-patterns, project-structure
Library / module designproject-structure, defensive-patterns, idioms
Configure lintinglinting, ci-integration
Debug script failuredefensive-patterns, testing

Verification

[Check] SKILL.md contains valid YAML frontmatter with name, description, invocation_policy [Check] ALWAYS READ section points to features/defensive-patterns.md as mandatory first load [Check] Capabilities section covers all 7 domains: defensive-patterns, testing, linting, posix-compatibility, idioms, project-structure, ci-integration [Check] All feature file references use relative paths starting with features/ [Check] Cross-Referencing table maps common tasks to primary features

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks
  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/moeryomenko/dotfiles/bash/badge)](https://verified-skill.com/skills/moeryomenko/dotfiles/bash)

Something wrong with this skill or its page? Tell us.