skills/dev-utils-skills/code-generator/SKILL.md
Generates production-ready code scaffolds, functions, classes, and project structures across Python, TypeScript, Java, and Go. Use when the user asks to generate code from templates, scaffold a new project, create boilerplate classes or modules, or automate repetitive code creation tasks.
npx skillsauth add partme-ai/full-stack-skills code-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill whenever the user wants to:
Function generation (Python example):
def calculate_order_total(
items: list[OrderItem],
discount_pct: float = 0.0,
tax_rate: float = 0.08,
) -> Decimal:
"""Calculate the total price for an order including tax and discount.
Args:
items: List of order items with price and quantity.
discount_pct: Discount percentage (0.0 to 1.0).
tax_rate: Tax rate to apply after discount.
Returns:
Final order total as a Decimal rounded to 2 places.
Raises:
ValueError: If discount_pct is not between 0 and 1.
"""
if not 0 <= discount_pct <= 1:
raise ValueError(f"discount_pct must be 0-1, got {discount_pct}")
subtotal = sum(item.price * item.quantity for item in items)
discounted = subtotal * Decimal(1 - discount_pct)
total = discounted * Decimal(1 + tax_rate)
return total.quantize(Decimal("0.01"))
Project scaffold (TypeScript/Node):
my-service/
├── src/
│ ├── controllers/ # Route handlers
│ ├── services/ # Business logic
│ ├── models/ # Data models / DTOs
│ ├── middleware/ # Auth, logging, error handling
│ └── index.ts # Entry point
├── tests/
│ ├── unit/
│ └── integration/
├── package.json
├── tsconfig.json
└── README.md
代码生成, code generation, scaffold, boilerplate, template, 函数, 类, 模块, project structure, code scaffold, 项目脚手架
development
Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.
tools
Creates new uni-app projects via the official CLI or HBuilderX with Vue 2/Vue 3 template selection, manifest.json and pages.json configuration, and directory structure setup. Use when the user wants to scaffold a new uni-app project, initialize project files with a single command, or set up the development environment.
tools
Browses, installs, configures, and manages plugins from the uni-app plugin market (ext.dcloud.net.cn) including component plugins, API plugins, and template plugins with dependency handling. Use when the user needs to find and install uni-app plugins, configure plugin settings, manage plugin dependencies, or integrate third-party components.
tools
Develops native Android and iOS plugins for uni-app including module creation, JavaScript-to-native communication, and plugin packaging for distribution. Use when the user needs to build custom native modules, extend uni-app with native capabilities (camera, Bluetooth, sensors), or create publishable native plugins.