/major:skill-builderfrom major
Creates and manages Major agent skills as versioned file bundles (SKILL.md, references, scripts) with a sandbox-based edit/validate/save/publish lifecycle.
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 skill is a versioned bundle — SKILL.md (required) + optional references/*.md + optional scripts/*.{js,ts} — that an attached agent loads on demand. Turn the user's intent into a focused bundle. Pure-instruction skills are fine; when a skill does real work it's a script that talks to a resource through the proxy or a generated client (never hand-written client/auth code). You author the bundle on the skill'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 skills is on mcp__plugin_major_major__* (list and create with target_type: "skill", 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: "skill" and target_id: "<skillId>" as the target. Sync and publishing are the major CLI, run through sandbox_bash in /workspace/skill: major pull, major push -m "<notes>", major validate, major publish --yes.
Each skill's working copy lives on its own sandbox under the workspace root. Two separate steps take it off the sandbox:
major push) validates the bundle and writes it as a new immutable version. Nothing about what attached agents load changes — saving is free. 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) points the skill at its latest saved version. This is the only thing that changes what attached agents load.So a saved-but-unpublished draft is inert to attached agents — the agent that has it attached is the one that loads SKILL.md, at the last published version. Scripts are different: run them on this sandbox before saving.
Always use a skillId returned by list or create (target_type: "skill") — never invent one. If this chat is pinned to a skill, the "Working with this skill" section of your system prompt carries the bound-chat rules (its id, recovery, discard) — those win.
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. Unsaved work dies with the sandbox. Saving needs no permission and changes nothing about what attached agents load.list({target_type: "skill"}) to find it, then start_sandbox({target_type: "skill", target_id: "<skillId>"}) — it mounts (or joins) the skill's sandbox. Edit the files with the sandbox tools, saving as you finish each round.create({target_type: "skill"}) — it creates an empty draft (server-minted skillId), mounts its sandbox seeded with a scaffold, and returns where the files live. Build the bundle in that folder.major validate — validates the sandbox bundle against the platform's rules without saving. Saving also validates; on failure nothing is saved and the error list comes back — fix the files and save again.tsx and @major-tech/resource-client are on the sandbox (same as the agent pod). From the workspace root, tsx scripts/<task>.ts via the sandbox_bash tool — env already has MAJOR_GO_RESOURCE_URL / MAJOR_RESOURCES_API_TOKEN. Extra package.json deps: npm install first (node_modules isn't saved). major validate only checks bundle shape (frontmatter, file rules), not script correctness.major push -m "<notes>" — every save writes a new immutable version.major publish --yes — makes the latest saved version live. Only on the user's explicit go-ahead.name (lowercase kebab-case — publishing claims it as the skill's slug) and description. Any file type is allowed, binaries included; major validate and every major push enforce the path and size rules with errors naming what to fix.description is the catalog line the SDK injects so the model can decide whether to load the skill — write [what it does] + [when to use it] + [key capabilities], third person, with user trigger phrases. Good: "Fetches and summarises Stripe charges and refunds. Use when the user asks to summarise charges, look up a refund, or mentions a Stripe customer id." Bad: "helper for Stripe" (vague) or "Fetch and summarise Stripe charges; expects a stripe customer id" (function signature, no triggers).references/*.md.package.json (type: module) is scaffolded for you — never author it. Add dependencies to it for extra npm packages. Never write node_modules (excluded from the saved version).A script runs at agent-invocation time via tsx <plugin-dir>/skills/<slug>/scripts/<task>.ts. On this sandbox the same command is tsx scripts/<task>.ts from the workspace root. Contract: print one JSON line to stdout — {ok:true,...} or {ok:false,error:"..."} — and exit non-zero on failure.
npm packages: @major-tech/resource-client is preinstalled — just import it; don't add it to package.json. For any other package, add it to package.json.
Proxyable resources (the default) — anything list_resources flags proxy.compatible: true. Use createProxyFetch from the package ROOT (not /next — that needs a Next app); the proxy injects auth, so never set Authorization:
import { createProxyFetch } from "@major-tech/resource-client";
const proxyFetch = createProxyFetch({
baseUrl: process.env.MAJOR_GO_RESOURCE_URL,
resourceId: "<id from list_resources>",
majorJwtToken: process.env.MAJOR_RESOURCES_API_TOKEN,
});
// full upstream URL, or a relative path the proxy resolves against the resource's base
const res = await proxyFetch("https://api.hubapi.com/crm/v3/objects/contacts");
process.stdout.write(
JSON.stringify(res.ok ? { ok: true, data: await res.json() } : { ok: false, error: `proxy ${res.status}` }),
);
Read references/http-proxy.md in the using-connectors skill for the full proxy reference.
Non-proxyable resources (databases, non-HTTP connectors) — generate a typed client; don't hand-write it. The sandbox_add-resource-client({resourceId, resourceName, resourceType, resourceDescription, target_type: "skill", target_id: "<skillId>"}) writes a .ts client into clients/ and returns the import line — use it VERBATIM (it may end in .ts; never rewrite to .js). sandbox_remove-resource-client (same target) deletes one.
import { ordersDbClient } from "../clients/ordersDb.ts"; // use the import the tool returned, verbatim
// invoke(...) → { ok, result } | { ok: false, error: { message } }; args vary by resource family
const res = await ordersDbClient.invoke("SELECT count(*) AS n FROM orders", [], "weekly-orders");
process.stdout.write(
JSON.stringify(res.ok ? { ok: true, count: res.result.rows[0].n } : { ok: false, error: res.error.message }),
);
Be terse — the Files tab mirrors the sandbox live, so don't echo file contents back. Ask about intent (task, resources, inputs/outputs) when it's unclear, then write the files yourself rather than going file-by-file. Don't write or run unrelated application code — you're editing a file bundle, not building software.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub major-technology/cli --plugin major13 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./file-builderCreate and edit Major Files — static pages (HTML plus CSS, JS, JSON, images, fonts, markdown) with their data written in, made in minutes with no backend or deploy — and the sandbox-based edit/validate/save/publish lifecycle. Use for anything static the user will read or share with colleagues, such as a report, briefing, explainer, or one-off chart, or to change an existing File. A page that needs fresh data, saves input, or runs compute is an app instead./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.Other plugins' skills for the same job