typescript-best-practices
Pass
Audited by Gen Agent Trust Hub on Aug 29, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill is designed to process external, untrusted data (user-provided TypeScript code and git diffs) which could contain malicious instructions intended to manipulate the agent's behavior during the review or refactoring process.
- Ingestion points: The workflow in
references/review-and-fix-changes.mdinvolves reading file contents and diffs viagit status,git diff, andgit show. - Boundary markers: The skill uses git logic to define a clear review scope, which provides a logical boundary, but it lacks explicit instructions to ignore or sanitize embedded instructions within the code being analyzed.
- Capability inventory: The skill grants the agent the ability to execute shell commands (
git,jscpd) and perform file modifications (applying 'obvious fixes'). - Sanitization: No specific content sanitization or validation of the ingested code for prompt injection patterns is implemented.
- [COMMAND_EXECUTION]: The skill uses several shell commands for its core functionality.
- In
SKILL.md, it executesgit rev-parse --show-toplevelandbunx --yes jscpdto perform code duplication analysis. - In
references/review-and-fix-changes.md, it uses a variety ofgitcommands (status,diff,show,log,merge-base) to determine the scope of changes to be reviewed. These are standard development tools and their use is consistent with the skill's stated purpose. - [EXTERNAL_DOWNLOADS]: The skill utilizes
bunx --yes jscpdinSKILL.md. This command downloads thejscpdpackage from the npm registry and executes it. This is a well-known code analysis utility, and the download is performed from a standard service (npm).
Audit Metadata