/oficina:install-agentfrom oficina
Installs a private agent you were given access to — either from a download code (catalog) or from a package file someone sent you (possibly password-protected). Verifies it and leaves the agent ready to open. Use when the user says they have a code for an agent, received an agent file by email or chat, was given an agent by their company, or wants to install a ready-made agent instead of creating one. Responde en el idioma del usuario / works in the user's language.
Ships in oficina. 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.
You install an already-built private agent that someone handed out — through a catalog of their own (typically a company distributing an internal agent to its people) or as a file sent directly by any channel (email, chat, a drive). Your job: turn "I have a code" or "I got this file" into a working agent folder, verified, with the protocol in place.
This is the mirror of create-agent: there you build an agent from research; here you receive one already built. The delivery bar is the same — nothing is "installed" until it passes verification.
Language rule (absolute): speak to the user in THEIR language at every step. This script being in English never means answering in English to a Spanish, Portuguese or French speaker.
Genericity rule (do not break it): the catalog URL is always input from the user or their instructions — never a constant you assume. This plugin is public and serves any owner of private agents; hardcoding one company's URL would break it for everyone else. If you were given a URL in the conversation, use that one; if not, ask.
Say it plainly if the user asks: the code gates the download; the password of a file package gates opening the file. Once installed, the agent is a folder of text files on their machine — it works offline, forever, with no license checks and no calls home. Revoking a code stops future downloads and updates; it does not disable a copy already installed. A password protects the file in transit; it does not limit what an installed copy can do.
Never imply the agent phones home or can be remotely disabled. It cannot, and promising otherwise is a lie the product would have to keep.
Ask (or infer from what they already told you): a download code, or a file?
.tar.gz or .tar.gz.enc by email/chat/drive) → offline path: Phase 1-bis, then 4-6. No server is involved; nothing is sent anywhere.https://catalog.company.com/api/agentes). If the user does not have it, stop and tell them to ask their provider: without it there is nothing to query.~/agents/<agent-slug> once you know the slug (Phase 2 tells you). Confirm before writing anything.Refuse plain http:// and say why: the code would travel in the clear. HTTPS only.
head -c 8):
Salted__ → encrypted package. Ask the user for the password (whoever sent the file shared it — by a different channel if they followed the instructions). Decrypt with the canonical parameters, which are a contract with the packager — never vary them:
openssl enc -d -aes-256-cbc -pbkdf2 -iter 600000 -in <file> -out <slug>.tar.gz -pass 'pass:<PASSWORD>'
On failure (bad decrypt = wrong password): say so in plain words, and delete the output file — openssl leaves a garbage file behind on failure, and a half-written archive lying around is exactly the kind of debris that gets "installed" by accident later. Let them retry; do not loop endlessly (3 attempts, then suggest re-checking the password with the sender).1f 8b) → plain package, proceed directly..tar.gz against it. Mismatch → abort and delete: the file was corrupted in transit or is not what the sender published. If no sha256 was provided, say you are proceeding without integrity verification — worth one honest sentence, not a blocker.~/agents/<slug> and confirm before writing anything.Then continue at Phase 4 (Install) — from here on, both paths are identical.
POST {catalog_url}/validar Content-Type: application/json
body: {"codigo": "<code>"}
Send the code in the body, never in the URL — codes in query strings end up in server access logs and shell history.
ok: false → stop. Show the mensaje field to the user as-is (it is written for them) and explain what it means: codigo_no_existe usually means a typo or a code for a different catalog; revocado means the owner turned it off — they should contact whoever gave it to them. Do not retry in a loop.ok: true → you now have nombre, descripcion, version, tamano_bytes and sha256. Tell the user what they are about to install (name, one-line description, version, size) and confirm before downloading. This is the step that prevents installing the wrong agent with a wrong code.POST {catalog_url}/descargar Content-Type: application/json
body: {"codigo": "<code>"} → the .tar.gz (binary)
Success and refusal are told apart by Content-Type, not by HTTP status: application/gzip is the package, application/json is a refusal (same shape as Phase 2 — show its mensaje).
Then verify the checksum against the sha256 from Phase 2 (or the X-Agente-Sha256 header). Available tools: sha256sum (Linux/macOS/git-bash), certutil -hashfile <file> SHA256 (Windows), shasum -a 256 (macOS).
If the checksums differ, abort and delete the file. Do not install it. It means the download was corrupted or the package changed mid-flight — either way the user must not receive it silently.
templates/protocolo-core/ to ~/.la-oficina/protocolo/ (create it if missing; overwrite if it exists — it is the shared copy every agent on this machine reads). The protocol does not travel inside the package; it comes from the plugin, which is why the installed agent is always on the current protocol. Locate the mold at ../../templates/protocolo-core/ relative to this file.git init and do not commit anything: this agent belongs to whoever built it, and its history is theirs. If the user wants version control over their copy, say so as a suggestion, not as a step you take.Same bar as the generator's Phase 4. Do not report success before running these:
AGENTS.md exists and has zero residual placeholders (grep {[A-Z_]+} → 0 matches).CLAUDE.md is the intact 3-line pointer (starts with @AGENTS.md)..agents/skills/ and .claude/skills/ are identical trees (recursive diff → no differences). A private agent whose mirrors drifted works in one runtime and not the other.SKILL.md in uppercase, with name + description frontmatter.memoria/ matches what memoria/00-INDEX.md declares.~/.la-oficina/protocolo/ (10 files)..env, no credential files, no .git. If you find any, stop and report it to the user — a package carrying secrets is a problem for whoever published it, and they need to know.If any check fails, say exactly which one and do not call the installation done. A half-installed agent that "seems fine" is worse than a clear failure.
In plain words:
cd <path> && claude (Claude Code) or cd <path> && codex (Codex), or open the folder in the desktop app. Greet it with the path of the project to work on; its startup protocol does the rest. The same folder works in both runtimes.memoria/00-INDEX.md — the user should know what expertise they just received.AGENTS.md. Setting the boundary now avoids the disappointment of asking it something outside its craft.-aes-256-cbc -pbkdf2 -iter 600000) are a contract with the packager — never vary them. A file that does not open with them was packaged differently or corrupted; report, do not improvise.AGENTS.md, no chapters), do not "fix" it by inventing content: report it to the user as a defective package so the owner can republish.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub anjos2/la-oficina --plugin oficina7 skills in this plugin
/crear-agenteAlias en español de /oficina:create-agent — crea un agente de IA completo para cualquier dominio (entrevista, investiga el dominio con fuentes, genera la carpeta identidad+memoria+skills bajo el Protocolo de La Oficina y enseña a usarlo). Usar cuando el usuario hispanohablante pida crear un agente o un compañero de IA./create-agentCreates a complete AI agent for any domain (cooking, legal, marketing, research, fitness, software, anything) — interviews the user, researches the domain in depth, generates the agent's folder (identity + memory + skills) under the La Oficina Protocol, and teaches how to use it. Use when the user asks to create an agent, an AI teammate, a persistent expert, or an agent team. Responde en el idioma del usuario / works in the user's language./empaquetar-agenteAlias en español de /oficina:package-agent — empaqueta la carpeta de un agente ya construido en un archivo compartible (verificado, sin datos privados, opcionalmente cifrado con contraseña) para distribuirlo por cualquier medio (correo, WhatsApp, un drive) o publicarlo en un catálogo. Usar cuando el usuario hispanohablante quiera compartir, exportar, enviar o "hacer un zip" de su agente./instalar-agenteAlias en español de /oficina:install-agent — instala un agente privado ya construido, sea desde un código de descarga (catálogo) o desde un archivo que le enviaron al usuario (posiblemente protegido con contraseña). Verifica la integridad y lo deja listo para abrir. Usar cuando el usuario hispanohablante diga que tiene un código de un agente, que recibió un agente por correo o chat, que su empresa le entregó un agente, o que quiere instalar un agente ya hecho en vez de crear uno./package-agentPackages an existing agent folder into a shareable file — verified, with everything private excluded, optionally encrypted with a password — so its owner can hand it out by any channel (email, WhatsApp, a drive) or publish it to a catalog. Use when the user wants to share, export, distribute or send an agent they built, or asks to "make a zip" of their agent. Responde en el idioma del usuario / works in the user's language./recursive-researchInvestigación recursiva profunda con loop auto-regulado hasta nivel PhD. Aplicable a cualquier dominio (ciencia, tecnología, negocio, arte, humanidades). Usa WDM + Inversión Munger para decisiones autónomas, tiering de fuentes confiables, y checkpointing a disco para sobrevivir límites de contexto.