js-code-analysis

Detect security vulnerabilities in JavaScript/TypeScript projects using AST patterns.

73|29|Updated Oct 19, 2017
One-click install
npx skills add https://github.com/mswell/dotfiles --skill js-code-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: js-code-analysis
Source: https://github.com/mswell/dotfiles/tree/main/setup/Skills/js-code-analysis
Command: npx skills add https://github.com/mswell/dotfiles --skill js-code-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @ast-grep/cli, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill provides specialized JavaScript/TypeScript code analysis to identify common security vulnerabilities in web applications, supporting bug bounty workflows and secure development practices.

Core Features & Use Cases

  • Framework-aware scanning for Express.js and Next.js to map routes, identify risky patterns, and produce actionable findings.
  • Pattern-based vulnerability detection leveraging a curated set of JavaScript security patterns (prototype pollution, IDOR, SSRF, command injection, NoSQL injection, XSS, etc.) with examples and remediation tips.
  • Reporting ready outputs including structured JSON and readable Markdown reports suitable for security reviews and stakeholder communication.

Quick Start

Analyze a target JavaScript project by running the analyze.js script against the codebase.

Frequently Asked Questions about js-code-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan a JavaScript project for security vulnerabilities like prototype pollution and SSRF?

To scan JavaScript projects for security vulnerabilities, this skill applies AST patterns to detect issues like prototype pollution, SSRF, and XSS. It maps routes and generates findings with proof-of-concept examples and remediation guidance in JSON or Markdown formats.

Can I detect NoSQL and SQL injection vulnerabilities in Express.js applications?

Yes, you can detect NoSQL and SQL injection in Express.js applications using framework-aware scanning. The analysis maps routes and identifies risky patterns to produce actionable findings with specific remediation tips for your web security review.

What is AST pattern matching for JavaScript code analysis?

AST pattern matching for JavaScript code analysis is a technique that parses code structure to identify risky security patterns like command injection and XSS. It aggregates matches to map endpoints and generate structured reports for bug bounty workflows.

Does this static code analysis tool support Next.js route mapping?

Yes, this static code analysis tool supports Next.js route mapping to identify endpoints and apply framework-specific security checks. It scans your codebase to detect vulnerabilities and outputs structured JSON or readable Markdown reports for stakeholder communication.

What's the best way to automate bug bounty workflows for TypeScript security reviews?

Automating bug bounty workflows for TypeScript security reviews involves using specialized code analysis to detect vulnerabilities like IDOR and XSS. This skill applies curated security patterns to generate actionable findings with proof-of-concept examples and remediation guidance.

What are the limitations of using AST patterns for web security code analysis?

AST pattern matching for web security code analysis relies on predefined structural rules, meaning it may miss complex runtime vulnerabilities or dynamic code execution issues. It focuses on detecting known patterns like prototype pollution and injection flaws in JavaScript and TypeScript projects.