tuyau-client
Use Tuyau (generated client) for type-safe AdonisJS API access in this repo; prefer the generated client over fetch/axios
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use Tuyau (generated client) for type-safe AdonisJS API access in this repo; prefer the generated client over fetch/axios
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Run, write, and troubleshoot Japa browser tests that use Playwright; use when you add or change frontend functionality that should be covered by tests
Writing documentation. Use when key functionality is added or changed
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.
Frontend rules and React Router conventions. Use when working with frontend-related tasks.
Background job conventions (BullMQ via @rlanz/bull-queue). Use when adding or editing jobs.
| name | tuyau-client |
| description | Use Tuyau (generated client) for type-safe AdonisJS API access in this repo; prefer the generated client over fetch/axios |
node ace tuyau:generate in the project root after route/controller or request.validateUsing changes; this updates .adonisjs/api.ts and .adonisjs/index.ts.pnpm typecheck because the React typecheck imports the generated schema.resources/react_app/utils/tuyau.ts via import { api } from '#web/utils/tuyau'.createTuyau({ api: generatedApi, baseUrl: '/' }), so relative calls work in loaders, actions, and components.api.$route('enquiries:sale').$get({ query: { page, pageSize } }).unwrap().api.$route('enquiries:sale.show', { id }).$get().unwrap().api.$route('column_layouts:update').$put({ mode, category, visibleColumns }).unwrap().api.$url('brokers:index').{ data, error, status, response }; use unwrap() to throw on non-2xx when you do not need custom narrowing.InferRequestType, InferResponseType, and InferErrorType from @tuyau/client to keep derived types in sync with backend contracts..unwrap() inside the query/mutation function so callers receive plain data..adonisjs/api.ts under routes.node ace tuyau:generate when backend API surface changes, then run pnpm typecheck to confirm the frontend remains aligned.