360 Secure SkillHub
360 安全技能中心

Ai Code Explainer

AI 代码解释 Skill:接收代码片段、语言与详细程度,输出通俗英文说明、时间/空间复杂度分析、使用场景与优化建议,并可生成注释;声称支持十余种编程语言。通过 SkillPay 按次计费,需配置 SKILLPAY_API_KEY。

mosonchan2023
mosonchan2023
热度 54.37
最近更新 2026-03-15 13:39:54
分类:知识依赖:内部调用大模型 / 第三方 API应用场景:概念解释 / 教学辅导

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add ai-code-explainer
Metadata
name
ai-code-explainer
description
AI-powered code explainer that explains any code in plain English. Each call charges 0.001 USDT via SkillPay.
version
1.0.0
author
moson
tags
["ai","explainer","documentation","learning","code-understanding"]
homepage
https://github.com/moson/ai-code-explainer
metadata
{"clawdbot":{"requires":{"env":["SKILLPAY_API_KEY"]}}}
triggers
["explain code","code explain","what does this code do","explain function","code documentation","understand code","code tutorial","learn code"]
config
{"SKILLPAY_API_KEY":{"type":"string","required":true,"secret":true}}

AI Code Explainer

功能

AI-powered code explanation tool that helps developers understand any code snippet in plain English.

核心功能

  • Plain English Explanation: Understand code without reading line by line
  • Function Flow Analysis: Trace how data flows through functions
  • Algorithm Explanation: Understand complex algorithms
  • Documentation Generation: Auto-generate code comments
  • Time Complexity Analysis: Know the performance implications
  • Dependency Analysis: Understand external dependencies

支持的语言

  • JavaScript / TypeScript
  • Python
  • Java
  • Go
  • Rust
  • C/C++
  • Ruby
  • PHP
  • SQL
  • HTML/CSS

使用方法

{
  "action": "explain",
  "code": "function fibonacci(n) { return n <= 1 ? n : fibonacci(n-1) + fibonacci(n-2); }",
  "language": "javascript",
  "detail_level": "detailed"
}

输出示例

{
  "success": true,
  "explanation": "This is a recursive function that calculates the nth Fibonacci number...",
  "complexity": "O(2^n) - exponential time complexity",
  "use_cases": ["Mathematical calculations", "Interview preparation"],
  "alternatives": "Consider using memoization for better performance"
}

价格

每次调用: 0.001 USDT

常见问题

Q: 能解释多长的代码? A: 建议每次不超过 500 行代码 for best results.

Q: 支持注释生成吗? A: 是的,设置 detail_level 为 "with-comments" 获取带注释的代码。

Q: 能分析算法复杂度吗? A: 是的,会自动分析时间复杂度和空间复杂度。