make-app-analytics

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

make-app-analytics

make-app-analytics

指导开发 Agent 在 Make App 的项目建设或迭代中,按用户已提出的问题选择指标、统计口径及固定可视化,再接入宿主与分析包。业务用户查看结果;图表类型在实施阶段确定。
Guides the development Agent, during Make App project creation or iteration, to select metrics, statistical definitions, and fixed visualizations based on the questions already raised by the user, then integrate with the host and the analytics package. Business users view the results; chart types are determined at the implementation stage.

先判断是否进入本流程

First decide whether to enter this flow

  • 初始化 PRD 已包含分析需求,或用户后续要求趋势、构成、排名、指标卡、业务报表等,按本次范围进入;已明确的需求不重复询问是否启用。
  • 普通 CRUD、审批、搜索、筛选、列表维护,以及仅存在金额、日期或大量数据,都不构成触发。未触发时继续原业务开发,不做分析访谈、统计探查、包安装、Provider、API、路由、导航或隐藏占位。
  • 临时查数用 makecli;列表现有总数沿用原链路;列表分组用 make-app-group。打印/导出明细按实际文档或导出任务处理;“报表”一词本身不决定接入分析包。
  • “想了解每月变化”“哪些类别贡献最高”等业务意图也能触发,不要求用户说出包名。手机工作台的业务入口网格、待办入口或一个日期/金额字段不表示分析需求;“工作台”含义不明时先查 PRD,仅在确实影响范围时澄清。
  • If the initialization PRD already contains analytics requirements, or the user later requests trends, composition, rankings, metric cards, business reports, etc., enter this flow within the current scope; do not re-ask whether to enable it for requirements that are already clear.
  • Ordinary CRUD, approval, search, filtering, list maintenance, as well as merely having amounts, dates, or large volumes of data do not constitute a trigger. When not triggered, continue the original business development, without analytics interviews, statistical probing, package installation, Provider, API, routing, navigation, or hidden placeholders.
  • For temporary data lookups use makecli; existing list totals follow the original chain; list grouping uses make-app-group. Printing/exporting details is handled by the actual document or export task; the word "report" alone does not determine analytics package integration.
  • Business intents such as "want to understand how it changes month by month" or "which categories contribute the most" can also trigger this flow; users are not required to name the package. A business entry grid, a to-do entry, or a single date/amount field on a mobile workbench does not indicate an analytics requirement; when the meaning of "workbench" is unclear, check the PRD first and clarify only if it truly affects scope.

已触发后的工作流

Workflow once triggered

  1. 复用 PRD、已确认口径和宿主调用链。明确要回答的问题、记录粒度、时间字段与范围、状态、去重、空值和单位。关键语义无法确定且会改变结果时才集中询问;不要让用户选择图表类型或完成技术问卷。多指标、专题页或驾驶舱先读 分析规划与渐进建设,单卡单图只记录必要决策。
  2. 选最小交付:一个指标嵌入卡片,一个趋势/构成问题嵌入一张图,多项相关问题才组合专题页或页签。需要复用宿主适配器不意味着必须增加分析中心。嵌入列表并要求随列表筛选时,先读 列表筛选联动,核对全部已应用条件能否等价进入统计;不能静默忽略关键词、多选或条件组。
  3. 通过现有 Make Skill 核对授权 Schema、字段能力和必要的只读统计,观察日期桶、分类数、覆盖范围、缺失、负值及异常值。只探查本次问题需要的数据,不默认扫描全 App。接入前读 页面请求与大数据验收,列出唯一统计来源与调用预算:兼容指标合并、多图复用、当前区域按需查询,初始化元数据不随每张图重复读取。
  4. 读取 选图与业务口径,结合实际结果选择已实现的模板。使用 接入合同 核对实际制品、公开导出与宿主分工;字段、数据质量或模板不适合时说明限制,采用可信的结果表或调整已授权范围内的方案。
  5. 在宿主服务端注册现有
    AnalysisDefinition
    与
    AnalysisRegistration
    。同时记录业务标签、解释条目及选择原因;不新增一套分析 DSL,也不向严格 V1 定义塞入布局字段。UI 只引用服务端已注册的 ID、版本与视图。 按 DateTime 统计时读 DateTime 分桶与制品门槛:自正式0.1.9支持五种显式粒度及完整自然日范围;先核对后端和实际制品,保持真实字段类型及能力标志,旧版升级后再使用。优化周标签、提示及明细时,再按同页周展示候选接入核对新增显示能力,不把分桶校验通过当作新展示已可用。 需要同比/环比、条件比率、贡献度、质量指标或多来源工作台时,先读 高级指标与共同范围。需要跨来源逐月计算、部门/整体对照、面积/分组柱/堆叠柱时,再读 分组序列与对照展示。查询和解释从共同范围注册生成,不仅凭相同 scopeKey 或文字证明分母一致。 需要累计、滚动、逐月同比环比、派生排名、目标模板、组合双轴、百分比堆叠或散点/热力时,读 既有分析能力与接入示例。这些已有正式公共合同,不在宿主重写计算;按需求选用,不把所有新模板自动加入每个App。
  6. 编排图形前读 图表占位与布局,按类型、分类/系列数、实际卡数和所属容器宽度安排跨列、并排或堆叠;指标末行、单图空轨道及嵌套区块须检查整组占位。同排同层级卡片对齐上下边缘及已有页脚底缘,各行按内容分配高度,避免全页机械等高或只拉长外框留下空白。页面外边距与业务文案遵循宿主规范和 业务页面约束;不复制验证标记,不覆盖包私有样式,公开能力不足时说明包侧缺口。 需要汇总明细时按 默认容器 接入宿主唯一适配器:PC 居中弹窗,手机底部弹层;原始业务记录沿用宿主详情/抽屉。同一 App 不按图表或数据量随意切换容器。
  7. 按 验收要求 检查真实查询、权限、口径、覆盖范围、固定展示、手机和异常状态;布局用截图及真实边界测量覆盖至应用最宽内容区,不能只验算列数。测量首次初始化、筛选、页面返回、刷新及取消的实际下游次数和耗时,不只看浏览器路由数。测试所生成的接入产物与实际请求,不能仅凭文档关键词检查声称 AI 任务验证完成。
  1. Reuse the PRD, confirmed definitions, and the host invocation chain. Clarify the questions to be answered, record granularity, time field and range, status, deduplication, null values, and units. Ask questions in a concentrated way only when key semantics cannot be determined and would change the results; do not let the user choose chart types or complete a technical questionnaire. For multiple metrics, topic pages, or dashboards, first read Analytics Planning and Incremental Build; for a single card or chart, record only the necessary decisions.
  2. Choose the smallest deliverable: embed one metric as a card, embed one trend/composition question as one chart, and only combine related questions into a topic page or tabs. The need to reuse the host adapter does not mean an analytics center must be added. When embedding into a list and requiring it to follow list filters, first read List Filter Integration and verify that all applied conditions can equivalently enter the statistics; keywords, multi-select, or condition groups must not be silently ignored.
  3. Use the existing Make Skill to verify authorized schemas, field capabilities, and necessary read-only statistics, observing date buckets, category counts, coverage, missing values, negative values, and outliers. Probe only the data needed for the current question; do not scan the entire App by default. Before integration, read Page Requests and Large-Data Acceptance, and list the single statistical source and the call budget: compatible metrics are merged, multiple charts are reused, the current area queries on demand, and initialization metadata is not re-read for every chart.
  4. Read Chart Selection and Business Definitions and choose among the implemented templates based on the actual results. Use the Integration Contract to verify actual artifacts, public exports, and the division of responsibility between host and package; when fields, data quality, or templates are unsuitable, explain the limitations and adopt a trustworthy result table or adjust the solution within the authorized scope.
  5. Register the existing
    AnalysisDefinition
    and
    AnalysisRegistration
    on the host server side. Also record business labels, explanation entries, and the reasons for selection; do not add a new analytics DSL, and do not stuff layout fields into the strict V1 definitions. The UI references only server-registered IDs, versions, and views. When aggregating by DateTime, read DateTime Bucketing and Artifact Threshold: since official 0.1.9, five explicit granularities and complete natural-day ranges are supported; verify the backend and actual artifacts first, preserve real field types and capability flags, and use them only after upgrading from older versions. When optimizing week labels, tooltips, and details, then verify the newly added display capabilities against the same page's Week Display Candidate Integration; passing bucket validation does not mean the new display is already available. When year-over-year/period-over-period comparison, conditional ratios, contribution, quality metrics, or multi-source workbenches are needed, first read Advanced Metrics and Common Scope. When cross-source monthly calculation, department/overall comparison, area/grouped bar/stacked bar, or similar is needed, then read Grouped Series and Comparative Display. Queries and explanations are generated from a common scope registration; do not assume denominators are consistent merely because the scopeKey or wording is identical. When cumulative, rolling, month-over-month year-over-year, derived rankings, target templates, combined dual axes, percentage stacking, or scatter/heatmap are needed, read Existing Analytics Capabilities and Integration Examples. These already have formal public contracts, so do not recompute them on the host; select them on demand and do not automatically add every new template to every App.
  6. Before arranging charts, read Chart Placeholders and Layout, and plan cross-column, side-by-side, or stacked arrangements according to type, category/series count, actual card count, and container width; metric last rows, empty tracks for a single chart, and nested blocks must have their placeholders checked as a whole. Cards on the same row and at the same level align their top and bottom edges as well as existing footer bottom edges; each row distributes height by content, avoiding mechanically equal heights across the page or merely stretching the outer frame and leaving blank space. Page margins and business copy follow host specifications and Business Page Constraints; do not duplicate validation marks, do not override package-private styles, and explain the package-side gap when public capabilities are insufficient. When summary details are needed, integrate the host's single adapter per Default Container: centered modal on PC, bottom sheet on mobile; original business records reuse the host detail/drawer. Do not switch containers arbitrarily by chart or data volume within the same App.
  7. Check real queries, permissions, definitions, coverage, fixed display, mobile, and exceptional states per Acceptance Requirements; layout validation uses screenshots and real boundary measurements covering the application's widest content area, and cannot rely on column counts alone. Measure the actual downstream call counts and elapsed time for first initialization, filtering, page return, refresh, and cancellation, rather than only looking at browser route counts. Verify the generated integration artifacts and actual requests; claiming an AI task validation is complete based only on documentation keywords is not acceptable.

职责交接

Responsibility handover

主体职责
本 Skill触发与范围、业务问题及询问策略、数据核对、指标和固定视图选择、验收
宿主业务对象、字段、群体、状态、日期、分母、目标来源与公式含义;注册与公开目录、可信身份和 Schema、既有请求适配器、页面组合及业务动作
分析包定义/结果校验、受控统计编排、按宿主声明计算派生指标和分组序列、固定模板资格、覆盖范围、渲染、格式、解释内容/明细和查询生命周期
Service 统计路径、组合计算与 HTTP 合同交给 make-app-service;只读资源发现交给 makecli;列表筛选与编译交给 make-app-filter;页面布局及宿主组件库适配交给 makeui;读取资格、字段和撤权生命周期交给 make-app-permission。只在本次需要时读取对应 Skill,不复制它们的实现或权限算法。
制品核验、UI/Service同版及升级边界统一按接入合同执行;分析包发布、Skill安装与宿主验收分别记录。
接入前确认本入口、随附 references 和本次需要的关联 Skill 实际可读;缺失时按所选发布通道补齐,或使用任务明确提供的源路径。无法取得时说明具体缺口,继续不依赖它的工作,不假设本机存在另一个仓库。makecli 内嵌快照和仅更新既有 Skill 不能证明新增入口已交付;发现 Skill 也不表示向普通新 App 安装分析包。
当前流程不引入运行时 LLM、用户选图器或通用 BI 编辑器。用户另行提出这些能力时,按新需求核对其数据、交互及运行时支持。
EntityResponsibility
This SkillTriggering and scope, business questions and questioning strategy, data verification, metric and fixed view selection, acceptance
HostBusiness objects, fields, groups, status, dates, denominators, target sources and formula semantics; registration and public catalog, trusted identity and schema, existing request adapters, page composition, and business actions
Analytics packageDefinition/result validation, controlled statistical orchestration, computation of derived metrics and grouped series per host declarations, fixed template eligibility, coverage, rendering, formatting, explanation content/details, and query lifecycle
Service statistical paths, combined computation, and HTTP contracts are handed over to make-app-service; read-only resource discovery to makecli; list filtering and compilation to make-app-filter; page layout and host component library adaptation to makeui; read eligibility, fields, and revocation lifecycle to make-app-permission. Read the corresponding Skill only when the current task needs it, and do not duplicate their implementations or permission algorithms.
Artifact verification, UI/Service same-version alignment, and upgrade boundaries are uniformly executed per the Integration Contract; analytics package release, Skill installation, and host acceptance are recorded separately.
Before integration, confirm that this entry point, the accompanying references, and the related Skills needed for this task are actually readable; when missing, fill them in via the selected release channel, or use the source paths explicitly provided by the task. If unavailable, state the specific gap and continue work that does not depend on it; do not assume another repository exists locally. The embedded snapshot in makecli and merely updating existing Skills cannot prove that a new entry point has been delivered; discovering a Skill also does not mean installing the analytics package into ordinary new Apps.
The current flow does not introduce runtime LLM, user-facing chart pickers, or a general-purpose BI editor. When users separately propose such capabilities, verify their data, interaction, and runtime support as a new requirement.