text-optimize

Pass

Audited by Gen Agent Trust Hub on Oct 17, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill processes text from user-provided files and modifies them using the agent's write capabilities. This creates a surface for indirect prompt injection where malicious instructions within the data could attempt to influence the agent's behavior.
  • Ingestion points: Target files passed via command arguments (e.g., Markdown files, system prompts) in the SKILL.md workflow.
  • Boundary markers: The skill instructions emphasize preservation of meaning, negations, and numbers, and it uses a multi-agent workflow (analysis, optimization, verification) to isolate tasks.
  • Capability inventory: The skill has access to Read, Write, Edit, and Bash tools to modify the project environment.
  • Sanitization: Changes are gated by a mandatory mechanical verification script (text-guard.sh) that checks for preserved critical tokens (numbers, paths, negations) and an independent semantic verification agent.
  • [COMMAND_EXECUTION]: The skill executes local shell scripts using the Bash tool to manage file safety and verification.
  • Evidence: The scripts/text-guard.sh script is used for snapshot, verify, and restore operations to prevent data loss or corruption during optimization by creating a secure pre-state of the files.
  • [EXTERNAL_DOWNLOADS]: The skill references external documentation and research to support its optimization strategies.
  • Evidence: Reference files (rules-review.md, max-compression.md, etc.) include links to official Anthropic documentation and research papers on ArXiv which are used to justify specific token reduction techniques.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 17, 2026, 02:34 PM