make-app-analytics
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
- 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
- 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.
- 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.
- 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.
- 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.
- Register the existing and 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.
- 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.
- 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
| Entity | Responsibility |
|---|
| This Skill | Triggering and scope, business questions and questioning strategy, data verification, metric and fixed view selection, acceptance |
| Host | Business 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 package | Definition/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.