You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Audit skill prompts: prefer dedicated tools over bash for file operations #265
Claude Code v2.1.31 improved system prompts to guide the model toward dedicated tools (Read, Edit, Glob, Grep) instead of bash equivalents (cat, sed, find, grep). Sequant skills should align with this guidance.
Security — Reducing bash usage in skill prompts minimizes shell injection surface area. Dedicated tools have built-in sandboxing; bash does not.
Efficiency — Dedicated tools are optimized for their purpose. Bash file operations are more likely to fail (permissions, quoting, path issues) and trigger retries, wasting tokens and time.
Best practice alignment — Skills that follow Claude Code's own guidance will work better as the platform evolves.
Scope
Audit all skill prompts in .claude/skills/ and templates/skills/ for:
cat, head, tail → should suggest Read
sed, awk → should suggest Edit
find, ls for file discovery → should suggest Glob
grep, rg → should suggest Grep
echo >, heredoc writes → should suggest Write
Only flag cases where the skill prompt explicitly instructs bash usage for file operations. No need to change prompts that don't mention file operations at all.
Acceptance Criteria
All skill files in .claude/skills/ audited
All template files in templates/skills/ audited
Both locations updated independently (do NOT run sync:skills)
Any changes preserve existing skill behavior — only the tool choice changes, not the logic
Clear, focused changes that address the issue's scope
Good decision-making about what patterns to update vs. keep
Consistent updates across both .claude/skills/ and templates/skills/
Well-formatted pseudo-code examples for tool usage (Grep(pattern="..."))
Issues:
Minor: The exec comment claimed "none found" for cat file | jq patterns, but 7 instances exist (e.g., cat .sequant/settings.json | jq). These are arguably edge cases since they pipe to jq for JSON field extraction rather than pure file reading.
Suggestions:
Consider a follow-up issue to evaluate remaining cat file | jq patterns
The remaining grep -r patterns in exec/assess/qa skills could be evaluated in a future pass
Skill Command Verification
Skill files changed: 3 (plus 2 templates)
The changes convert bash commands to Claude Code tool pseudo-code notation:
Activity
admarble commentedon Feb 20, 2026
📋 Spec Plan: Audit skill prompts for dedicated tool usage
Acceptance Criteria
.claude/skills/audited (18 files)templates/skills/audited (15 files)Verification Methods
.claude/skills/*/SKILL.mdfor bash file ops, update to recommend dedicated toolstemplates/skills/*/SKILL.mdfor bash file ops, update to recommend dedicated toolsImplementation Plan
Phase 1: Audit
cat,head,tail→Read;sed,awk→Edit;find,ls→Glob;grep,rg→Grep;echo >→WritePhase 2: Update
.claude/skills/2. Update flagged files (spec, exec, merger, release, verify, clean, qa, security-review)
Phase 3: Update
templates/skills/3. Update template files independently
4. Exclude
qa/scripts/quality-checks.sh(dedicated bash script)Phase 4: Verify
5. Confirm behavior preserved, both directories updated
Key Decisions
cat file | jqpatternReadtool.shscriptsScope Assessment
✅ SCOPE_OK — Single focused audit task with clear boundaries
Files Likely Needing Changes
.claude/skills/: spec, exec, merger, release, verify, clean, qa, security-reviewtemplates/skills/: spec, exec, qa, security-review, test, clean, improve, assessNon-Goals
.shfiles)Ready for implementation via
/exec 265refactor(#265): prefer dedicated tools over bash for file operations
admarble commentedon Feb 20, 2026
Exec Progress Update
AC Coverage
.claude/skills/auditedtemplates/skills/auditedFiles Changed
.claude/skills/:improve/SKILL.md- Updated 5 detection strategy sections to recommend Grep/Glob toolsrelease/SKILL.md- Updated version update section to recommend Edit tool instead of sedsecurity-review/references/security-checklists.md- Updated 18 "How to Verify" sections to use Grep tooltemplates/skills/:improve/SKILL.md- Same changes as .claude/skills versionsecurity-review/references/security-checklists.md- Same changes as .claude/skills versionDecision Log
grepon CLI output (git, gh)grep -r ... path/on filesfind src -name "*.ts"sed -ifor file editingcat file | jqhead/tailon command outputcat <<'EOF'heredocsBuild/Lint/Test Results
npm run buildnpm run lintnpm testPR Created
PR #309: #309
admarble commentedon Feb 20, 2026
QA Review for Issue #265
AC Coverage
.claude/skills/audited (18 files)templates/skills/audited (15 files)Coverage: 4/4 AC items fully met
Quality Plan Verification
N/A - No quality plan found in issue comments
CI Status
build (18.x)build (20.x)build (22.x)validate-skillstypecheckvalidate-pluginCI Summary: 3 passed, 3 pending, 0 failed
CI-related AC items: None explicitly CI-dependent
Quality Metrics
any)Build Verification
N/A - Build passed ✅
Test Coverage Analysis
All changed files are Markdown documentation files (
.md), not source code. No unit tests required..claude/skills/improve/SKILL.md.claude/skills/release/SKILL.md.claude/skills/security-review/references/security-checklists.mdtemplates/skills/improve/SKILL.mdtemplates/skills/security-review/references/security-checklists.mdCoverage: N/A - Documentation-only changes
Code Review
Strengths:
.claude/skills/andtemplates/skills/Grep(pattern="..."))Issues:
cat file | jqpatterns, but 7 instances exist (e.g.,cat .sequant/settings.json | jq). These are arguably edge cases since they pipe to jq for JSON field extraction rather than pure file reading.Suggestions:
cat file | jqpatternsgrep -rpatterns in exec/assess/qa skills could be evaluated in a future passSkill Command Verification
Skill files changed: 3 (plus 2 templates)
The changes convert bash commands to Claude Code tool pseudo-code notation:
grep -r pattern path/→Grep(pattern="...", path="...")find . -name "*.ts"→Glob(pattern="**/*.ts")sed -i→Edit(file_path="...", old_string="...", new_string="...")These are instructional examples showing how to invoke tools, not executable bash commands.
.claude/skills/improve/SKILL.md.claude/skills/release/SKILL.md.claude/skills/security-review/references/security-checklists.mdVerification Status: Passed (pseudo-code syntax is valid)
Self-Evaluation
Verdict: NEEDS_VERIFICATION
Reasoning:
Once CI completes successfully, this is ready for merge.
Documentation
Next Steps
cat file | jqandgrep -rpatternsfix(#265): convert remaining file operation bash patterns to dedicate…
admarble commentedon Feb 20, 2026
QA Review for Issue #265 (Re-run after fixes)
AC Coverage
Coverage: 4/4 AC items fully met
Quality Plan Verification
N/A - No quality plan found
CI Status
CI Summary: 6 passed, 0 pending, 0 failed
Quality Metrics
Test Coverage Analysis
All 13 changed files are Markdown documentation (.md). No source code or runtime behavior changes. No tests required.
Code Review
Strengths:
Issues: None
Remaining Bash Patterns (Valid Exclusions)
Skill Command Verification
Changes convert bash to pseudo-code notation (Grep, Glob, Edit). Not executable bash. Syntax verified against tool APIs. Status: Passed
Self-Evaluation
Verdict: READY_FOR_MERGE
All 4 ACs met. All CI checks pass. 13 files updated across 2 commits converting bash file operation patterns to Claude Code dedicated tool pseudo-code. Remaining bash patterns are valid exclusions. Previous QA gaps (assess, exec, qa skills) addressed in fix commit.
Documentation
Next Steps
fix(#265): convert cat file reads to Read tool across remaining skills
admarble commentedon Feb 20, 2026
Documentation Review Complete
This issue contains documentation-only changes. No additional documentation generation required.
Files Modified (21):
.claude/skills/ (13 files):
templates/skills/ (8 files):
Summary:
Converted bash file operation patterns to Claude Code dedicated tool pseudo-code (Grep, Glob, Edit, Read) across all skill prompts and templates.
Status:
Documentation changes merged via PR #309 (squash merge, 2026-02-20).
docs: update what-weve-built and changelog for #265
fix(#299): address QA gaps — tool consistency, arrow exports, step al…