Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)8.1k · #12609

webiny-api-tenancy-catalog

Skill này làm gì

Skill này là danh sách tra cứu các tính năng tenant trong backend Webiny, kèm dòng import và file nguồn cho từng tính năng. Skill dành cho lập trình viên xây dựng trên Webiny và cần quản lý tenant.

Khi nào nên dùng

  • ✓Khi lập trình viên hỏi cách tạo hoặc xóa một tenant trong dự án Webiny.
  • ✓Khi lập trình viên cần cài đặt một ứng dụng trên tenant bên trong Webiny.
  • ✓Khi lập trình viên muốn tìm đúng tên import cho một use case tenancy.

Liên kết skill

https://github.com/webiny/webiny-js/blob/next/skills/user-skills/generated/api/tenancy/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/webiny/webiny-js/blob/next/skills/user-skills/generated/api/tenancy/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi dùng khối xây dựng Webiny nào để tạo một tenant mới trong dự án của mình?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill liệt kê từng khối xây dựng tenancy kèm tên, dòng import và file nguồn. AI chỉ cho bạn khối đúng và nhắc bạn đọc file nguồn trước khi dùng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

API — Tenancy

Tenant lifecycle and installation event handlers and use cases.

How to Use

  1. Find the abstraction you need below
  2. You MUST read the source file to get the exact interface and types!
  3. Import: import { Name } from "<importPath>";
  4. See webiny-use-case-pattern or webiny-event-handler-pattern skills for implementation patterns

Abstractions


Name: AppInstaller Import: import { AppInstaller } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/InstallTenant/index.ts Description: Install an application on a tenant with rollback support.


Name: CreateTenantRepository Import: import { CreateTenantRepository } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/CreateTenant/index.ts Description: Persist a newly created tenant.


Name: CreateTenantUseCase Import: import { CreateTenantUseCase } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/CreateTenant/index.ts Description: Create a new tenant.


Name: DeleteTenantRepository Import: import { DeleteTenantRepository } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/DeleteTenant/index.ts Description: Persist tenant deletion.


Name: DeleteTenantUseCase Import: import { DeleteTenantUseCase } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/DeleteTenant/index.ts Description: Delete a tenant.


Name: GetTenantByIdUseCase Import: import { GetTenantByIdUseCase } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/GetTenantById/index.ts Description: Retrieve a tenant by its ID.


Name: InstallTenantUseCase Import: import { InstallTenantUseCase } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/InstallTenant/index.ts Description: Run all app installers for a tenant.


Name: TenantAfterCreateEventHandler Import: import { TenantAfterCreateEventHandler } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/CreateTenant/index.ts Description: Hook into tenant lifecycle after a tenant is created.


Name: TenantAfterDeleteEventHandler Import: import { TenantAfterDeleteEventHandler } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/DeleteTenant/index.ts Description: Hook into tenant lifecycle after a tenant is deleted.


Name: TenantAfterUpdateEventHandler Import: import { TenantAfterUpdateEventHandler } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/UpdateTenant/index.ts Description: Hook into tenant lifecycle after a tenant is updated.


Name: TenantBeforeCreateEventHandler Import: import { TenantBeforeCreateEventHandler } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/CreateTenant/index.ts Description: Hook into tenant lifecycle before a tenant is created.


Name: TenantBeforeDeleteEventHandler Import: import { TenantBeforeDeleteEventHandler } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/DeleteTenant/index.ts Description: Hook into tenant lifecycle before a tenant is deleted.


Name: TenantBeforeUpdateEventHandler Import: import { TenantBeforeUpdateEventHandler } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/UpdateTenant/index.ts Description: Hook into tenant lifecycle before a tenant is updated.


Name: TenantContext Import: import { TenantContext } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/TenantContext/index.ts Description: Provides access to the current tenant and tenant-scoped execution.


Name: TenantInstalledEventHandler Import: import { TenantInstalledEventHandler } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/InstallTenant/index.ts Description: Hook into tenant lifecycle after a tenant is installed.


Name: UpdateTenantRepository Import: import { UpdateTenantRepository } from "webiny/api/tenancy" Source: @webiny/api-core/features/tenancy/UpdateTenant/index.ts Description: Persist tenant updates.


Name: UpdateTenantUseCase Import: import { UpdateTenantUseCase } from "webiny/api/tenancy" Source: `@webiny/api-core/features/tena

Câu hỏi thường gặp

Tôi có cần đọc file nguồn trước khi dùng không?

Có. Skill yêu cầu đọc file nguồn để lấy đúng kiểu dữ liệu trước khi viết code.

Skill này bao phủ những gì?

Vòng đời tenant, nghĩa là tạo, xóa và cài đặt ứng dụng trên tenant, cùng các event handler cho các bước đó.

Skill này có tự viết code cho tôi không?

Nó chỉ ra khối xây dựng đúng và dòng import của nó. AI của bạn sau đó có thể giúp viết code dùng khối đó.

Chi tiết

Mô tả gốc của tác giả

API — Tenancy — 17 abstractions. Tenant lifecycle and installation event handlers and use cases.

repo: webiny/webiny-js

Độ phổ biến

Sao GitHub
8.1k
Vị trí xếp hạng
#12609
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự