siluzan-tso-cli 1.1.12 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +33 -29
  2. package/dist/index.js +2267 -1440
  3. package/dist/skill/SKILL.md +93 -34
  4. package/dist/skill/_meta.json +2 -2
  5. package/dist/skill/assets/campaign-create-template.json +96 -101
  6. package/dist/skill/references/account-analytics.md +64 -62
  7. package/dist/skill/references/accounts.md +130 -130
  8. package/dist/skill/references/clue.md +13 -13
  9. package/dist/skill/references/finance.md +62 -61
  10. package/dist/skill/references/forewarning.md +40 -39
  11. package/dist/skill/references/google-ads-rules/google-ads-account-audit.md +165 -161
  12. package/dist/skill/references/google-ads-rules/google-ads-audience-strategy.md +94 -85
  13. package/dist/skill/references/google-ads-rules/google-ads-campaign-optimization.md +97 -85
  14. package/dist/skill/references/google-ads-rules/google-ads-compliance.md +274 -272
  15. package/dist/skill/references/google-ads-rules/google-ads-conversion-architecture.md +97 -82
  16. package/dist/skill/references/google-ads-rules/google-ads-creative-optimization.md +143 -139
  17. package/dist/skill/references/google-ads-rules/google-ads-keyword-optimization.md +131 -128
  18. package/dist/skill/references/google-ads-rules/google-ads-keyword-strategy.md +175 -173
  19. package/dist/skill/references/google-ads-rules/google-ads-launch-plan-template.md +126 -123
  20. package/dist/skill/references/google-ads-rules/google-ads-pmax-guide.md +86 -73
  21. package/dist/skill/references/google-ads-rules/sensitive-industries.md +43 -8
  22. package/dist/skill/references/google-ads.md +201 -196
  23. package/dist/skill/references/open-account-by-media.md +23 -23
  24. package/dist/skill/references/open-account-google-ui.md +26 -26
  25. package/dist/skill/references/optimize.md +8 -8
  26. package/dist/skill/references/reporting.md +28 -28
  27. package/dist/skill/references/setup.md +10 -7
  28. package/dist/skill/references/tso-home.md +11 -11
  29. package/dist/skill/references/workflows.md +28 -26
  30. package/dist/skill/report-templates/README.md +22 -21
  31. package/dist/skill/report-templates/REPORT-WORKFLOW.md +9 -9
  32. package/dist/skill/report-templates/bing-period-report.md +11 -11
  33. package/dist/skill/report-templates/google-ads-diagnosis.md +86 -86
  34. package/dist/skill/report-templates/google-period-report.md +23 -23
  35. package/dist/skill/report-templates/report-template-academic.html +433 -341
  36. package/dist/skill/report-templates/report-template-dark.html +440 -257
  37. package/dist/skill/report-templates/report-template-formal.html +438 -288
  38. package/dist/skill/report-templates/report-template-mobile.html +456 -241
  39. package/dist/skill/report-templates/report-template-onepager.html +452 -240
  40. package/dist/skill/report-templates/report-template-print.html +355 -243
  41. package/dist/skill/report-templates/report-template.html +485 -392
  42. package/dist/skill/report-templates/tiktok-period-report.md +10 -10
  43. package/package.json +13 -13
  44. package/scripts/postinstall.mjs +3 -1
@@ -1,4 +1,4 @@
1
- # Google Ads 账户诊断报告
1
+ # Google Ads 账户诊断报告
2
2
 
3
3
  > 本模板与「Google Ads 账户诊断报告」网页版章节、数据块一一对应,便于用 Markdown 复刻或对接 `google-analysis` CLI 拉数后填充。
4
4
  > 占位符:`{reportDate}` `{companyName}` `{period}` 等。
@@ -7,12 +7,12 @@
7
7
 
8
8
  ## 页眉信息(报告头)
9
9
 
10
- | 字段 | 占位 / 说明 |
11
- |------|-------------|
12
- | 账户名称 | `{companyName}` |
13
- | 诊断周期 | `{period}`(如 `2026-03-01 ~ 2026-03-31`) |
14
- | 核心转化行为 | 如「询盘/转化」 |
15
- | 账户 ID / 货币 / 网址 | 副栏展示用 |
10
+ | 字段 | 占位 / 说明 |
11
+ | --------------------- | ------------------------------------------ |
12
+ | 账户名称 | `{companyName}` |
13
+ | 诊断周期 | `{period}`(如 `2026-03-01 ~ 2026-03-31`) |
14
+ | 核心转化行为 | 如「询盘/转化」 |
15
+ | 账户 ID / 货币 / 网址 | 副栏展示用 |
16
16
 
17
17
  **对应数据对象**:`accountInfo`(`companyId`、`companyName`、`currencyCode`、`period`、`conversionAction`、`website`、`businessModel`)
18
18
 
@@ -22,15 +22,15 @@
22
22
 
23
23
  **区块 ID**:`section-account-info`
24
24
 
25
- | 字段(中英) | 内容 |
26
- |--------------|------|
27
- | 账户名称 (Company) | |
28
- | 网址 (Website) | |
29
- | 账户 ID (ID) | |
30
- | 核心业务模式 (Core Business Model) | |
31
- | 诊断时间 (Period) | |
32
- | 核心转化行为 (Core Conversion Action) | |
33
- | 货币单位 (Currency) | |
25
+ | 字段(中英) | 内容 |
26
+ | ------------------------------------- | ---- |
27
+ | 账户名称 (Company) | |
28
+ | 网址 (Website) | |
29
+ | 账户 ID (ID) | |
30
+ | 核心业务模式 (Core Business Model) | |
31
+ | 诊断时间 (Period) | |
32
+ | 核心转化行为 (Core Conversion Action) | |
33
+ | 货币单位 (Currency) | |
34
34
 
35
35
  ---
36
36
 
@@ -62,25 +62,25 @@
62
62
 
63
63
  按顺序呈现(与页面「数据概览」一致):
64
64
 
65
- | 步骤 | 指标 | 数值 | 附注 |
66
- |------|------|------|------|
67
- | 1 | 消耗 (Cost) | | |
68
- | 2 | 展示次数 (Impressions) | | |
69
- | 3 | 点击次数 (Clicks) | | 点击率 CTR |
70
- | 4 | 转化次数 (Conversions) | | 转化率 CVR |
71
- | 5 | 每次转化费用 (CPA) | | |
65
+ | 步骤 | 指标 | 数值 | 附注 |
66
+ | ---- | ---------------------- | ---- | ---------- |
67
+ | 1 | 消耗 (Cost) | | |
68
+ | 2 | 展示次数 (Impressions) | | |
69
+ | 3 | 点击次数 (Clicks) | | 点击率 CTR |
70
+ | 4 | 转化次数 (Conversions) | | 转化率 CVR |
71
+ | 5 | 每次转化费用 (CPA) | | |
72
72
 
73
73
  ### 3.2 账户结构
74
74
 
75
- | 项目 | 数量 |
76
- |------|------|
77
- | 有效广告系列 (Effective Ad Campaigns) | |
78
- | 有效广告组 (Effective Ad Groups) | |
79
- | 有效关键字 (Effective Keywords) | |
80
- | 有效广告 (Effective Ads) | |
81
- | 附加链接 (Sitelinks) | |
82
- | 否定关键字 (Negative Keywords) | |
83
- | 有效国家 (Effective Countries) | |
75
+ | 项目 | 数量 |
76
+ | ------------------------------------- | ---- |
77
+ | 有效广告系列 (Effective Ad Campaigns) | |
78
+ | 有效广告组 (Effective Ad Groups) | |
79
+ | 有效关键字 (Effective Keywords) | |
80
+ | 有效广告 (Effective Ads) | |
81
+ | 附加链接 (Sitelinks) | |
82
+ | 否定关键字 (Negative Keywords) | |
83
+ | 有效国家 (Effective Countries) | |
84
84
 
85
85
  **对应字段**:`structure.campaignCount`、`adGroupCount`、`keywordCount`、`adCount`、`extensionCount`、`negativeKeywordCount`、`countriesWithConversionsCount`
86
86
 
@@ -89,12 +89,12 @@
89
89
  将下列指标与「行业/健康标准」对照(页面配置:消耗↔`averageCost`,转化↔`averageConversions`,CPA↔`averageCpa`,CTR↔`averageCtr`,CVR↔`averageCvr`):
90
90
 
91
91
  | 指标 (Metric) | 数据 (Data) | 行业/健康标准 |
92
- |-----------------|-------------|----------------|
93
- | 消耗 | | |
94
- | 转化次数 | | |
95
- | 每次转化费用 | | |
96
- | 点击率 | | |
97
- | 转化率 | | |
92
+ | ------------- | ----------- | ------------- |
93
+ | 消耗 | | |
94
+ | 转化次数 | | |
95
+ | 每次转化费用 | | |
96
+ | 点击率 | | |
97
+ | 转化率 | | |
98
98
 
99
99
  ### 分析 / 建议
100
100
 
@@ -103,9 +103,9 @@
103
103
 
104
104
  ### 3.4 转化目标
105
105
 
106
- | 事件名称 | 状态 | 转化次数 | 转化价值 |
107
- |----------|------|----------|----------|
108
- | | 启用/停用… | | |
106
+ | 事件名称 | 状态 | 转化次数 | 转化价值 |
107
+ | -------- | ---------- | -------- | -------- |
108
+ | | 启用/停用… | | |
109
109
 
110
110
  **数据**:`conversionGoals.items`(`name` / `eventName`、`status`、`allConversions`、`allConversionsValue`)
111
111
 
@@ -122,12 +122,12 @@
122
122
 
123
123
  #### 国家地区分析
124
124
 
125
- - 维度列:**国家/地区**
125
+ - 维度列:**国家/地区**
126
126
  - **数据**:`geographic.items`(同上结构)
127
127
 
128
128
  #### 关键词分析
129
129
 
130
- - 维度列:**关键词**
130
+ - 维度列:**关键词**
131
131
  - **数据**:`keywords.items`
132
132
 
133
133
  #### 转化成本 / 按日趋势(若页面已渲染)
@@ -147,20 +147,20 @@
147
147
 
148
148
  ### 黄金账户明细表
149
149
 
150
- | 项目名称 | 是否达标 | 优化建议 |
151
- |----------|----------|----------|
152
- | 转化追踪设置 | 达标/未达标 | |
153
- | G A与广告账户联结 | | |
154
- | 文字广告 | | |
155
- | 自适应搜索广告 | | |
156
- | 自适应展示广告 | | |
157
- | 附加结构化信息摘要 | | |
158
- | 附加链接 | | |
159
- | 附加宣传信息 | | |
160
- | 附加电话信息 | | |
161
- | 否定词添加 | | |
162
- | 受众群体设置 | | |
163
- | 出价策略 | | |
150
+ | 项目名称 | 是否达标 | 优化建议 |
151
+ | ------------------ | ----------- | -------- |
152
+ | 转化追踪设置 | 达标/未达标 | |
153
+ | G A与广告账户联结 | | |
154
+ | 文字广告 | | |
155
+ | 自适应搜索广告 | | |
156
+ | 自适应展示广告 | | |
157
+ | 附加结构化信息摘要 | | |
158
+ | 附加链接 | | |
159
+ | 附加宣传信息 | | |
160
+ | 附加电话信息 | | |
161
+ | 否定词添加 | | |
162
+ | 受众群体设置 | | |
163
+ | 出价策略 | | |
164
164
 
165
165
  **得分**:`goldAccountScore`;**未达标项数**:若有 `goldAccountUnqualifiedCount` 可注明。
166
166
 
@@ -179,8 +179,8 @@
179
179
  ### 竞争力表
180
180
 
181
181
  | 指标 (Metric) | 报告值 (Report Value) | 健康标准 (Health Benchmark) | 优化策略 (Optimization Strategy) |
182
- |----------------|------------------------|-------------------------------|-----------------------------------|
183
- | | | | |
182
+ | ------------- | --------------------- | --------------------------- | -------------------------------- |
183
+ | | | | |
184
184
 
185
185
  ---
186
186
 
@@ -213,12 +213,12 @@
213
213
  **区块 ID**:`section-landing-page`
214
214
  **数据**:`landingPageAnalysis`(经页面加工为下列四行)
215
215
 
216
- | 指标 (Metric) | 报告值 (Report Value) | 健康标准 (Health Benchmark) | 优先级与行动 (Priority & Action) |
217
- |---------------|------------------------|-------------------------------|-----------------------------------|
218
- | 达标率 (Compliance Rate) | | 100% | |
219
- | PC 网站打开速度 | | ≤ 3 s | |
220
- | 移动网站打开速度 | | ≤ 3 s | |
221
- | 手机性能指数 | | ≥ 75 | |
216
+ | 指标 (Metric) | 报告值 (Report Value) | 健康标准 (Health Benchmark) | 优先级与行动 (Priority & Action) |
217
+ | ------------------------ | --------------------- | --------------------------- | -------------------------------- |
218
+ | 达标率 (Compliance Rate) | | 100% | |
219
+ | PC 网站打开速度 | | ≤ 3 s | |
220
+ | 移动网站打开速度 | | ≤ 3 s | |
221
+ | 手机性能指数 | | ≥ 75 | |
222
222
 
223
223
  ---
224
224
 
@@ -237,11 +237,11 @@
237
237
 
238
238
  ### 8.2 广泛匹配关键词洞察
239
239
 
240
- | 统计项 | 数值 |
241
- |--------|------|
240
+ | 统计项 | 数值 |
241
+ | ------------------ | ------------ |
242
242
  | 广泛匹配关键词数量 | `broadTotal` |
243
- | 总关键词数量 | `total` |
244
- | 广泛匹配占比 | % |
243
+ | 总关键词数量 | `total` |
244
+ | 广泛匹配占比 | % |
245
245
 
246
246
  - **数据分析** / **优化建议**:`broadKeywordsCount.analysis`、`suggestions`
247
247
 
@@ -259,8 +259,8 @@
259
259
  **数据**:`biddingStrategy.items`(仅「有问题」的系列进入表格;无数据时页面为「出价策略配置良好」)
260
260
 
261
261
  | 广告系列 | 投放时长 | 当前出价策略 | 推荐出价策略 | 状态 |
262
- |----------|----------|--------------|--------------|------|
263
- | | | | | |
262
+ | -------- | -------- | ------------ | ------------ | ---- |
263
+ | | | | | |
264
264
 
265
265
  ---
266
266
 
@@ -271,14 +271,14 @@
271
271
 
272
272
  ### 搜索广告 — 检测规则
273
273
 
274
- - **Headlines**:推荐大于 2 个,最多 4 个
274
+ - **Headlines**:推荐大于 2 个,最多 4 个
275
275
  - **Descriptions**:推荐 8–10 个,最多 15 个;含 1–2 个关键字相关 + 3 个不含关键字的通用标题
276
276
 
277
277
  ### 创意表
278
278
 
279
279
  | 广告 | Headlines | Descriptions | 优化建议 |
280
- |------|-----------|--------------|----------|
281
- | | | | |
280
+ | ---- | --------- | ------------ | -------- |
281
+ | | | | |
282
282
 
283
283
  - **分析** / **优化建议**:`adCreativeOptimization.analysis`、`suggestions`
284
284
 
@@ -290,8 +290,8 @@
290
290
  **数据**:`newFeatures.items`
291
291
 
292
292
  | 策略/功能 (Strategy/Feature) | 账户状态 (Account Status) | 优化师建议 (Senior Optimizer Recommendation) |
293
- |------------------------------|---------------------------|-----------------------------------------------|
294
- | | | |
293
+ | ---------------------------- | ------------------------- | -------------------------------------------- |
294
+ | | | |
295
295
 
296
296
  ---
297
297
 
@@ -307,8 +307,8 @@
307
307
  ### 12.2 优先级优化路线图
308
308
 
309
309
  | 优先级 | 优化重点 | 关键行动 | 预期效果 |
310
- |--------|----------|----------|----------|
311
- | | | | |
310
+ | ------ | -------- | -------- | -------- |
311
+ | | | | |
312
312
 
313
313
  **数据**:`summary.optimizationRoadmap`
314
314
 
@@ -316,14 +316,14 @@
316
316
 
317
317
  ## 附录:与 CLI 拉数对照(可选)
318
318
 
319
- | 报告块 | 可参考的 `siluzan-tso google-analysis` 子命令 |
320
- |--------|-----------------------------------------------|
319
+ | 报告块 | 可参考的 `siluzan-tso google-analysis` 子命令 |
320
+ | -------------------------------------------------- | --------------------------------------------------------------------------------------- |
321
321
  | 账户结构 / 转化 / 黄金账户 / 系列类型 / 落地页主域 | `resource-counts`、`conversion-actions`、`gold-account`、`campaign-types`、`final-urls` |
322
- | 概览与维度汇总 | `overview`、`dimension-summary` |
323
- | 重点项对比(系列/地域/词) | `campaigns`、`geographic`、`keywords`(本期/上期各拉一次后在文外对比) |
324
- | 定向全表 | `geographic`、`devices`、`audience`(SystemDefined / UserDefined 各一次) |
325
- | 搜索词与广告 | `search-terms`、`ads` |
326
- | 按日 CPA | `daily-metrics` |
327
- | 预算竞争力(展示份额等) | `dimension-summary` + `campaigns` 等组合计算 |
322
+ | 概览与维度汇总 | `overview`、`dimension-summary` |
323
+ | 重点项对比(系列/地域/词) | `campaigns`、`geographic`、`keywords`(本期/上期各拉一次后在文外对比) |
324
+ | 定向全表 | `geographic`、`devices`、`audience`(SystemDefined / UserDefined 各一次) |
325
+ | 搜索词与广告 | `search-terms`、`ads` |
326
+ | 按日 CPA | `daily-metrics` |
327
+ | 预算竞争力(展示份额等) | `dimension-summary` + `campaigns` 等组合计算 |
328
328
 
329
329
  详见 `references/account-analytics.md`。
@@ -9,16 +9,16 @@
9
9
 
10
10
  生成报告时,**默认包含**以下 8 个维度:
11
11
 
12
- | # | 维度 | CLI |
13
- |---|------|-----|
14
- | 1 | 执行摘要(消耗/展示/点击/转化/CTR/CPC/CPA 本期概览) | `google-analysis overview` |
15
- | 2 | 每日投放趋势(按日消耗/点击/转化曲线) | `google-analysis daily-metrics` |
16
- | 3 | 月度汇总(全周期汇总数据) | `google-analysis dimension-summary` |
17
- | 4 | 广告系列表现(预算/出价策略/各系列消耗与效果) | `google-analysis campaigns` |
18
- | 5 | 设备分布(PC/移动/平板 消耗/点击/转化) | `google-analysis devices` |
19
- | 6 | 地域分布(国家/地区 消耗占比) | `google-analysis geographic` |
20
- | 7 | 关键词表现(词/消耗/CTR/CPC 排行) | `google-analysis keywords` |
21
- | 8 | 优化建议(根据以上数据给出可执行改进建议) | 不额外拉数,基于已有数据撰写 |
12
+ | # | 维度 | CLI |
13
+ | --- | ---------------------------------------------------- | ----------------------------------- |
14
+ | 1 | 执行摘要(消耗/展示/点击/转化/CTR/CPC/CPA 本期概览) | `google-analysis overview` |
15
+ | 2 | 每日投放趋势(按日消耗/点击/转化曲线) | `google-analysis daily-metrics` |
16
+ | 3 | 月度汇总(全周期汇总数据) | `google-analysis dimension-summary` |
17
+ | 4 | 广告系列表现(预算/出价策略/各系列消耗与效果) | `google-analysis campaigns` |
18
+ | 5 | 设备分布(PC/移动/平板 消耗/点击/转化) | `google-analysis devices` |
19
+ | 6 | 地域分布(国家/地区 消耗占比) | `google-analysis geographic` |
20
+ | 7 | 关键词表现(词/消耗/CTR/CPC 排行) | `google-analysis keywords` |
21
+ | 8 | 优化建议(根据以上数据给出可执行改进建议) | 不额外拉数,基于已有数据撰写 |
22
22
 
23
23
  **在执行任何数据拉取之前**,先向用户展示以下可选维度,询问是否需要追加:
24
24
 
@@ -26,19 +26,19 @@
26
26
 
27
27
  ## 平台支持的全部可选维度
28
28
 
29
- | 维度 | CLI | 备注 |
30
- |------|-----|------|
31
- | 受众分布 | `google-analysis audience` | 可分 `SystemDefined` / `UserDefined` |
32
- | 搜索词报告 | `google-analysis search-terms` | 高消耗搜索词与关键词匹配关系 |
33
- | 广告创意表现 | `google-analysis ads` | 广告标题/类型/到达网址 |
34
- | 附加信息 | `google-analysis extensions` | 附加链接/电话/宣传信息等状态 |
35
- | 图片/视频素材 | `google-analysis materials` | 图片 + 视频合并视图 |
36
- | 账户落地页 | `google-analysis final-urls` | 主投放域名/落地页(不传日期) |
37
- | 黄金账户评分 | `google-analysis gold-account` | 健康度评分与各项达标状态 |
38
- | 广告质量指标 | `google-analysis ads-index` | 质量得分汇总 |
39
- | 转化动作配置 | `google-analysis conversion-actions` | 已配置的转化目标列表 |
40
- | 账户结构统计 | `google-analysis resource-counts` | 系列/组/广告/词数量 |
41
- | 广告系列类型 | `google-analysis campaign-types` | 系列类型分布(不传日期) |
29
+ | 维度 | CLI | 备注 |
30
+ | ------------- | ------------------------------------ | ------------------------------------ |
31
+ | 受众分布 | `google-analysis audience` | 可分 `SystemDefined` / `UserDefined` |
32
+ | 搜索词报告 | `google-analysis search-terms` | 高消耗搜索词与关键词匹配关系 |
33
+ | 广告创意表现 | `google-analysis ads` | 广告标题/类型/到达网址 |
34
+ | 附加信息 | `google-analysis extensions` | 附加链接/电话/宣传信息等状态 |
35
+ | 图片/视频素材 | `google-analysis materials` | 图片 + 视频合并视图 |
36
+ | 账户落地页 | `google-analysis final-urls` | 主投放域名/落地页(不传日期) |
37
+ | 黄金账户评分 | `google-analysis gold-account` | 健康度评分与各项达标状态 |
38
+ | 广告质量指标 | `google-analysis ads-index` | 质量得分汇总 |
39
+ | 转化动作配置 | `google-analysis conversion-actions` | 已配置的转化目标列表 |
40
+ | 账户结构统计 | `google-analysis resource-counts` | 系列/组/广告/词数量 |
41
+ | 广告系列类型 | `google-analysis campaign-types` | 系列类型分布(不传日期) |
42
42
 
43
43
  ---
44
44