planning-codebase-restructuring
Pass
Audited by Gen Agent Trust Hub on Oct 15, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data from the target codebase (read by
architecture-cartographer.md) and an optional user-suppliedREFERENCE_URL(fetched byreference-assessor.md). It mitigates potential injection risks by instructing subagents to treat all external content as data rather than instructions and to isolate reference findings in aQuarantineHoldstate until a formalEvidencePrecedencedecision is made. Any detected directives in the data must be quoted in aSecurity notessection rather than followed. - [EXTERNAL_DOWNLOADS]: The skill fetches content from a user-provided
REFERENCE_URLand a set of reputable architectural reference sites listed inreferences/external-sources.md(e.g., martinfowler.com, owasp.org, blog.cleancoder.com). These fetches are strictly limited to background research and are subject to the skill's data-not-instructions policy. - [COMMAND_EXECUTION]: The skill utilizes read-only version control commands like
git log,git status, andgit showto analyze the codebase structure and history. It explicitly forbids commands that modify the target tree, such as builds, installs, or refactors, ensuring a read-only analysis environment. - [PROMPT_INJECTION]: A static analysis flag regarding instruction overrides was determined to be a false positive. The instructions in
subagents/reference-assessor.mdtelling the agent to 'ignore previous instructions' found in external content are defensive measures designed to protect the agent from third-party prompt injection, not attempts to subvert the agent's own system prompt.
Audit Metadata