Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

Add "scripts over bash chains" guidance to skill-creator and project-health

Jeremy Dawes992ece8c04be
diff --git a/plugins/dev-tools/skills/project-health/SKILL.md b/plugins/dev-tools/skills/project-health/SKILL.md
index 3836583c..40dda089 100644
--- a/plugins/dev-tools/skills/project-health/SKILL.md
+++ b/plugins/dev-tools/skills/project-health/SKILL.md
@@ -42,6 +42,9 @@ Report:
6. Duplicates: entries covered by a broader pattern (e.g. Bash(git add *) redundant if Bash(git *) exists)
7. Missing presets: based on files present, suggest presets from [permission-presets.md]
+Prefer Read/Glob/Grep tools over Bash. If you need to scan multiple files or
+run 3+ commands for one analysis, write a Python script to /tmp and run it once.
+
Return a structured summary, not raw data.
```
@@ -68,6 +71,10 @@ Audit the project context landscape at [repo-path]:
5. Check auto-memory at ~/.claude/projects/*/memory/MEMORY.md
+Prefer Read/Glob/Grep tools over Bash. If you need to scan many files or
+aggregate data across the repo, write a Python script to /tmp and run it once
+rather than running many individual bash commands.
+
Return: project type, quality scores, missing docs, stale refs, overlaps,
size violations, and total markdown footprint.
```
diff --git a/plugins/dev-tools/skills/skill-creator/SKILL.md b/plugins/dev-tools/skills/skill-creator/SKILL.md
index 8316823c..9f1ab05b 100644
--- a/plugins/dev-tools/skills/skill-creator/SKILL.md
+++ b/plugins/dev-tools/skills/skill-creator/SKILL.md
@@ -277,6 +277,18 @@ Consult these helpful guides based on your skill's needs:
These files contain established best practices for effective skill design.
+#### Prefer Scripts Over Bash Chains
+
+If a skill step involves collecting data from multiple sources, scanning files, or bulk operations, instruct Claude to **write and run a script** rather than listing individual bash commands. Each bash command requires a separate user approval — a step that runs 10 commands creates 10 approval prompts.
+
+| Instead of... | Instruct... |
+|---------------|-------------|
+| "Run `git log`, then `grep`, then `jq`..." | "Write a Python script that collects git history, extracts patterns, and outputs a summary. Run it from /tmp." |
+| "For each file, run `cat` and check..." | "Write a script that scans all matching files and returns a structured report." |
+| "Run these 5 curl commands..." | "Write a script that makes the API calls and aggregates results." |
+
+**Rule of thumb**: If a step needs 3+ bash commands for one logical operation, it should be a script. One Write + one Bash run = 2 approvals instead of many.
+
#### Start with Reusable Skill Contents
To begin implementation, start with the reusable resources identified above: `scripts/`, `references/`, and `assets/` files. Note that this step may require user input. For example, when implementing a `brand-guidelines` skill, the user may need to provide brand assets or templates to store in `assets/`, or documentation to store in `references/`.