rewriting-code-strictly
Pass
Audited by Gen Agent Trust Hub on Nov 3, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The
strict-rewrite-implementersubagent executes shell commands to validate refactored code. It prioritizes a user-suppliedVALIDATION_COMMANDand can alternatively run standard project tools likego test,mypy, ortscif they are identified as safe within the project context. - [EXTERNAL_DOWNLOADS]: The
strict-rewrite-strategistsubagent is authorized to fetch documentation from a predefined list of trusted external sources (e.g., official Python, TypeScript, and Go docs, as well as reputable community resources like Zod and Pydantic documentation). These fetches are gated by explicit user approval (EXTERNAL_FETCH_APPROVAL) or specific reference needs. - [INDIRECT_PROMPT_INJECTION]: The skill ingests and processes untrusted source code via the
TARGET_CODEinput. - Ingestion points: The code is ingested in
SKILL.mdand analyzed by thestrict-baseline-mappersubagent. - Boundary markers: The skill lacks explicit delimiters or instructions to ignore embedded commands within the ingested code, relying on standard Markdown block formatting.
- Capability inventory: The
strict-rewrite-implementersubagent has the capability to modify files and execute shell commands. - Sanitization: No explicit sanitization or filtering of the ingested source code is performed before it is processed by the LLM.
- [DYNAMIC_EXECUTION]: The skill programmatically rewrites source code and subsequently executes it (or triggers its execution) through validation tools. This is a core function of the skill's purpose as a refactoring tool but represents a dynamic execution pattern where generated code is run in the local environment.
Audit Metadata