miso2233/sonettohere/syntax-check

Claude Code and agent skill by miso2233/sonettohere

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

检查代码语法错误,支持 Python(ast.parse)、JavaScript(node --check)、TypeScript(tsc)。适用于用户想检查代码语法、排查编译错误、验证代码片段正确性时。

Install

npx vskill@latest install miso2233/sonettohere/syntax-check

SKILL.md

Syntax Check

检查代码语法错误。支持 Python、JavaScript、TypeScript 三种语言的语法检测,可接受直接传入代码字符串或指定文件路径。

脚本位置

${SKILL_DIR}/scripts/check_syntax.py

运行方式:

bash
uv run "${SKILL_DIR}/scripts/check_syntax.py" [--code CODE] [--file PATH] [--language LANG]

使用方式

在对话中提供需要检查的代码或文件路径,Claude 会调用脚本执行检查。

支持的语言

语言检测方式前提条件
Pythonast.parse()无(标准库)
JavaScriptnode --checkNode.js
TypeScriptnpx typescript --noEmitNode.js

参数

参数说明
--code CODE直接传入代码字符串
--file PATH代码文件路径(优先于 --code)
--language LANG语言:python / javascript / typescript(默认 python)

输出

检查通过:

json
{"status": "ok", "language": "python", "errors": [], "warnings": []}

检查失败(含具体行号、列号、错误消息):

json
{"status": "error", "language": "python", "errors": [{"line": 5, "column": 8, "message": "invalid syntax", "type": "SyntaxError"}], "warnings": []}

注意事项

  • Python 检查使用标准库 ast,无需额外依赖
  • JS/TS 检查依赖本地 Node.js 运行时
  • 仅做语法层面的静态检查,不执行代码
  • 脚本零外部依赖,可用 uv run 直接执行

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
71
Repository forks
13
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/miso2233/sonettohere/syntax-check/badge)](https://verified-skill.com/skills/miso2233/sonettohere/syntax-check)

Something wrong with this skill or its page? Tell us.