webiny-api-tenancy-catalog
できること
このスキルは、Webinyのバックエンドのテナントの機能を、それぞれのインポートの行とソースファイルとともに挙げた一覧です。テナントを管理する必要がある、Webinyで作る開発者向けです。
使う場面
- ✓Webinyプロジェクトでテナントを作成または削除する方法を、開発者が尋ねるとき。
- ✓Webinyの中で、テナントにアプリをインストールする必要がある開発者がいるとき。
- ✓テナンシーのユースケースの正しいインポート名を見つけたい開発者がいるとき。
スキルのリンク
https://github.com/webiny/webiny-js/blob/next/skills/user-skills/generated/api/tenancy/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のプロジェクトで新しいテナントを作るには、どのWebinyの部品を使いますか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、テナンシーの各部品を、その名前、インポートの行、ソースファイルと一緒に一覧にします。AIは正しいものを示し、使う前にソースファイルを読むよう伝えます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
API — Tenancy
Tenant lifecycle and installation event handlers and use cases.
How to Use
- Find the abstraction you need below
- You MUST read the source file to get the exact interface and types!
- Import:
import { Name } from "<importPath>"; - See
webiny-use-case-patternorwebiny-event-handler-patternskills 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
よくある質問
これらを使う前に、ソースファイルを読む必要がありますか?
はい。スキルは、コードを書く前に正確な型を知るためにソースファイルを読むよう述べています。
このスキルは何を扱いますか?
テナントのライフサイクル、つまりテナントの作成、削除、テナントへのアプリのインストール、およびそれらの段階のイベントハンドラーを扱います。
このスキルは代わりにコードを書きますか?
適切な部品とそのインポートの行を示します。その後、AIがそれを使うコードを書く手助けをします。
詳細
作者による元の説明
API — Tenancy — 17 abstractions. Tenant lifecycle and installation event handlers and use cases.
repo: webiny/webiny-js
人気
- GitHubのスター
- 8.1k
- ランキング
- #12609
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
prd-to-plan
8.1k製品要件書を、それぞれ端から端まで成立する小さなスライスの段階的な計画に変え、Markdownファイルとして保存するよう、エージェントを支援します。
webiny-admin-architect
8.1kビジネスロジックの層とプレゼンターのパターンを使い、Webinyプラットフォームの管理画面を作る方法をエージェントに教えます。
webiny-admin-permissions
8.1k自動生成される権限フォームや、表示・非表示のチェックを含め、Webinyの管理画面に権限の制御を追加するよう、エージェントに教えます。
webiny-form-model
8.1kビルダーで宣言的にフィールドを定義し、レイアウト、検証、条件付きのルールを使って、Webinyのフォームを作るよう、エージェントに教えます。
似ているスキル
api-connector-builder
280kエージェントが既存のパターンに従って、新しいAPI連携を構築します。新しい方式を作らずに、もう一つ連携を追加したいときに使います。
api-design
280kエージェントがベストプラクティスに沿ってREST APIを設計できるようにします。APIの通信方法、エラーの表示方法、データの整理方法を決めるのに役立ちます。
backend-patterns
280kエージェントのサーバーサイドのアーキテクチャパターンとデータベースの最適化を支援します。サーバー上で動くコードを作成またはレビューするときに役立ちます。