ワンクリックで
cat-admin
使用 Cat 项目的 `mix cat.api_admin` 命令完成管理端操作任务。用于读取 `openapi/admin_openapi.yaml` 查找管理端接口,并调用管理端 API 查询列表、查看详情或执行管理端写操作。手动调用触发。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
使用 Cat 项目的 `mix cat.api_admin` 命令完成管理端操作任务。用于读取 `openapi/admin_openapi.yaml` 查找管理端接口,并调用管理端 API 查询列表、查看详情或执行管理端写操作。手动调用触发。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
生成、解释和修改 Cat 项目的 `priv/config/catalog_schema.yaml`。当任务涉及 Catalog schema、Class / Property 定义、ClassProperty 绑定、Property.constraint、Class.subject_page_layout、claim_display、subject_explore_config,或需要为新领域生成可同步的 Catalog YAML 时使用。
解释、生成和修改 Cat 项目的 `priv/config/class_ingestors_schema.yaml`。当任务涉及 class ingestor 的概念、YAML 语法,或 `steam`、`wikidata` 的 provider 配置时使用。手动调用触发。
新增或修改 Cat 项目的管理端 API(`/api/admin/<context>/<action>`)。用于 `api_admin` 计划层、admin 列表/详情/写操作的后端实现。
Add and manage user-facing API endpoints in the Cat project using the CatApiSpec DSL. Use for the `api` plan layer, frontend/public APIs, schemas, generated request modules, and routes. For `/api/admin/...` endpoints use `manage-api-admin`.
创建和维护 Cat 项目的 PRD。用于按 domain 总览 + 粗粒度 feature 文档组织 docs/prds,包括 docs/prds/{domain}/overview.md、data_model.md、features/{feature_title}.md;也用于判断 feature 粒度、迁移旧版 aspect PRD,或生成可按 feature 复制到其他系统的产品规格。
Create, modify, or remove admin UI pages for the Cat project. Use when adding/editing/removing admin pages, admin list/detail views, admin management features, or when the user mentions admin UI, admin frontend, 管理端界面.
| name | cat-admin |
| description | 使用 Cat 项目的 `mix cat.api_admin` 命令完成管理端操作任务。用于读取 `openapi/admin_openapi.yaml` 查找管理端接口,并调用管理端 API 查询列表、查看详情或执行管理端写操作。手动调用触发。 |
| disable-model-invocation | true |
Use this skill from the Cat project root.
openapi/admin_openapi.yaml before calling any endpoint.mix cat.api_admin.Do not guess endpoint names from memory. The OpenAPI YAML is the source of truth.
Start with targeted search:
rg -n "summary:|description:|/api/admin/.+<keyword>|operationId:" openapi/admin_openapi.yaml
Then inspect the nearby YAML block for:
paths.<path>.<method>parameters for GET query valuesrequestBody schema reference for POST payloadscomponents.schemas.<SchemaName> for required fields and typesIf a schema uses $ref, follow it inside components.schemas.
Command format:
mix cat.api_admin METHOD PATH [--query key=value ...] [--body JSON] [--base-url URL] [--token TOKEN] [--pretty]
Rules:
CAT_BOT_API_TOKEN from the environment. Use --token only when the user provides one for this task.CAT_API_BASE_URL or --base-url only when the user needs a non-default server. Default is http://localhost:5000.--query key=value.--body.--pretty for human inspection; omit it when downstream shell processing needs compact JSON.Some admin resources support both id and idname query/body fields, especially Catalog Class and Property endpoints.
idname, pass idname=<value> directly. Do not probe id=<value> first just because the value is numeric-looking.8090 are often domain idname; prefer idname unless the user explicitly says it is a database ID / Sonyflake.id or confirmed idname in the write payload and mention the resolved target in the summary.Examples:
mix cat.api_admin get /api/admin/accounts/list_users --query role=bot --pretty
mix cat.api_admin get /api/admin/accounts/get_user --query id=614400000000000000 --pretty
mix cat.api_admin post /api/admin/accounts/regenerate_bot_api_token --body '{"id":"614400000000000000"}' --pretty
Admin API responses use the Cat JSON envelope:
{"success": true, "data": {}}
On failure, preserve the server error code and message in the user-facing summary:
{"success": false, "data": null, "error": {"code": "...", "message": "..."}}
If mix cat.api_admin fails before sending the request, check:
CAT_BOT_API_TOKEN is set or --token is provided.openapi/admin_openapi.yaml.