main-entry

Generate Vue src/main.ts for single-spa or standalone SPA architectures.

Updated Nov 20, 2025
One-click install
npx skills add https://github.com/sayali-ingle-pdl/adusa-ai-vuejs-app-template --skill main-entry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: main-entry
Source: https://github.com/sayali-ingle-pdl/adusa-ai-vuejs-app-template/tree/main/.github/agents/app-starter/agents-context/skills/main-entry
Command: npx skills add https://github.com/sayali-ingle-pdl/adusa-ai-vuejs-app-template --skill main-entry

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates the application entry file src/main.ts and supports both micro-frontend (single-spa) and standalone SPA initialization.

Core Features & Use Cases

  • Configurable entry generation based on application_type, application_id, enable_datadog, and state_management.
  • Automatically wires router, store (Vuex/Pinia), and optional Datadog monitoring.
  • Ensures compatibility with CSS isolation for micro-frontends and straightforward standalone mode.

Quick Start

Generate the src/main.ts entry tailored to either micro-frontend with single-spa or standalone Vue SPA.

Frequently Asked Questions about main-entry

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Vue main.ts entry file for a single-spa micro-frontend?

To generate a Vue main.ts entry file for a single-spa micro-frontend, you configure the application type to micro-frontend, which automatically wires router, store, CSS isolation, and lifecycle hooks for seamless integration.

Can I use Pinia for state management in a Vue micro-frontend entry?

Yes, you can use Pinia for state management in a Vue micro-frontend entry. The generation process supports both Pinia and Vuex, automatically wiring your chosen state management library into the application initialization.

How does CSS isolation work when generating a Vue app entry for single-spa?

CSS isolation in the generated Vue app entry works by applying a configurable application_id, ensuring that styles remain scoped to the specific micro-frontend and preventing style conflicts within the single-spa architecture.

What is the difference between standalone SPA and micro-frontend initialization in Vue?

The difference between standalone SPA and micro-frontend initialization is that standalone mode uses straightforward application mounting, while micro-frontend mode wires single-spa lifecycle hooks, CSS isolation, and independent routing for modular architecture.