ts-pattern-refactor

Pass

Audited by Gen Agent Trust Hub on Sep 21, 2026

Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill uses several shell commands to identify code patterns and verify changes.
  • Utilizes rg (ripgrep) and awk to scan the src/ directory for nested ternaries, repeated discriminator checks, and JSX fragment chains.
  • Executes project verification commands including pnpm typecheck, pnpm lint, pnpm test, and npx tsc to ensure refactored code maintains integrity.
  • [INDIRECT_PROMPT_INJECTION]: The skill has an attack surface for indirect prompt injection as it processes untrusted source code from the repository.
  • Ingestion points: Reads files within the src/ directory via rg and accesses project-specific memory at ~/.claude/projects/<this-project>/memory/feedback_ts_pattern_threshold.md.
  • Boundary markers: The instructions do not define specific boundary markers or 'ignore' instructions for the content being refactored.
  • Capability inventory: The skill can execute shell commands, read/write local files, and invoke MCP tools for symbol searching and documentation querying.
  • Sanitization: There is no explicit sanitization of the content read from the codebase before it is used to influence the refactoring process.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 21, 2026, 11:46 AM