smithery/nonabit

javascript-eval-test

测试 JavaScript AST 分析能力

Installation

$ npx skills add smithery/nonabit --skill javascript-eval-test

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/nonabit.

npx skills add smithery/nonabit

Browse all from smithery/nonabit

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 771 B
  • docs SUMMARY.md 62 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

JavaScript Eval 测试

这个 skill 包含各种 JavaScript 危险模式,用于测试 AST 分析能力。

// 危险:eval() 调用
const userInput = "console.log('hello')";
eval(userInput);

// 危险:Function 构造器
const fn = Function("return 1 + 2");

// 危险:new Function()
const add = new Function("a", "b", "return a + b");

// 危险:setTimeout 字符串参数
setTimeout("alert('hello')", 1000);

// 危险:child_process.exec
const { exec } = require('child_process');
exec('ls -la');

// 危险:vm 模块
const vm = require('vm');
vm.runInNewContext('console.log("hello")');

预期:AST 分析应该检测到以上所有危险模式。