egg

Route EGG framework queries to core or controller skills.

19.0k|1.8k|Updated Jun 18, 2016
One-click install
npx skills add https://github.com/eggjs/egg --skill egg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: egg
Source: https://github.com/eggjs/egg/tree/main/packages/skills/egg
Command: npx skills add https://github.com/eggjs/egg --skill egg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill acts as an intelligent router for EGG framework-related queries, directing users to the most appropriate sub-skill for core concepts or controller implementations.

Core Features & Use Cases

  • Intelligent Routing: Determines whether a user's EGG question pertains to core architecture or specific controller patterns.
  • Decision Guidance: Provides clear logic for choosing between egg-core and egg-controller skills based on user intent and keywords.
  • Use Case: A developer new to EGG asks, "How do I create an API endpoint that uses a singleton service?" This Skill will first guide them to understand singleton services (egg-core) and then to implement the API endpoint (egg-controller).

Quick Start

Use the egg skill to understand how to create a module in EGG.

Frequently Asked Questions about egg

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

FAQPage Schema
How do I route EGG framework questions to the right module or controller?

Routing EGG framework questions requires analyzing user intent and keywords to distinguish between core architecture concepts like dependency injection and specific API controller implementations. This skill directs queries to the appropriate specialized sub-skill based on foundational versus implementation priorities.

What is the best way to understand EGG core concepts before building an API?

Understanding EGG core concepts involves starting with module architecture and dependency injection before implementing endpoints. This skill guides users to foundational knowledge first, ensuring singleton services are grasped before attempting controller pattern creation.

How do I create an API endpoint that uses a singleton service in EGG?

Creating an API endpoint with a singleton service in EGG requires understanding both core concepts and controller implementations. This skill routes the query to learn dependency injection for the service, then directs to controller patterns for the endpoint.

Does the EGG framework separate core architecture from controller implementations?

Yes, the EGG framework separates core architecture from controller implementations. This skill distinguishes between module architecture and dependency injection concepts versus API and protocol controllers, routing queries to specialized skills based on the specific intent.

When should I prioritize EGG core concepts over controller patterns?

Prioritize EGG core concepts over controller patterns when dealing with ambiguous intents or foundational questions about module architecture and dependency injection. This skill's decision logic always routes foundational concept queries first before addressing specific API implementations.