返回 Skill 列表
extension
分类: 开发与工程无需 API Key

Code Generator

多语言代码生成器。生成函数、类、API 端点、CRUD 操作、测试代码、重构建议及语言转换指南。

person作者: xueyetianyahubclawhub

⚡ 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)