Mercwar AI.AVIS Studio

  1. Create your Topic: Enter a project name and choose an AI specialty in Step 1.
  2. Add a Program: Load a .ref starter pack, paste a datalake URL, or upload local files in Step 2.
  3. Copy & Paste into AI: Click Copy Setup Script to Clipboard in Step 3 and paste it as Message #1 in a fresh AI chat.
  4. Start Building: After the AI replies "Ready," use /headers, /body FILE-ID, or /check to build file-by-file.
User Manual: Complete Guide to Mercwar AI.AVIS Studio (Click to Expand)

What AVIS Studio Does: Asking a standard AI chat to generate an entire multi-file project in one prompt causes context loss, broken imports, and truncated code. Mercwar AVIS separates your project into a compact .ref blueprint manifest first, then builds or edits one module at a time with full dependency awareness.

1. Step 1 — Configure Project Identity & Role

  • Project Name: Sets the workspace title embedded into the generated AI bootstrap prompt.
  • AI Assistant Specialty: Locks the AI into a targeted engineering persona (General Builder, Game Forge, Full-Stack Web, Datalake/JSON, or CLI/Automation).
  • Programming Languages & Tools: Constrains syntax, libraries, and runtime conventions (e.g., Vanilla JS / HTML5 / JSON).
  • Project Folder Structure: Defines the exact directory paths the AI is permitted to assign to new files.
  • Save this ref in the AVIS-DATALAKE: Opens the AVIS-DATALAKE portal so you can archive or publish your .ref blueprint record.

2. Step 2 — Load or Build Your .REF Blueprint

  • Starter Program Packs: Pick a pre-built program from the dropdown and click Add Selected Programs (or Add All Programs).
  • Load .REF from AVIS-DATALAKE URL: Paste a direct link to any .ref file or JSON datalake record (GitHub /blob/ links auto-convert to raw file URLs) and click Load .REF URL.
  • Inspect, Edit, or Upload Custom Programs: Expand this drawer to upload a local folder or .ref/source files, manually append a custom file header using the File ID/Path/Depends fields, or edit the Raw Programs Registry (AVIS.REF) directly.
  • Clear Raw Registry / Remove All: Use Clear Raw Text to wipe the registry textarea or Remove All to reset all loaded blueprints.

3. Step 3 — Generate, Export, and Launch Your AI Session

  • Copy Setup Script to Clipboard: Copies the complete system prompt + loaded .ref manifest. Paste it as the very first message in a brand-new chat session (ChatGPT, Gemini, Claude, or local LLM).
  • Refresh Script: Recompiles the setup script after manual edits to Step 1 or the raw registry.
  • Save as .txt / Save Blueprint (.REF): Downloads either the full AI bootstrap script (.txt) or the standalone blueprint manifest (.ref) for reuse.
  • Clear Draft: Clears the generated output box when starting fresh.

4. AI Chat Commands (After the AI Replies "Ready")

  • /headers — Instructs the AI to architect and output new AIFVS-HEADER entries for features you describe, without writing full code yet.
  • /body FILE-ID — Generates the complete, production-ready source code for one specific blueprint ID (e.g., /body GAME-LOOP-001), honoring all listed @deps and @exports.
  • /check — Audits your entire loaded .ref dependency graph for missing IDs, circular dependencies, or mismatched function signatures.

Step 1: Describe Your Project & AI Role

Tell the AI what you are building and what kind of developer persona it should adopt.

The title of your app, game, or website.
Sets the AI's focus and coding style for this chat session.
The tech stack you want the AI to write code in.
Folders the AI is allowed to organize files into.

Step 2: Choose a Program Pack (Optional)

Load a pre-built file Programs from the server so the AI already knows all the files, functions, and connections your project needs.

0 file blueprints currently loaded into your AI setup.
Inspect, Edit, or Upload Custom Programs

Program Draft

Step 3: Copy & Paste this Into Your AI Chat Window

Open a brand-new chat in your favorite AI tool, paste the script below as your first message, and wait for it to confirm it is ready.

How to talk to the AI after pasting:
• Type /headers to have the AI plan out new files for your project.
• Type /body FILE-ID (for example, /body GAME-LOOP-001) to generate the full code for one file at a time.
• Type /check to make sure all your planned files connect together without errors.