跳至主要内容
小龙虾小龙虾AI
🤖

Code Generator

Multi-language code generator. Generate functions, classes, API endpoints, CRUD operations, test code, refactoring suggestions, language conversion guides.

下载4.1k
星标2
版本2.3.4
开发工具
安全通过

技能说明


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)

如何使用「Code Generator」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Code Generator技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能