ce-simplify-code
Pass
Audited by Gen Agent Trust Hub on Nov 7, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill's primary function involves reading and processing arbitrary source code files from the repository to identify simplification opportunities. This code is passed as full content to specialized sub-agents (Reviewer Personas), creating an attack surface for indirect prompt injection.
- Ingestion points: Repository files identified in
SKILL.md(Step 1) and processed via thescripts/structure-evidence.pyscript. - Boundary markers: The instructions do not specify robust delimiters (e.g., XML tags or random nonces) to isolate untrusted code content when it is interpolated into sub-agent prompts.
- Capability inventory: The skill has permissions to modify files (
Step 3), execute shell commands for linting and testing (Step 4), and spawn additional agents (Step 2). - Sanitization: No explicit sanitization or filtering of code content is described before it is processed by the LLM sub-agents.
- [COMMAND_EXECUTION]: The skill utilizes shell commands to perform repository analysis and validate changes.
- Evidence:
references/structural-pass.mdexecutes a local Python scriptscripts/structure-evidence.pyprovided with the skill. - Evidence: The
scripts/structure-evidence.pyscript usessubprocess.runto executegitcommands such asls-files,log, andrev-parse. These are used safely with the--separator to prevent argument injection from file paths. - Evidence:
SKILL.md(Step 4) instructs the agent to run project-configured typecheckers, linters, and test suites, which involves executing arbitrary commands defined in the project's configuration.
Audit Metadata