CtrlK
BlogDocsLog inGet started
Tessl Logo

bash-defensive-patterns

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.

79

1.09x
Quality

70%

Does it follow best practices?

Impact

96%

1.09x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./skills/bash-defensive-patterns/SKILL.md

The canonical home for this skill is bash-defensive-patterns in rmyndharis/antigravity-skills

SKILL.md
Quality
Evals
Security

Quality

Content

72%Scale 1-3

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

This skill demonstrates good structure and appropriate brevity, correctly delegating detailed patterns to a separate playbook. However, it lacks the concrete, executable examples that would make it immediately actionable - at minimum, showing `set -euo pipefail` or a basic trap pattern inline would significantly improve utility without bloating the content.

Suggestions

Add a minimal executable code block showing strict mode setup (e.g., `set -euo pipefail`) and a basic error trap pattern

Include one concrete example of input validation or safe file handling to demonstrate the defensive approach

Add a validation checkpoint in the workflow, such as 'Test with `bash -n script.sh` before execution'

DimensionReasoningScore

Conciseness

The content is lean and efficient, avoiding explanations of what Bash is or basic programming concepts. Every section serves a purpose and the instructions are appropriately brief, delegating details to the referenced playbook.

3 / 3

Actionability

Instructions are clear but abstract - 'Enable strict mode', 'Validate inputs', 'Add logging' lack concrete code examples. No executable snippets showing actual defensive patterns like `set -euo pipefail` or trap syntax are provided inline.

2 / 3

Workflow Clarity

The 4-step workflow provides a reasonable sequence, but lacks validation checkpoints or feedback loops. For scripts involving destructive operations (mentioned in Safety), there's no explicit verify-before-proceed pattern.

2 / 3

Progressive Disclosure

Excellent structure with clear overview and single-level reference to the implementation playbook. The skill appropriately keeps the main file as an overview while pointing to detailed resources for patterns and templates.

3 / 3

Total

10

/

12

Passed

Description

67%Scale 1-3

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description has good structure with explicit 'Use when' guidance and covers the domain adequately. However, it relies on abstract concepts ('defensive techniques', 'fault tolerance') rather than listing concrete actions, and the trigger terms could be expanded to include more natural user language variations.

Suggestions

Replace abstract 'defensive programming techniques' with specific actions like 'validate inputs, handle errors gracefully, use strict mode (set -euo pipefail), trap signals'

Add more natural trigger terms users might say: 'bash script', 'sh script', 'error handling', 'shellcheck', 'script debugging', 'safe scripting'

DimensionReasoningScore

Specificity

Names the domain (Bash programming, shell scripts) and mentions some contexts (CI/CD pipelines, system utilities), but 'defensive programming techniques' and 'fault tolerance and safety' are abstract rather than concrete actions like 'validate inputs, handle errors, set strict mode'.

2 / 3

Completeness

Clearly answers both what ('Master defensive Bash programming techniques') and when ('Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety') with explicit trigger guidance.

3 / 3

Trigger Term Quality

Includes relevant terms like 'Bash', 'shell scripts', 'CI/CD pipelines', 'system utilities', but misses common variations users might say like 'bash script', 'sh', 'error handling', 'set -e', 'shellcheck', or 'script safety'.

2 / 3

Distinctiveness Conflict Risk

The focus on 'defensive' and 'fault tolerance' provides some distinction, but 'shell scripts' and 'CI/CD pipelines' could overlap with general scripting or CI/CD skills. The defensive/safety angle helps but isn't strongly unique.

2 / 3

Total

9

/

12

Passed

Validation

90%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation10 / 11 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

10

/

11

Passed

Repository
administrakt0r/AI-Agents-Safe-Coding-Skills
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.