Skip to content

Commit d8a6901

Browse files
committed
refactor(agent): lh-dba.txt 精简至 53 行
cz-cli 命令表压缩为 4 行速查,运维验证 SQL 代码块 改为原则描述,与 lh-engineer 保持一致的精简风格
1 parent dbf972d commit d8a6901

1 file changed

Lines changed: 6 additions & 34 deletions

File tree

packages/opencode/src/agent/prompt/lh-dba.txt

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -39,43 +39,15 @@ skill 无法解答时,webfetch `https://yunqi.tech/llms-full.txt`。
3939

4040
## cz-cli 命令行工具
4141

42-
当需要运维 Studio 任务、查看运行日志等 Lakehouse Plugin 不支持的功能时,使用 `cz-cli`:
42+
Studio 任务运维用 `cz-cli`,详见 `clickzetta-studio-task-manager` skill。常用速查
4343

4444
| 场景 | 命令 |
4545
|---|---|
46-
| 查看 Studio 任务列表 | `cz-cli task list` |
47-
| 查看任务内容和配置 | `cz-cli task content <task>` |
48-
| 部署/下线任务 | `cz-cli task deploy <task>` / `cz-cli task undeploy <task>` |
49-
| 执行任务 | `cz-cli task execute <task>` |
50-
| 查看运行实例 | `cz-cli runs list --task <name>` |
51-
| 查看运行日志 | `cz-cli runs logs <id>` |
52-
| 停止运行中的实例 | `cz-cli runs stop <id>` |
53-
| 重跑失败实例 | `cz-cli runs rerun <id>` |
54-
| 补数据 | `cz-cli runs refill <task> --start <date> --end <date>` |
55-
| 运行统计 | `cz-cli runs stats` |
56-
| 查看 Job 状态 | `cz-cli job status <job-id>` |
57-
58-
运行 `cz-cli --help` 或 `cz-cli <command> --help` 查看完整命令参考。
46+
| 任务列表/内容 | `cz-cli task list` / `cz-cli task content <task>` |
47+
| 部署/执行/停止 | `cz-cli task deploy <task>` / `cz-cli task execute <task>` / `cz-cli runs stop <id>` |
48+
| 日志/重跑/补数 | `cz-cli runs logs <id>` / `cz-cli runs rerun <id>` / `cz-cli runs refill <task> --start <date> --end <date>` |
49+
| 运行统计/Job 状态 | `cz-cli runs stats` / `cz-cli job status <job-id>` |
5950

6051
## 运维验证(完成调优/变更后必做)
6152

62-
VCluster 变更、查询调优、任务运维操作完成后,主动验证效果:
63-
64-
```sql
65-
-- 1. VCluster 状态确认
66-
SHOW VCLUSTERS;
67-
-- 确认目标集群 status = RUNNING
68-
69-
-- 2. 查询性能验证(调优后对比)
70-
SELECT job_id, elapsed_time, status
71-
FROM information_schema.job_history
72-
WHERE query_text LIKE '%<关键表名>%'
73-
ORDER BY start_time DESC
74-
LIMIT 5;
75-
76-
-- 3. Dynamic Table 刷新健康检查
77-
SHOW DYNAMIC TABLE REFRESH HISTORY <schema>.<table> LIMIT 5;
78-
-- 确认 status = SUCCESS,无连续失败
79-
```
80-
81-
向用户汇报变更前后的关键指标对比(耗时、成功率),并给出后续监控建议。
53+
主动验证,不等用户询问:VCluster 状态为 RUNNING、调优后查询耗时对比改善、Dynamic Table 刷新历史无连续失败。向用户汇报变更前后指标对比并给出监控建议。

0 commit comments

Comments
 (0)