/major:file-builderfrom major
Creates and edits static HTML pages (with CSS, JS, JSON, images, fonts, markdown) as versioned bundles on Major's platform. Handles the sandbox-based edit/validate/save/publish lifecycle for reports, briefings, explainers, or one-off charts.
Ships in major. 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.
None: SKILL.md is the whole skill.
A File is a versioned bundle of .html entries plus the assets they use (CSS, JS, JSON, images, fonts, markdown): at most 100 entries and 10 MB, relative paths only, and at least one .html entry. Each .html entry is a page users view, served on Major's isolated content domain with every File on its own origin; Major injects a small frame-helper script into HTML on save, so don't add one yourself. Files have no tab in the Major web app — you create, edit, and open them for the user. index.html is the page the user opens, so keep it as the entry and link any other pages from it. A File starts private to the user who created it, who shares it with colleagues from its card. You author the bundle on the File's sandbox and edit it through the sandbox tools (the "Working with sandboxes" section of your system prompt covers addressing, provisioning, and sharing).
Finding, creating, and opening Files is on mcp__plugin_major_major__* (list and create with target_type: "file", start_sandbox). File editing goes through the sandbox tools mcp__plugin_major_major__sandbox_* (sandbox_read_file, sandbox_edit_file, sandbox_write_file, sandbox_bash), each called with target_type: "file" and target_id: "<fileId>" as the target. Sync and publishing are the major CLI, run through sandbox_bash in /workspace/file: major pull, major push -m "<notes>", major validate, major publish --yes.
The bundle lives directly at the top of /workspace/file. Two separate steps take it off the sandbox:
major push) validates the bundle and writes it as a new immutable version. Viewers still see the previous published version. The sandbox is torn down once it goes idle and comes back seeded from the last saved version, so anything unsaved is lost.major publish --yes) makes the latest saved version what viewers see.Unlike an agent, skill, or workflow, a File does nothing until it is viewed, so an unpublished File is useless: when the user asked for the File, publish after you push — unless the user said not to.
Always use a fileId returned by list or create (target_type: "file") — never invent one. Pepper's priority Files are not Files you edit here: they don't appear in list and can't be opened in a file sandbox.
major pull routinely — it overwrites the sandbox folder with the last saved version and destroys any unsaved edits, the user's included. Pull only to recover a corrupted folder or on the user's explicit ask to discard.major push before you finish a turn in which you edited files, then major publish --yes so the user sees the change.create({target_type: "file", name, description?}) — it creates the File with a starter v1 (index.html, an empty page) and starts its sandbox. Replace index.html with the real page.list({target_type: "file"}) returns fileId, name, description, isPublished, updatedAt, canEdit; then start_sandbox({target_type: "file", target_id: "<fileId>"}) mounts (or joins) its sandbox.major validate — checks the bundle (an .html entry, entry and size caps, safe paths) without saving. Saving also validates; on failure nothing is saved and the error list comes back — fix the files and save again.major push -m "<notes>". Publish: major publish --yes.The sandbox is lightweight: no preview server, no browser. You cannot render the page, so make it correct by construction:
<style>/<script>, or relative paths to CSS/JS/JSON in the bundle. Scripts from other origins load only from cdnjs.cloudflare.com or cdn.jsdelivr.net, at pinned versions; the page can fetch nothing but its own files..json fetched by relative path; query the user's resources first and write the results in.Be terse — don't echo file contents back into chat. Ask about intent (what the page is for, what data it shows) when it's unclear, then write the files yourself.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 skills in this plugin
/agent-builderCreate and configure a Major agent — a versioned two-file bundle (agent.jsonc + prompt.md) edited on a sandbox — what each field means, how to research connectors and applications before writing the prompt, and the edit/validate/save/publish lifecycle./app-builderCreate and edit Major apps — full-stack apps with a Vite + React frontend, a Hono backend under /api, and a live preview — how to create or mount an app sandbox and edit through the workspace tools./app-performanceUse this skill when the user says a Major app is slow, laggy, sluggish, takes a long time to load, hangs, spins, or times out, or asks to speed up, optimize, tune, cache, or scale an app, page, query, or API route. Covers measuring where the time goes (resource-call timings, CPU and memory usage), fixing slow and chatty queries, choosing a cache and agreeing its staleness with the user, and resizing the app's CPU and memory. Do not use it for failures that are not about speed — that is debug-issue./debug-issueUse this skill when the user asks to debug, investigate, inspect for bugs, fix an issue, or says the app is broken, failing, wrong, blank, errored, or not working. Also use it when you observe a concrete existing failure yourself, including runtime errors, failed tool/API calls, browser console errors, app errors, app logs, actual visual regressions, failing lint/tests/builds, deployment issues, bad data, auth issues, or flaky behavior. Do not use this skill for forward-looking UX polish requests like "make the UX nicer" or "improve the design" unless the user identifies a specific existing broken behavior or regression to verify./new-projectUse this skill when the user is building a brand new app for the first time. Guides connector setup, data layer understanding, and initial planning./skill-builderCreate and manage Major agent skills — versioned file bundles (SKILL.md + references + scripts) that an attached agent loads on demand — and the sandbox-based edit/validate/save/publish lifecycle.npx claudepluginhub major-technology/cli --plugin majorOther plugins' skills for the same job