ae-metadata
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseae-metadata
ae-metadata
CLI domain routes to the analysis capability gateway (), using auth header .
metadata/api/cli/analysis/v1/...cli-tokenParallel to . Use this skill for gateway-backed metadata detail and data-table/dimension-table operations; use for metadata list/search, metrics, virtual create, and batch edit.
ae-analysisae-analysisCLI领域**路由至分析能力网关(),使用认证头**。
metadata/api/cli/analysis/v1/...cli-token与**并行使用。如需网关支持的元数据详情、数据表/维度表操作,请使用本技能;如需元数据列表/搜索、指标、虚拟创建及批量编辑,请使用**。
ae-analysisae-analysisGlobal AE CLI Rules
全局AE CLI规则
| Parameter | Description |
|---|---|
| Output format. Default JSON. |
| jq filter on JSON output. |
| Override active AE host, e.g. |
| Optional: fix params only ( |
| Optional: confirm ready to run ( |
Output and errors:
- Success: JSON envelope (default). May include optional .
_notice.host_compat - Failure: , non-zero exit.
{ "ok": false, "error": { "type", "message", "hint" } } - CRITICAL — Host compat (do this first): After each run, check stderr and
ae-cli. If either is present, open the user reply with a short ⚠️ version warning and quote the_notice.host_compat/npm i -g(or update-cluster) lines verbatim, then present the business result. Soft tip;npx skills addcan still carry the notice.ok: true
Safety:
- Read-only commands can run directly after IDs/names are verified.
- Ordinary writes (,
data-table *-write, dimension-table bind/create) execute withoutproperty-bindings-update. Delete commands are--yes: dry-run first, summarize impact, wait for explicit confirmation, then execute withhigh-risk-write.--yes - Before any command, read the matching (filename = command with spaces → underscores, e.g.
references/<name>.md→metadata data-table list).metadata_data_table_list.md - Never invent , event/property names,
project_id, orinput_file_id. Discover names viadata_table_idand data table IDs viaae-analysis.metadata data-table list - is an async artifact command: plain invocation submits,
metadata data-table downloadwaits, and--waitwaits then streams atomically. Resume with--output <file>; local interruption never cancels the remote run.analysis run wait
| 参数 | 描述 |
|---|---|
| 输出格式,默认JSON。 |
| 对JSON输出应用jq过滤。 |
| 覆盖当前AE主机地址,例如 |
| 可选参数:仅校验参数(调用 |
| 可选参数:确认是否准备好执行(调用 |
输出与错误处理:
- 成功:返回JSON包(默认格式),可能包含可选字段。
_notice.host_compat - 失败:返回,退出码非零。
{ "ok": false, "error": { "type", "message", "hint" } } - 重要提示——主机兼容性(优先检查):每次执行后,检查标准错误输出和
ae-cli字段。若其中任意一项存在,需在回复开头添加简短⚠️版本警告,并逐字引用_notice.host_compat/npm i -g(或update-cluster)命令行,再展示业务结果。即使npx skills add也可能携带该提示。ok: true
安全规范:
- 只读命令在ID/名称验证后可直接运行。
- 普通写入操作(、
data-table *-write、维度表绑定/创建)无需property-bindings-update即可执行。删除命令属于--yes:先执行dry-run,总结影响,等待明确确认后,再添加high-risk-write执行。--yes - 执行任何命令前,阅读对应的文档(文件名规则:将命令中的空格替换为下划线,例如
references/<name>.md对应metadata data-table list)。metadata_data_table_list.md - 切勿自行编造、事件/属性名称、
project_id或input_file_id。需通过data_table_id获取名称,通过ae-analysis获取数据表ID。metadata data-table list - 是异步产物命令:直接调用会提交任务,添加
metadata data-table download会等待任务完成,添加--wait会等待完成后原子性地流式输出到文件。可通过--output <file>恢复任务;本地中断不会取消远程任务。analysis run wait
When to Use
使用场景
Switch to when the user needs:
ae-metadata- Metadata data-table list/get/create/update/delete/download
- For local uploads, switch to and use
ae-analysiswith a discovered purpose.analysis input-file upload - Bind an existing data table to a property, or create a CSV dimension table and bind it
Stay on for: metadata event/property detail, metadata event/property/metric list/search, metric CRUD, batch metadata, virtual create, project config, tracking plans.
ae-analysis当用户需要以下功能时,切换至****:
ae-metadata- 元数据表的列表/查询/创建/更新/删除/下载
- 本地文件上传请切换至,使用
ae-analysis并指定用途。analysis input-file upload - 将现有数据表绑定至属性,或创建CSV维度表并完成绑定
以下场景请继续使用****:元数据事件/属性详情、元数据事件/属性/指标列表/搜索、指标增删改查、批量元数据操作、虚拟创建、项目配置、追踪计划。
ae-analysisCommand Format
命令格式
bash
ae-cli metadata <resource> <action> [options]
ae-cli metadata property <dimension-table-action> [options]- Commands and flags use kebab-case: ,
data-table,dimension-table,--project-id.--data-table-id - Gateway body fields remain snake_case (
input,project_id, …); ae-cli maps flags automatically.event_name
bash
ae-cli metadata <resource> <action> [options]
ae-cli metadata property <dimension-table-action> [options]- 命令和参数使用短横线命名法(kebab-case):、
data-table、dimension-table、--project-id。--data-table-id - 网关请求体的字段保留下划线命名法(snake_case)(如
input、project_id等);ae-cli会自动完成参数映射。event_name
PROJECT_ID_GATE
PROJECT_ID_GATE
Same rules as : reuse verified project context in one conversation; otherwise (or skill) to resolve .
ae-analysisae-cli project info listae-analysisproject_id与规则相同:同一场会话中复用已验证的项目上下文;否则使用(或技能)获取。
ae-analysisae-cli project info listae-analysisproject_idCommands (10)
命令列表(共10个)
| User command | Capability id | Reference |
|---|---|---|
| | metadata_data_table_list.md |
| | metadata_data_table_get.md |
| | metadata_data_table_csv_write.md |
| | metadata_data_table_sql_write.md |
| | metadata_data_table_csv_delete.md |
| | metadata_data_table_sql_delete.md |
| | metadata_data_table_download.md |
| | metadata_data_table_property_bindings_update.md |
| | metadata_property_dimension_table_bind_existing.md |
| | metadata_property_dimension_table_create_and_bind_csv.md |
| 用户命令 | 能力ID | 参考文档 |
|---|---|---|
| | metadata_data_table_list.md |
| | metadata_data_table_get.md |
| | metadata_data_table_csv_write.md |
| | metadata_data_table_sql_write.md |
| | metadata_data_table_csv_delete.md |
| | metadata_data_table_sql_delete.md |
| | metadata_data_table_download.md |
| | metadata_data_table_property_bindings_update.md |
| | metadata_property_dimension_table_bind_existing.md |
| | metadata_property_dimension_table_create_and_bind_csv.md |
Quick Verification
快速验证
bash
ae-cli metadata --help
ae-cli metadata data-table list --help
ae-cli metadata data-table list --project-id 1 --dry-run
ae-cli analysis input-file purpose list --project-id 1bash
ae-cli metadata --help
ae-cli metadata data-table list --help
ae-cli metadata data-table list --project-id 1 --dry-run
ae-cli analysis input-file purpose list --project-id 1Related Skills
关联技能
- :
ae-analysis/analysis-meta event getfor detail, andanalysis-meta property get/analysis-meta event listto discover names.analysis-meta property list - Dev workflow: — inspect gateway schema when adding new metadata capabilities.
.cursor/skills/te-cli-capability-gateway
- :使用
ae-analysis/analysis-meta event get获取详情,使用analysis-meta property get/analysis-meta event list查询名称。analysis-meta property list - 开发工作流:—— 添加新元数据能力时,可查看网关模式。
.cursor/skills/te-cli-capability-gateway