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.mdworkflow. - 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, andBashtools 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
Bashtool to manage file safety and verification. - Evidence: The
scripts/text-guard.shscript is used forsnapshot,verify, andrestoreoperations 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