moeryomenko/dotfiles/bash
Claude Code and agent skill by moeryomenko/dotfiles
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
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/bashSemi-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
- Load
features/defensive-patterns.mdbefore 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:
- Load
features/defensive-patterns.mdfor strict mode (set -Eeuo pipefail), error trapping, variable quoting, safe temp files, argument parsing, structured logging, idempotent design, and dependency checking. - This is the ALWAYS READ feature — load it before anything else.
Testing
When writing tests, setting up BATS infrastructure, or establishing test patterns:
- Load
features/testing.mdfor 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:
- Load
features/linting.mdfor 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:
- Load
features/posix-compatibility.mdfor 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:
- Load
features/idioms.mdfor 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:
- Load
features/project-structure.mdfor 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:
- Load
features/ci-integration.mdfor 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
| Task | Primary Features | |
|---|---|---|
| New script | defensive-patterns, idioms, project-structure | |
| Review existing script | defensive-patterns, linting, posix-compatibility | |
| Write tests | testing, defensive-patterns | |
| Set up CI | ci-integration, linting, testing | |
| Port script to POSIX sh | posix-compatibility, linting | |
| Modernize / refactor | idioms, defensive-patterns, project-structure | |
| Library / module design | project-structure, defensive-patterns, idioms | |
| Configure linting | linting, ci-integration | |
| Debug script failure | defensive-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
- SKILL.md in the repositoryCheckingopencode/.config/opencode/skills/bash/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooksconfigConfiguration 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
[](https://verified-skill.com/skills/moeryomenko/dotfiles/bash)