ast-code-graph
Pass
Audited by Gen Agent Trust Hub on Sep 19, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]:
- Ingestion points: The scripts
scripts/build-graph.pyandscripts/parse-js.mjsrecursively read source files from the user project to build dependency graphs and symbol lists. - Boundary markers: Data is processed as raw source code; outputs do not include explicit boundary markers or warnings differentiating code structure from embedded string/comment content.
- Capability inventory: The skill utilizes
ast-grep(which supports file rewriting via-r) and provides test scripts that usesubprocessandexecFileSyncto call internal helpers. - Sanitization: Content is analyzed via static parsing (Abstract Syntax Tree) rather than execution, which effectively limits the risk to output poisoning.
- [EXTERNAL_DOWNLOADS]:
- The
SKILL.mdcontains instructions for installing theast-greputility using well-known services and package registries:npm install -g @ast-grep/cli,brew install ast-grep, andcargo install ast-grep --locked. - [COMMAND_EXECUTION]:
- The skill is built to generate and execute structural search and refactoring commands using
ast-grep. - Test files
tests/test_build_graph.pyandtests/test-parse-js.mjsutilizesubprocess.runandexecFileSyncrespectively to invoke the bundled analysis scripts during development and testing.
Audit Metadata