services
AdonisJS service patterns (creation, registration, components). Use when adding or modifying services.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
AdonisJS service patterns (creation, registration, components). Use when adding or modifying services.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Run, write, and troubleshoot Japa browser tests that use Playwright; use when you add or change frontend functionality that should be covered by tests
Testing guidelines. Use when writing or updating tests.
Caching with @adonisjs/cache (keys, tags, invalidation). Use when adding or debugging cache behavior.
Lucid models/migrations conventions and safe workflows. Use when changing schema or models.
Writing documentation. Use when key functionality is added or changed
Frontend rules conventions. Use when working with frontend-related tasks.
استنادا إلى تصنيف SOC المهني
| name | services |
| description | AdonisJS service patterns (creation, registration, components). Use when adding or modifying services. |
| metadata | {"short-description":"AdonisJS service patterns."} |
app/services (path alias #services)node ace make:service ServiceName which will instantiate a new class in the #services folder.
@inject() class decorator should be used to inject other services when needed.Services are built using Components.
Services represents the what, Components represents the how it's done.
Both services and components are classes.
Components can be placed in the same file as the main service if they are specific to that service
One service can rely on many components
Components are injected into services, and their main purpose is to be swapped with component fakes during testing.
Fakes can be declared directly in test files if they are only relevant locally
Component fakes can be stateful objects