/arn-spark:arn-spark-prototype-lockfrom arn-spark
Creates a frozen snapshot of a validated prototype before development begins, preventing production code from overwriting the reference artifact. Includes guardrails, git tagging, and optional enforcement hooks.
Ships in arn-spark. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create a frozen, independently servable snapshot of the validated prototype before development code begins to modify shared source files. The primary artifacts are a frozen prototype copy, CLAUDE.md guardrail rules that prevent agents from modifying prototype files, an optional PreToolUse hook for enforcement, and a git tag marking the prototype completion point.
This skill addresses the problem: once development starts, production code overwrites prototype components because they share the same source files. The locked copy preserves the validated design reference for visual comparison and rollback.
Read the project's CLAUDE.md for a ## Arness section. If no ## Arness section exists or Arness Spark fields are missing, inform the user: "Arness Spark is not configured for this project yet. Run /arn-brainstorming to get started — it will set everything up automatically." Do not proceed without it.
Extract:
.arness/prototypes).arness/vision)Check for prototype validation evidence:
[prototypes-dir]/clickable/final-report.md -- if found, read it. Extract the latest version number and judge verdict.[prototypes-dir]/static/final-report.md -- same.[prototypes-dir]/criteria.mdIf no prototype validation evidence found: Inform the user: "No prototype validation results found. This skill works best after /arn-spark-clickable-prototype or /arn-spark-static-prototype has validated a prototype. You can still lock any existing prototype files. What prototype source should I preserve?"
If validation found but judge verdict was FAIL: Warn the user: "The latest prototype version (v[N]) received a FAIL verdict from the judge. Are you sure you want to lock this version, or would you prefer to run more validation cycles first?"
Check for architecture vision to detect the stack:
architecture-vision.md from the Vision directoryScan the prototypes directory structure. Build an inventory:
"I found the following prototype artifacts:
Clickable prototype:
Static prototype:
Shared:
Total size: [calculated total]
Which version should I lock? (Default: latest passing version)"
Wait for user to confirm or specify a different version before proceeding. Do not continue until the user responds.
Read the prototype app directory and detect the framework:
package.json -- read for framework indicators (svelte, react, vue, next, nuxt, sveltekit)Cargo.toml if TauriDetermine copy strategy based on stack:
| Framework | Copy Strategy | Validation |
|---|---|---|
| SvelteKit | Copy full app directory, exclude node_modules. Include package.json, lockfile, svelte.config, vite.config, tailwind.config, src/, static/ | cd [dest] && [pm] install && [pm] run build |
| Next.js | Copy full app directory, exclude node_modules and .next/. Include package.json, lockfile, next.config, tsconfig, src/, public/ | cd [dest] && [pm] install && [pm] run build |
| Vue/Nuxt | Copy full app directory, exclude node_modules and .nuxt/. Include package.json, lockfile, nuxt.config, src/ | cd [dest] && [pm] install && [pm] run build |
| Plain HTML/CSS/JS | Copy all files directly | Open index.html in browser or serve with npx serve |
| Tauri | Copy the webview source (follows its own framework row above). Copy src-tauri/ config only if relevant to the UI snapshot | Framework-specific build (webview only) |
Present the plan:
"Stack detected: [framework]
Copy plan:
Also copying:
Proceed?"
Wait for user confirmation.
[prototypes-dir]/locked/clickable-v[N]/cp -r with exclusion of node_modules/ and framework build output directoriesfinal-report.md for each prototype typecriteria.mdRead
${CLAUDE_PLUGIN_ROOT}/skills/arn-spark-prototype-lock/references/lock-report-template.md
LOCKED.md manifest file at [prototypes-dir]/locked/LOCKED.md using the template. Populate all fields with the actual values from the copy operation.If a static prototype exists and is validated, repeat the copy for the static prototype to [prototypes-dir]/locked/static-v[M]/.
cd into the locked copyIf validation fails:
Update the LOCKED.md manifest with the validation results.
"The prototype snapshot is at [path]. Can you confirm you can access it?
If this is a web-based prototype, you can verify by running:
cd [path]
[install command]
[dev server command]
Then open [URL] in your browser.
Is the snapshot accessible and working?"
Wait for user confirmation. If the user reports issues, investigate.
If Git is configured (Git: yes):
git status --shortprototype-lock-[date]-2git tag -a prototype-lock-[date] -m "Prototype locked after validation. Clickable v[N] (Judge: [verdict]). See [prototypes-dir]/locked/LOCKED.md"prototype-lock-[date] created. You can return to this exact state with git checkout prototype-lock-[date]."If Git is not configured: skip, note that no tag was created.
Read the guardrail rules template:
Read
${CLAUDE_PLUGIN_ROOT}/skills/arn-spark-prototype-lock/references/prototype-guardrail-rules.md
Substitute the placeholders with project-specific paths:
__LOCK_DATE__ -- today's date__LOCK_TAG__ -- the git tag name from Step 6, or "none" if git is not configured__LOCKED_DIR__ -- the locked directory path__CLICKABLE_VERSION__ -- e.g., clickable/v3/__STATIC_VERSION__ -- e.g., static/v4/__PROTOTYPES_DIR__ -- base prototypes directoryAdd the populated ### Prototype Lock subsection to the ## Arness section in the project's CLAUDE.md.
Ask the user:
Ask (using AskUserQuestion):
"The CLAUDE.md rules instruct agents not to modify prototype files. Do you want additional enforcement?"
Options:
If the user chooses hook:
Read the hook template:
Read
${CLAUDE_PLUGIN_ROOT}/skills/arn-spark-prototype-lock/references/pretooluse-hook-template.json
The hook is installed in the target project (not in the arn-spark plugin):
.claude/settings.json in the target project.claude/settings.json already exists and has PreToolUse hooks, append the prototype guard to the existing hook list. Otherwise, create the hooks configuration using the template's hooks_config.__PROTECTED_PATH_1__, __PROTECTED_PATH_2__, etc. with the relative paths of the protected directories (relative to the project root, e.g., .arness/prototypes/locked/). The guard script resolves them at runtime using the cwd field from the hook input, so no user-specific absolute paths are committed..claude/hooks/prototype-lock-guard.sh in the target projectchmod +x .claude/hooks/prototype-lock-guard.shNote: The hook guards Write and Edit tool calls only. Bash commands that modify the filesystem are not intercepted -- the CLAUDE.md rules (Step 7) are the primary defense for all operations including Bash.
"Prototype locked.
Snapshot: [prototypes-dir]/locked/clickable-v[N]/ Manifest: [prototypes-dir]/locked/LOCKED.md Independent build: [PASS/FAIL/SKIPPED] Git tag: prototype-lock-[date] [or 'none'] Guardrails: CLAUDE.md rules [+ PreToolUse hook]
Protected paths (agents will not modify):
CLAUDE.md updated with ### Prototype Lock configuration.
Recommended next steps:
/arn-spark-dev-setup to configure the development environment/arn-spark-visual-strategy to set up visual regression testing against the prototype/arn-spark-feature-extract to build the backlog/arn-planning to begin the development pipeline. Arness auto-configures on first use."| Situation | Action |
|---|---|
| Copy and validate snapshot (Steps 3-4) | Execute directly in conversation via Bash and Write. No agent needed -- operations are deterministic. |
| Build validation fails with path issues | Diagnose directly. If the issue requires framework-specific knowledge, invoke arn-spark-dev-env-builder (foreground) for diagnosis assistance. |
| User asks about prototype quality | Reference the judge report and review reports. Do not re-run validation. |
| User wants to re-lock after more cycles | Re-run the skill. It detects the existing lock in Step 1 and offers to replace it. |
| User asks about visual testing | Defer: "Visual regression testing against the prototype is set up by /arn-spark-visual-strategy." |
| User asks about features | Defer: "Feature extraction is done by /arn-spark-feature-extract." |
locked/clickable-v[N]-[date2]/)"prototype-lock-[date]-2.gitignore if it should not be committed.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub appsvortex/arness --plugin arn-spark28 skills in this plugin
/arn-brainstormingThis skill should be used when the user says "brainstorming", "arn brainstorming", "brainstorm", "let's brainstorm", "start brainstorming", "brainstorming session", "greenfield wizard", "arn spark wizard", "greenfield pipeline", "walk me through greenfield", "guided greenfield", "full greenfield pipeline", "greenfield flow", "explore to feature backlog", "greenfield start to finish", "run the greenfield pipeline", "guide me through greenfield", "greenfield guided mode", "greenfield setup", "new project wizard", "add a feature", "new feature", "I need another feature", "add feature to greenfield", "one more feature", or wants to be walked through the entire Arness greenfield exploration pipeline in a single continuous session with guided decision gates instead of invoking each skill manually. Also triggers when the user wants to add a new feature to an existing greenfield project after the clickable prototype is complete./arn-spark-arch-visionThis skill should be used when the user says "arch vision", "architecture vision", "arn arch vision", "define the architecture", "tech stack", "what technology should I use", "design the system", "system architecture", "how should I build this", "technology choices", "choose technologies", "pick a tech stack", or wants to explore technology options and define the high-level architecture for a greenfield project. Takes a product concept as input and produces an architecture-vision.md document capturing the technology stack, system design, protocols, packaging strategy, and known risks./arn-spark-clickable-prototypeThis skill should be used when the user says "clickable prototype", "arn clickable prototype", "interactive prototype", "test interactions", "validate UX", "user journeys", "test navigation", "make it clickable", "prototype interactions", "test the prototype", "build the screens", "create the UI", "screen mockups", or wants to generate a clickable interactive prototype with linked screens and validate it through iterative build-review cycles with Playwright-based interaction testing, per-criterion scoring, an independent judge verdict, and versioned output./arn-spark-clickable-prototype-teamsThis skill should be used when the user says "clickable prototype teams", "arn clickable prototype teams", "team clickable prototype", "debate clickable prototype", "collaborative interaction review", "clickable prototype with debate", "team-based interaction review", "interaction debate", "review interactions as a team", "interactive prototype teams", "team prototype review", or wants to create a clickable interactive prototype with linked screens and validate it through iterative expert debate cycles where product strategist and UX specialist discuss their scores and findings before producing a combined review, with Playwright-based interaction testing, per-criterion scoring, an independent judge verdict, and versioned output. Supports Agent Teams for parallel debate or sequential simulation as fallback. For standard lower-of-two-scores interaction review, use /arn-spark-clickable-prototype instead./arn-spark-concept-reviewThis skill should be used when the user says "concept review", "review concept", "update product concept", "synthesize stress tests", "stress test review", "apply stress test findings", "review stress test results", "concept update", "merge stress test recommendations", or wants to synthesize findings from completed stress tests into a reviewed and updated product concept document. Scans for stress test reports, consolidates recommendations, resolves conflicts using product pillars, presents the full changeset for user approval, and produces an updated product-concept.md alongside a concept-review-report.md./arn-spark-dev-setupThis skill should be used when the user says "dev setup", "arn spark dev setup", "development environment", "configure dev environment", "dev container", "configure CI", "set up CI", "onboard developer", "developer setup", "set up docker", "configure development", "how do I set up this project", "development setup", "onboard me", "get this project running", "set up my machine", "new developer setup", "how do I get started", "developer onboarding", or wants to define a standardized development environment for their project (producing dev environment infrastructure files and a dev-setup document) or follow an existing environment standard to get onboarded as a new developer.Other plugins' skills for the same job