golang-refactoring
Pass
Audited by Gen Agent Trust Hub on Sep 2, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill operates on Go source code files which serve as untrusted ingestion points. An attacker who can influence the repository's code could embed malicious instructions in comments or string literals to influence the agent's behavior during a refactoring pass.
- Ingestion points: The skill reads all files matching
**/*.go(specified inSKILL.md). - Boundary markers: The skill explicitly requires human sign-off via the environment's question tool for all planning stages and irreversible decisions, preventing autonomous obedience to embedded instructions.
- Capability inventory: The agent has permissions to
WriteandEditfiles, and executeBashcommands forgo,git,gh, andgopls(specified inSKILL.md). - Sanitization: The skill prioritizes mechanical transformations using
goplsand other AST-aware tools over manual edits, which limits the surface for simple textual injection. - [EXTERNAL_DOWNLOADS]: The skill fetches and installs several Go development tools from official and well-known sources during its setup process.
- Evidence: Installs
golang.org/x/tools/goplsandgolang.org/x/perf/cmd/benchstat(official Google/Go repositories). It also referencesgithub.com/uber-go/gopatchandgithub.com/dave/dst, which are well-known tools within the Go ecosystem.
Audit Metadata