oma-refactor
Pass
Audited by Gen Agent Trust Hub on Oct 11, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests and processes source code and git history from the local repository, which serves as a surface for indirect prompt injection if those files contain malicious instructions.\n
- Ingestion points: Target source files and git history are read into the agent's context during the ACQUIRE scene of the Refactor Agent workflow.\n
- Boundary markers: The instructions do not define specific delimiters or "ignore embedded instructions" warnings for the interpolation of target code into the reasoning process.\n
- Capability inventory: The skill possesses the capability to write to the filesystem, call external codemod tools, and execute the project's test suite via subprocess calls.\n
- Sanitization: No explicit sanitization or filtering of the source code content is described before it is processed by the agent.- [COMMAND_EXECUTION]: The skill executes shell commands to analyze git history and measure code complexity.\n
- Evidence: The
resources/hotspots.pyscript usessubprocess.runto callgit log,git diff-tree, and thelizardtool.\n - Safeguards: Command execution is performed using list-based arguments rather than shell strings, avoiding shell interpolation risks. Additionally, the
measurefunction inhotspots.pyvalidates that the target file path is within the repository root usingis_relative_tobefore execution.- [EXTERNAL_DOWNLOADS]: The documentation mentions the use ofuvxfor running thelizardcomplexity tool, which may involve fetching the package from a remote registry.\n - Evidence:
resources/measurement.mdsuggests usinguvx lizardto run the tool.\n - Context: The usage targets a well-known tool (
lizard) via a standard package runner (uvx) from a trusted registry (PyPI), which constitutes a safe developer workflow. The skill's own implementation inhotspots.pychecks for the tool's presence locally rather than automatically downloading it.
Audit Metadata