Skip to main content

Module prompt_shell_execution

Module prompt_shell_execution 

Source
Expand description

Skill prompt shell command execution.

Parses skill markdown content and executes embedded shell commands. Supports two syntaxes:

  • Code blocks: ! command
  • Inline: !command

Results are substituted back into the prompt text.

Enums§

FrontmatterShell
Shell type from skill frontmatter

Functions§

build_shell_command
Build a shell command with proper escaping (legacy API)
can_execute_skill_shell
Check if a shell command in a skill should be allowed.
execute_prompt_shell
Execute a shell command and return the result (legacy API)
execute_shell_commands_in_prompt
Parse shell commands from text and execute them, substituting output back.