write-agents-md
Pass
Audited by Gen Agent Trust Hub on Oct 6, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill is designed to process external instruction files (
AGENTS.md,CLAUDE.md, etc.) which serve as the primary ingestion point for untrusted data. Thescripts/check_instructions.pyscript extracts shell commands from these files, including those in fenced code blocks (sh,bash,console) and backticked spans. - Ingestion points: The skill reads files matching
^(AGENTS|CLAUDE|CLAUDE\.local)\.md$and files in.claude/rules/. - Capability inventory: The agent is instructed to use
fdto find files andpython3to run the validation script. Crucially, the workflow instructs the agent to "Run every other command you list... before writing it down" to verify their validity. - Boundary markers: The skill provides natural language constraints: "Do not run destructive, publishing, deploy, migration, network, or credentialed commands; run at most their --help or a dry run."
- Sanitization: The
check_instructions.pyscript performs no sanitization of the extracted commands; it simply identifies them for the agent's review. The security relies entirely on the agent's adherence to the safety instructions inSKILL.mdwhen processing the extracted commands. - [COMMAND_EXECUTION]: The skill requires the agent to execute shell commands for discovery (
fd) and validation (python3 scripts/check_instructions.py). It also explicitly encourages the execution of commands found within the audited documentation to ensure they are not stale or "invented."
Audit Metadata