typescript-master
Pass
Audited by Gen Agent Trust Hub on Oct 16, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/type-check.shis designed to execute the TypeScript compiler (tsc) to validate code quality and type safety. It intelligently searches for the compiler in the system path, localnode_modules, or executes it vianpx. - [EXTERNAL_DOWNLOADS]: The inclusion of
npx tscin the helper script may result in the download of the official TypeScript package from the public npm registry if the package is not already cached or installed locally. This is a standard behavior for modern JavaScript/TypeScript development environments. - [INDIRECT_PROMPT_INJECTION]: Because the skill is designed to ingest and process TypeScript source code and compiler outputs from user-provided project directories, it possesses an inherent attack surface for indirect prompt injection. Maliciously crafted code comments or string literals within a processed project could attempt to influence the agent's reasoning, though no specific exploits are present in the skill itself.
- Ingestion points: The script runs
tscon files within thePROJECT_DIRspecified at runtime (found inscripts/type-check.sh). - Boundary markers: Absent; the agent receives the raw compiler error samples encapsulated in a JSON structure.
- Capability inventory: The skill can execute shell commands via
scripts/type-check.sh, includingfind,grep, andtsc. - Sanitization: The script performs basic sanitization by escaping double quotes in the
ERROR_SAMPLEoutput to maintain valid JSON structure. - [DATA_EXPOSURE_AND_EXFILTRATION]: The helper script accesses project-specific files such as
tsconfig.jsonand performs directory traversals usingfindto count TypeScript files. These operations are scoped to the project directory provided to the script and are necessary for the skill's stated purpose of type analysis.
Audit Metadata