smithery.ai

python-false-positive-test

测试 AST 能区分注释和代码中的危险模式

First seen Mar 21, 2026

Installation

$ npx skills add https://smithery.ai

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.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

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 741 B
  • docs SUMMARY.md 87 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Python False Positive 测试

这个 skill 包含注释和字符串中的危险模式,但实际代码是安全的。

# 注意:不要使用 eval() 因为它很危险
# eval() is dangerous and should be avoided

def safe_function():
    """
    这个函数是安全的。
    警告:永远不要使用 exec() 或 eval()
    """
    message = "Don't use eval() in production code"
    print(message)

    # 安全的代码
    x = 1 + 2
    return x

# 调用安全函数
result = safe_function()
print(f"Result: {result}")

预期:AST 分析不应该报告问题(注释和字符串不是真实代码)。