inherit-legacy-style
Pass
Audited by Gen Agent Trust Hub on Oct 22, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONPERSISTENCECOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill analyzes external codebase files to extract style conventions, which creates a surface for instructions embedded in those files to influence agent behavior. (1) Ingestion points: Repository source files accessed via Read, Glob, and Grep tools (SKILL.md). (2) Boundary markers: Absent; there are no instructions to ignore or delimit potentially malicious content within the scanned code. (3) Capability inventory: The skill utilizes Bash, Edit, Write, and Read tools. (4) Sanitization: No sanitization or verification of the content extracted from the codebase is performed.
- [PERSISTENCE]: The skill provides an option to install a 'Hard hook' that modifies the agent's environment configuration. Evidence: The 'Workflow' section (Step 6) describes modifying settings.json to include a PreToolUse hook. This configuration ensures the style rules are checked before specific tools are executed in future sessions.
- [COMMAND_EXECUTION]: The skill executes shell commands to perform codebase metrics and change tracking. Evidence: Uses git ls-files, git diff, and git log via the Bash tool to determine project scale and incremental changes (SKILL.md).
Audit Metadata