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-implementer subagent executes shell commands to validate refactored code. It prioritizes a user-supplied VALIDATION_COMMAND and can alternatively run standard project tools like go test, mypy, or tsc if they are identified as safe within the project context.
  • [EXTERNAL_DOWNLOADS]: The strict-rewrite-strategist subagent 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_CODE input.
  • Ingestion points: The code is ingested in SKILL.md and analyzed by the strict-baseline-mapper subagent.
  • 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-implementer subagent 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
Risk Level
SAFE
Analyzed
Nov 3, 2026, 12:40 PM