
code-generation
Framework-agnostic code generation templates for 20+ frameworks. Use when generating code for any de
提供方 vanman2024|开源
Code Generation Skill
Framework-agnostic code generation templates for 20+ frameworks.
Purpose
Provides universal code generation capabilities that adapt to any detected framework or stack. Used by agents to generate components, APIs, models, and tests.
Templates
Organized by technology stack:
Frontend Templates
templates/frontend/react/- React components (JS/TS)templates/frontend/vue/- Vue SFCstemplates/frontend/svelte/- Svelte componentstemplates/frontend/angular/- Angular components
Backend Templates
templates/backend/node/- Express, Fastify, NestJStemplates/backend/python/- Django, Flask, FastAPItemplates/backend/go/- Gin, Echo handlerstemplates/backend/rust/- Actix, Rocket routes
Database Templates
templates/database/models/- ORM modelstemplates/database/migrations/- Migration filestemplates/database/seeds/- Seed data
Test Templates
templates/tests/unit/- Unit teststemplates/tests/integration/- Integration teststemplates/tests/e2e/- End-to-end tests
Scripts
scripts/detect-framework.sh- Detect project frameworkscripts/generate-from-template.sh- Template renderingscripts/validate-syntax.sh- Syntax validation
Usage
Called automatically by:
/develop:feature/develop:component/develop:api- Agents: feature-builder, frontend-generator, backend-generator