django-vue-admin Code Generator for Openclaw

An automated code generation tool that creates full-stack Django and Vue.js modules based on simple user descriptions.

jpzhengcn
v1.0.0
Mar 31, 2026
0
808
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install django-vue-admin

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install django-vue-admin using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is django-vue-admin Code Generator?

This skill serves as a high-speed scaffolding engine for the django-vue-admin framework. It streamlines the creation of backend Django components and frontend Vue.js interfaces, ensuring consistency across your project. By utilizing Openclaw Skills, developers can transform high-level requirements into production-ready code in seconds. The tool ensures that all generated code follows the best practices of the django-vue-admin ecosystem, covering everything from database models to the final user interface.

django-vue-admin Code Generator Use Cases

  • Generating standard CRUD modules for new business entities like Product or Order management.
  • Rapidly prototyping admin interfaces with predefined field mappings and UI components.
  • Maintaining architectural consistency by following established Django and Vue templates automatically.
  • Reducing repetitive boilerplate work when expanding existing enterprise-grade web applications.

How django-vue-admin Code Generator Works

  1. Analyzes user requirements to identify the specific module name and required data fields.
  2. References internal templates like FIELD_TEMPLATE.md to determine the correct field definitions and types.
  3. Accesses BUSINESS_LOGIC.md and LOGIC_FLOW.md to apply the appropriate workflow patterns and logic.
  4. Generates the Django backend files, including models, serializers, viewsets, and URL configurations.
  5. Produces the frontend Vue.js code, including API service files and Element UI-based page components.
  6. Outputs the complete code blocks ready for direct deployment into the project directory.

django-vue-admin Code Generator Setup

To get started with this skill within your project environment, follow these steps:

# Clone the django-vue-admin repository
git clone https://github.com/caoqianming/django-vue-admin.git myproject
cd myproject/server

# Setup the Python environment
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# Initialize the database
python manage.py migrate
python manage.py loaddata db.json

# Launch the frontend developer server
cd ../client
npm install
npm run dev

django-vue-admin Code Generator Data Schema & Taxonomy

The skill organizes generated code into a structured multi-tier architecture to ensure compatibility with Openclaw Skills workflows:

Layer Component File Path Example
Backend Django Model apps/myapp/models.py
Backend DRF Serializer apps/myapp/serializers.py
Backend DRF ViewSet apps/myapp/views.py
Frontend API Service src/api/myapp.js
Frontend Vue Component src/views/myapp/index.vue

It utilizes a robust mapping system to convert Django fields (e.g., CharField, BooleanField) into corresponding Vue/Element UI components (e.g., el-input, el-switch).

django-vue-admin Code Generator Advanced Features

  • Automated data scope and RBAC (Role-Based Access Control) permission integration for all generated endpoints.
  • Intelligent mapping of Django field types to specific Element UI frontend widgets.
  • Support for complex relationship fields like ForeignKey with integrated selection components.
  • Template-driven generation based on core project modules, business logic, and flow definitions.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*