360 Secure SkillHub
360 安全技能中心

GitHub Code Analyzer

该 Skill 通过 git clone(--depth 1)拉取公开 GitHub 仓库,抽样多种语言的代码文件,调用 DeepSeek API 评估代码质量、识别缺陷与安全问题并给出改进建议;API 调用失败时回退为仅结构分析,最终以文本形式输出项目结构概览与分析结论。

woaim65
woaim65
热度 63.68
最近更新 2026-05-18 12:28:13
分类:开发依赖:代码执行 / 读写文件 / 第三方 API / 内部调用大模型应用场景:代码审查 / 调试排错 / 报告撰写

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add github-code-analyzer
Metadata
name
github-code-analyzer
description
Clone and analyze GitHub project code quality using DeepSeek AI

GitHub Code Analyzer

A skill for analyzing GitHub repository code quality, bugs, and security issues using DeepSeek AI.

Features

  • Clone any public GitHub repository
  • Analyze project structure
  • Identify code bugs and security vulnerabilities
  • Provide improvement suggestions
  • Support multiple AI models

Usage

analyze https://github.com/owner/repo
analyze https://github.com/owner/repo --model deepseek

Parameters

Parameter Type Description Default
repo string GitHub repository URL required
model string AI model to use (deepseek, deepseek-coder) deepseek

Examples

# Analyze a repository
analyze https://github.com/Openwrt-Passwall/openwrt-passwall

# Use specific model
analyze https://github.com/facebook/react --model deepseek-coder

Supported Models

  • deepseek - General purpose analysis
  • deepseek-coder - Optimized for code analysis

Output

The analyzer provides:

  1. Project structure overview
  2. Code quality assessment
  3. Bug and security issue identification
  4. Improvement suggestions

Technical Details

  • Uses git clone with --depth 1 for fast cloning
  • Samples code files from multiple languages
  • Integrates with DeepSeek API for AI analysis
  • Falls back to structure-only analysis if API fails

License

MIT