construct-views-generate-data

Generates JSON data files for the views dashboard from workspace state.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/mabstruct/construct --skill construct-views-generate-data-mabstruct
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: construct-views-generate-data
Source: https://github.com/mabstruct/construct/tree/main/CONSTRUCT-CLAUDE-impl/claude/skills/construct-views-generate-data
Command: npx skills add https://github.com/mabstruct/construct --skill construct-views-generate-data-mabstruct

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Keeping the views dashboard in sync with workspace knowledge requires regenerating its JSON data files whenever workspace content changes, and doing this manually through the CLI is error-prone and easy to forget. ## Core Features & Use Cases - Aggregated data generation: Runs the CONSTRUCT views generator across every workspace discovered under the install root, producing all 8 JSON contracts plus version.json. - Incremental refresh: Fingerprints workspace source files by mtime and size, short-circuiting when nothing has changed since the last run. - Structured failure reporting: Distinguishes validation errors, missing build directories, and missing CLI installations with clear, surfaced messages. - Use Case: After curating new research notes across several workspaces, ask the agent to refresh the views data so the browser dashboard reflects the latest knowledge state within 30 seconds. ## Quick Start Ask the agent to update the views data for your CONSTRUCT installation so the dashboard reflects the latest workspace state.

Frequently Asked Questions about construct-views-generate-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update the views dashboard data in CONSTRUCT?▼

Ask the agent to update or rebuild the views data, which runs construct views generate against the install root. The generator writes all JSON contract files to views/build/data/ and the browser picks up changes within 30 seconds.

What does the views data generator produce?▼

It produces all 8 JSON contract files under views/build/data/ plus a version.json file, aggregated from every workspace discovered beneath the install root. It is the sole writer to those locations per the architecture invariants.

Why does views generation fail with views/build not found?▼

The generator requires the views/build directory to already exist, which is created by the separate views-build step. Run views-build first, then re-run the data generation.

Can I run views generation for a single workspace only?▼

No. The generator is install-root scoped by design and aggregates every workspace beneath it; the workspace-scoped option was removed. Passing a single workspace discovers zero workspaces and produces empty views.

Does the generator rerun when nothing changed?▼

It short-circuits using fingerprints of each workspace's source files based on mtime and size, stored in views/build/data/_build_meta.json. When nothing changed, it writes no files and exits successfully.