construct-views-reset

Removes views runtime artifacts to enable a clean re-scaffold of the CONSTRUCT UI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Stale or broken views runtime state (Vite source, compiled SPA build, server PID and log files) can block a fresh rebuild of the CONSTRUCT local UI. This Skill wipes only the runtime artifacts so the scaffold → build → generate-data → start chain can run from zero state, without touching research workspaces or the skill set. ## Core Features & Use Cases - Allowlisted deletion: Removes only views/src/, views/build/, views/server.pid, and views/server.log — never touches workspace data, .construct/, AGENTS.md, or views/design-example/. - Safe server shutdown: Stops a running views server via SIGTERM with a SIGKILL fallback before deleting files, and reports if the process cannot be killed. - Verification and reporting: Confirms no allowlisted path remains after deletion and prints a clear summary of what was removed and preserved. - Use Case: After hand-editing views/src/ or hitting a corrupted build, say "reset the views" to wipe runtime state, then re-run the scaffold and build chain for a fresh SPA. ## Quick Start Tell the agent "Reset the views" to wipe the views runtime state and prepare for a fresh scaffold and rebuild.

Frequently Asked Questions about construct-views-reset

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

FAQPage Schema
How do I reset the CONSTRUCT views runtime state?▼

Say "reset the views" or "wipe views state" to trigger the reset. The skill stops the views server, deletes views/src/, views/build/, server.pid, and server.log, then verifies nothing remains before reporting completion.

Does resetting views delete my workspace research data?▼

No. The reset uses a fixed allowlist covering only views runtime artifacts. Workspace directories, the .construct/ skill set, AGENTS.md, and views/design-example/ are explicitly preserved.

What happens if the views server is still running during reset?▼

The skill reads views/server.pid, sends SIGTERM, waits up to 5 seconds, then escalates to SIGKILL. If the process survives both signals, the reset fails with an error telling you to investigate manually.

Is the views reset safe to run multiple times?▼

Yes, the reset is idempotent. Running it on an already-reset install is a clean no-op since there is nothing left to remove, and each deletion is independent of the others.

Will I lose hand-edits to views/src/ when resetting?▼

Yes. Any manual changes inside views/src/ are permanently deleted on reset, matching the behavior of views-scaffold --force. Copy out local SPA changes you want to keep before running the reset.