/oficina:package-agentfrom oficina
Packages 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.
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 turn a finished agent folder into a distributable package: one file the owner can send by any channel they already use. No server involved — the file never leaves their machine unless they send it. This is the offline mirror of publishing to a catalog, and it produces the same inner format, so anything you package here can also be published to a catalog later, unchanged.
Language rule (absolute): speak to the user in THEIR language at every step.
Honesty rule (same as ADR-006): the password protects the file in transit. Whoever has the file AND the password gets the agent — and once installed, it is a folder of text files that works offline, forever, and can be copied onward. Never imply otherwise. The point is convenient, controlled hand-over — not copy protection.
AGENTS.md to learn the agent's name; derive the slug from the folder name (lowercase, no spaces). Ask for a version for this package (propose 1.0.0, or the next patch if the owner mentions an earlier one).Run ALL of these against the folder. Any failure → stop, show exactly what failed, and do not package until the owner fixes it (offer to help fix):
AGENTS.md exists, with 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). If they drifted, offer to re-mirror from .agents/ (the canonical side) before packaging.SKILL.md in uppercase with name + description frontmatter.memoria/ matches memoria/00-INDEX.md..env files, private keys (*.key, *.pem, id_rsa*, id_ed25519*), files named like credentials/secrets, or tokens embedded in text (grep for obvious patterns: sk-, ghp_, AKIA, xoxb-, Bearer followed by long strings). A finding here is a hard stop: show the file and let the owner decide — remove it or abort. Never package a secret "because it is probably fine".Included (the standard anatomy): AGENTS.md, CLAUDE.md, memoria/ (chapters + 00-INDEX + investigaciones/), .agents/skills/, .claude/skills/, research-seed.md.
Excluded always: .git/ (its history can carry the owner's internal paths and data), .gitignore, editor/OS junk (.DS_Store, Thumbs.db, .vscode/).
Anything else found in the folder (work directories like piloto/, drafts, client material): list it and ask the owner item by item — include or exclude. Default to exclude: work folders are where client data hides. The recipient needs the agent's identity and knowledge, not the owner's working papers.
The package does not carry the core protocol: the installer plugin provides it on the recipient's machine (one shared copy, always current).
From the PARENT directory of the agent folder (so the archive has a single root folder):
tar czf <slug>-<version>.tar.gz --exclude='<folder>/.git' --exclude='<folder>/.gitignore' [more --exclude per Phase 3] <folder>
Compute and record: sha256sum <slug>-<version>.tar.gz and its size in bytes.
Explain the trade-off in one line: "encrypted, the file is unreadable without the password — if the wrong person gets the file, they get nothing; unencrypted, anyone holding the file holds the agent." Recommend encrypting for anything shared beyond the owner's own machines.
If the owner says yes:
openssl rand -base64 18 → 24 characters. Or accept the owner's if they insist.openssl enc -aes-256-cbc -pbkdf2 -iter 600000 -salt -in <slug>-<version>.tar.gz -out <slug>-<version>.tar.gz.enc -pass 'pass:<PASSWORD>'
.tar.gz if the owner only intends to share the encrypted one (ask; keeping both around invites sending the wrong file).If the owner declines encryption, the deliverable is the plain .tar.gz and you say plainly what that means (anyone with the file has the agent).
Give the owner a ready-to-copy message for their recipients, in the owner's language, containing:
/oficina:install-agent — point it at this file; it will ask you for the password."And the security instructions for the owner, stated as rules, not suggestions:
-aes-256-cbc -pbkdf2 -iter 600000 -salt) are a contract with the installer — never "improve" them unilaterally: a package encrypted with different parameters will not open on the recipient's side.What SKILL.md sets; muted values are Claude Code's defaults
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./Other plugins' skills for the same job