360 Secure SkillHub
360 安全技能中心

Code Review

通过 node 脚本或 curl 调用 LogicArt 的 analyze 接口,对代码片段或文件做 AI 代码审查,返回 bug、安全问题、复杂度评分、改进建议与逻辑流程;整仓库扫描需使用 Validate Repo,代码会上传到外部服务。

jpaulgrayson
jpaulgrayson
热度 69.68
最近更新 2026-05-17 12:48:05
分类:开发依赖:代码执行 / 第三方 API / 读写文件应用场景:代码审查 / 调试排错

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add quack-code-review
Metadata
name
code-review
description
AI-powered code analysis via LogicArt — find bugs, security issues, and get logic flow visualizations. Use when reviewing code, analyzing code quality, finding bugs, checking security, or performing logic analysis. Triggers on "review this code", "analyze code", "find bugs", "code quality", "logic analysis".

Code Review

AI code analysis powered by LogicArt at https://logic.art.

Analyze Code

node {baseDir}/scripts/analyze.mjs --code "function add(a,b) { return a - b; }"

Or analyze a file:

node {baseDir}/scripts/analyze.mjs --file path/to/code.js

API

Endpoint: POST https://logic.art/api/agent/analyze

curl -s -X POST "https://logic.art/api/agent/analyze" \
  -H "Content-Type: application/json" \
  -d '{"code": "your code here", "language": "javascript"}'

Response typically includes: bugs, security issues, complexity score, suggestions, and logic flow.

Full Repository Scans

For scanning entire repositories, use Validate Repo: https://validate-repo.replit.app

Presenting Results

When showing results to the user:

  1. Lead with critical bugs/security issues
  2. Show complexity score
  3. List suggestions by priority
  4. Include logic flow if provided

Works Great With

  • workflow-engine — Chain code reviews into CI/CD pipelines
  • quack-coordinator — Hire specialist reviewer agents

Powered by Quack Network 🦆