mimic_generate_build_report
Generate a structured build report compiling design system compliance, learned patterns, gap recommendations, and build metadata after a Mimic build. Accepts compliance data from validate_ds_compliance and returns markdown or HTML format.
Instructions
Generate a build report after a Mimic build. Compiles DS compliance data, learned patterns, DS gap recommendations, and build metadata into a structured report. Call validate_ds_compliance first to get the complianceData, then pass it here. Returns the report as markdown (default) or HTML. Optionally saves to a file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| screenName | Yes | Name of the screen that was built (e.g., "Dataflow Landing Page"). | |
| dsName | Yes | Name of the design system used. | |
| artboardNodeId | No | Artboard node ID (for metadata). | |
| complianceData | No | Output from validate_ds_compliance: { stats, violations, summary }. | |
| sectionsBuilt | No | List of section names built (e.g., ["Nav", "Hero", "Metrics"]). | |
| dsComponents | No | DS components used: [{ name, count, variant }]. | |
| primitives | No | Elements built as primitives: [{ name, reason, instances }]. instances = count of this element in the build (e.g., 4 metric cards). Used for efficiency estimates. | |
| format | No | Output format. Default: markdown. | |
| savePath | No | Optional file path to save the report. | |
| toolCallCount | No | Total tool calls made during this build (use_figma + get_screenshot + get_metadata). Tracked in-memory by the build orchestrator. | |
| cacheHits | No | Number of patterns resolved from cache (skipped DS search). | |
| coldBuildEstimate | No | Estimated tool calls for the same build with no cache. Default: toolCallCount * 2 if not provided. |