tool-call-rules

Enforce single-line Bash tool calls to prevent permission-check splitting.

Updated Aug 17, 2024
One-click install
npx skills add https://github.com/LinoWhy/.dotfiles --skill tool-call-rules
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tool-call-rules
Source: https://github.com/LinoWhy/.dotfiles/tree/main/claude/.claude/skills/tool-call-rules
Command: npx skills add https://github.com/LinoWhy/.dotfiles --skill tool-call-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforce single-line shell tool calls to prevent permission matching from splitting embedded newlines into separate commands.

Core Features & Use Cases

  • Guarantees single-line Bash commands to improve safety and determinism in tool calls.
  • Recommends splitting complex tasks into multiple tool calls instead of a single multi-line command.
  • Advises avoiding heredocs, line continuations, and cross-line wildcards when strict permission rules apply.

Quick Start

Provide a single-line shell command that accomplishes the task without embedded newlines.

Frequently Asked Questions about tool-call-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent permission checks from splitting embedded newlines into separate bash commands?▼

Enforce single-line shell tool calls to prevent permission matching from splitting embedded newlines into separate bash commands, ensuring deterministic execution and avoiding heredocs or line continuations.

Why do multi-line shell commands trigger permission errors in automation scripts?▼

Multi-line shell commands trigger permission errors because security systems often split embedded newlines into separate commands. Using single-line bash commands avoids this by ensuring the entire command is evaluated as one deterministic execution block.

How to write single-line bash commands for strict permission environments?▼

To write single-line bash commands for strict permission environments, avoid heredocs, line continuations, and cross-line wildcards. Split complex tasks into multiple separate single-line tool calls instead of using multi-line scripts.

Does using heredocs and line continuations break bash tool call determinism?▼

Yes, heredocs and line continuations break bash tool call determinism by introducing embedded newlines that risk splitting commands during permission checks. Single-line execution guarantees deterministic command processing.

What is the best way to handle complex shell tasks when strict permission rules apply?▼

The best way to handle complex shell tasks under strict permission rules is splitting them into multiple single-line tool calls. This approach avoids multi-line commands and cross-line wildcards while maintaining deterministic execution.