Code Generator

👤 xueyetianya 📦 v2.3.4 ⭐ 4.1 ⬇️ 4.5K 下载
💻 开发编程 免费

📖 技能介绍


version: "2.0.0" name: code-generator description: "Multi-language code generator. Generate functions, classes, API endpoints, CRUD operations, test code, refactoring suggestions, language conversion guides." author: BytesAgain homepage: https://bytesagain.com source: https://github.com/bytesagain/ai-skills


⚡ Code Generator — Multi-Language Code Scaffolding

Describe what you need, get working code. Multiple languages, ready to run.

✨ Key Features

  • 🔧 Function Generation (function) — Describe it, get a complete annotated function
  • 🏗️ Class Generation (class) — OOP design with constructor and methods
  • 🌐 API Endpoints (api) — RESTful routes and handlers
  • 📦 CRUD Operations (crud) — Full Create/Read/Update/Delete code
  • 🧪 Test Code (test) — Auto-generate unit tests with assertions
  • 🔄 Refactoring (refactor) — Optimization suggestions with examples
  • 🔀 Language Conversion (convert) — Conversion guide between Python/JS/Go/Java
  • 📋 Project Boilerplate (boilerplate) — Quick-start project skeleton

🌍 Supported Languages

Python · JavaScript · TypeScript · Go · Java · Rust · PHP · Ruby · C# · Shell

🚀 Usage

bash scripts/codegen.sh <command> <description>

Every output includes: 1. Language label and suggested filename 2. Complete runnable code 3. Inline comments 4. Usage example

📂 Scripts

- scripts/codegen.sh — Main script

💬 Feedback & Feature Requests: https://bytesagain.com/feedback Powered by BytesAgain | bytesagain.com

Commands

Run code-generator help to see all available commands.

Requirements

  • bash 4+
  • python3 (standard library only)

🤖 AI 评测

这是一个功能丰富的代码生成工具,支持多种编程语言和生成模式,能帮助快速搭建项目框架。文档和说明清晰易懂,新手也能快速上手。但生成代码的智能化程度有限,模板化输出较多,实际项目中可能需要大量修改才能使用。总体来说是一个实用的辅助工具,但还不能完全替代手动编码。

📊 多维度评分

适应性4
规范性3.9
有效性4.2
可靠性4.2
可信度4.5

📁 包含文件 (5 个)

📄 SKILL.md 1.7 KB
📄 _meta.json 133 B
📄 scripts/codegen.sh 14.2 KB
📄 scripts/script.sh 13.5 KB
📄 tips.md 992 B

🔥 大家都在搜

wps 写作 pdf 苹果