DevOps & Infra
bash-defensive-patterns - Claude MCP Skill
Master defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.
SEO Guide: Enhance your AI agent with the bash-defensive-patterns tool. This Model Context Protocol (MCP) server allows Claude Desktop and other LLMs to master defensive bash programming techniques for production-grade scripts. use when writing robust s... Download and configure this skill to unlock new capabilities for your AI workflow.
Documentation
SKILL.md# Bash Defensive Patterns Comprehensive guidance for writing production-ready Bash scripts using defensive programming techniques, error handling, and safety best practices to prevent common pitfalls and ensure reliability. ## Use this skill when - Writing production automation scripts - Building CI/CD pipeline scripts - Creating system administration utilities - Developing error-resilient deployment automation - Writing scripts that must handle edge cases safely - Building maintainable shell script libraries - Implementing comprehensive logging and monitoring - Creating scripts that must work across different platforms ## Do not use this skill when - You need a single ad-hoc shell command, not a script - The target environment requires strict POSIX sh only - The task is unrelated to shell scripting or automation ## Instructions 1. Confirm the target shell, OS, and execution environment. 2. Enable strict mode and safe defaults from the start. 3. Validate inputs, quote variables, and handle files safely. 4. Add logging, error traps, and basic tests. ## Safety - Avoid destructive commands without confirmation or dry-run flags. - Do not run scripts as root unless strictly required. Refer to `resources/implementation-playbook.md` for detailed patterns, checklists, and templates. ## Resources - `resources/implementation-playbook.md` for detailed patterns, checklists, and templates.
Signals
Information
- Repository
- arlenagreer/claude_configuration_docs
- Author
- arlenagreer
- Last Sync
- 5/10/2026
- Repo Updated
- 5/7/2026
- Created
- 4/10/2026
Reviews (0)
No reviews yet. Be the first to review this skill!
Related Skills
sparc
Execute SPARC methodology workflows with Claude-Flow
mem0-cli
Mem0 CLI -- the command-line interface for mem0 memory operations. TRIGGER when: user mentions "mem0 cli", "mem0 command line", "@mem0/cli", "mem0-cli", "pip install mem0-cli", "npm install -g @mem0/cli", or is running mem0 commands in a terminal/shell (mem0 add, mem0 search, mem0 list, mem0 get, mem0 init, mem0 config, mem0 import). Also triggers when query includes CLI flags like --user-id, --output, --json, --agent, or describes bash/zsh/terminal/shell usage. DO NOT TRIGGER when: user asks about programmatic SDK integration in Python/TS code (use mem0 skill), or Vercel AI SDK provider (use mem0-vercel-ai-sdk skill).
mem0-vercel-ai-sdk
Mem0 provider for Vercel AI SDK (@mem0/vercel-ai-provider). TRIGGER when: user mentions "vercel ai sdk", "@mem0/vercel-ai-provider", "createMem0", "retrieveMemories", "addMemories", "getMemories", "searchMemories", "mem0 vercel", "AI SDK provider", "AI SDK memory", or is using generateText/streamText with mem0. Also triggers for Next.js apps needing memory-augmented AI. DO NOT TRIGGER when: user asks about direct Python/TS SDK calls without Vercel (use mem0 skill), or CLI terminal commands (use mem0-cli skill).
mem0
Mem0 Platform SDK for adding persistent memory to AI applications. TRIGGER when: user mentions "mem0", "MemoryClient", "memory layer", "remember user preferences", "persistent context", "personalization", or needs to add long-term memory to chatbots, agents, or AI apps. Covers Python SDK (mem0ai), TypeScript SDK (mem0ai), and framework integrations (LangChain, CrewAI, OpenAI Agents SDK, Pipecat, LlamaIndex, AutoGen, LangGraph). Also covers the open-source self-hosted Memory class. This is the DEFAULT mem0 skill for ambiguous queries. DO NOT TRIGGER when: user asks about CLI commands, terminal usage, or shell scripts (use mem0-cli), or Vercel AI SDK / @mem0/vercel-ai-provider / createMem0 (use mem0-vercel-ai-sdk).
Related Guides
Flutter App Expert: Your AI-Powered Guide to Building Better Flutter Applications
Learn how to use the flutter app expert Claude skill. Complete guide with installation instructions and examples.
Go Backend Scalability: A Comprehensive Guide to the Claude Skill for High-Performance Systems
Learn how to use the go backend scalability Claude skill. Complete guide with installation instructions and examples.
Tailwind CSS Next.js Guide: The Ultimate Claude Skill for Modern Web Development
Learn how to use the tailwind css nextjs guide Claude skill. Complete guide with installation instructions and examples.