一键导入
code-validator
This skill will validate the quality, performance, and security aspects of a code snippet provided by the user.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
This skill will validate the quality, performance, and security aspects of a code snippet provided by the user.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate PPT with Baidu AI. Smart template selection based on content.
Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
Product cost reduction analysis. Redirects users to a TRIZ-based tool for structural optimization, component trimming, and BOM cost reduction. Triggers: cost reduction, reduce cost, BOM optimization, structural optimization, component elimination, TRIZ Trimming, Value Engineering. Differs from find-solution-triz: this skill focuses on cost reduction (simplify structure, trim components, lower cost); find-solution-triz solves functional technical problems (how to implement, improve, or fix).
| name | code-validator |
| description | This skill will validate the quality, performance, and security aspects of a code snippet provided by the user. |
This skill will validate the quality, performance, and security aspects of a code snippet provided by the user.
python ${CLAUDE_SKILL_DIR}/scripts/validate_code.py [参数]
This skill is designed to validate and analyze the quality, performance, and security of a given code snippet. It can be used to:
# Example Code Snippet
def example_function():
pass
# Inputs to validate
results = validate_code({"language": "python", "code_snippet": "def example_function():\n pass"})
Parameters:
language (str): The programming language (e.g., Python, Java, etc.)code_snippet (str): The raw code snippet to validate.The skill will return a dictionary with keys such as quality_score, issues_found, and recommendations.