/jaiskills:agent-sdk-wizard [qué quieres que haga el agente — opcional]from jaiskills — Jairo's personal agent skills
Walks through 9 illustrated questions to build and run a Claude Agent SDK agent on Mac or Windows. Handles credential setup, generates agent code with system prompt, and runs a test.
Ships in jaiskills — Jairo's personal agent skills. 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.
Read when SKILL.md points to them.
The user knows what they want the agent to do. They do not know which of the ~65 SDK options does it, and often has never created an API key. This skill closes both gaps: step 0 gets the machine and one credential ready (Mac or Windows), then asking, not explaining: nine questions, each with a drawing of what changes, then it writes the agent — with a real system prompt and, when it helps, a real skill — and runs it.
The skill is self-contained: every file it needs is in this folder (references/,
templates/). It does not depend on any other skill being installed.
Goal given by the user (may be empty): $ARGUMENTS
references/auth.md and follow
its state machine: detect Mac or Windows, run the preflight checks yourself, give exact
install commands for what is missing, then ask the Credencial question (A ant login,
recommended · B API key · C Pro/Max token), write .env, and verify. Skip the question only
if a verified .env already exists in the target folder (credenciales prints the mode).references/ideas.md, say in one line which of the eight families it belongs to and
what small first version you propose (its primer agente recomendado, adapted to their
words). Then ask step 2 anyway with the matching archetype first — the idea is a goal, not an
archetype — and use the family's tools, custom tool, skill and guardrail as the recommended
options for steps 5–9.
When an idea maps to a family, the family wins over arquetipos.md for: the rules
(4-bis), tools (5), skill (6), guardrail (8–9: disallowed_tools + a PreToolUse hook
written for that guardrail), max_turns/max_budget_usd, cwd (./workspace) and sample
data. The archetype only decides query() vs a live session and the shape of the test
prompt. Model: Sonnet 5.5 first for any idea that reads and writes or researches; Haiku 5.5
only for pure lookups. Step 9's first option becomes "El guardián de mi idea": the
family's guardrail, from templates/hooks.* (solo_en_entregas / soloEnEntregas covers
"escribe solo en entregas/"; adapt it for other paths or for SQL), previewed as a small
diagram like the other step 9 options. Reorder step 2 so the family's archetype goes first.
Combine options when the family needs it (e.g. Read, Glob, Grep, Write and
a custom tool). ideas.md has the family → archetype table.
Sample data: when the family needs files the templates do not ship (an agenda, a bank
statement, a diff, a lesson), write small realistic ones yourself in workspace/datos/
(10–20 rows or a page; include the edge cases the agent must catch) and make the test prompt
exercise them.| The user says | Do |
|---|---|
| "quiero hacer un agente", "build me an agent", "agente con el SDK" | This wizard. Start at step 1. |
| "explícame el Agent SDK", "¿qué es un hook?" | Answer directly. Point at references/glosario.md. No wizard. |
| "arregla mi agente", "¿por qué falla esto?" | Read their code. Use references/errores.md. No wizard. |
| "quiero usar la Messages API / Managed Agents" | Different product. Say so in one line and stop — this wizard only builds Agent SDK agents. |
| "agrégale un hook a mi agente" (agent already exists) | Just that step. Read references/opciones-sdk.md for the exact code, edit their file. |
These are not suggestions. Breaking one breaks the wizard.
AskUserQuestion call per step. One question per call. Never two questions in the
same call — preview only renders on single-answer questions.multiSelect: true. It kills the previews.preview, copied from references/previews.md. No exceptions,
including the sub-questions.(Recomendado) appended to its label
((Recommended) if the user writes in English).header ≤ 12 characters. The headers below already comply.Listo: Python. Ahora, ¿qué tiene que lograr?SKILL.md and the references are English; every question,
preview label, comment and generated README comes out in the language the user writes in.
Spanish is the default for this audience.references/opciones-sdk.md, verified against TS SDK 0.3.251 / Python SDK 0.2.148 /
Claude Code 2.1.251 and re-run on Python SDK 0.2.176 / TS SDK 0.3.315–0.3.316 (2026-11-07). If it is
not in that file, do not write it..env, after .gitignore lists .env.
Never echo it, never put it in a command line, a log, the README or decisiones.md.auth.md has both.Step 2 (objetivo) sets defaults for steps 3–9 — the table is in references/arquetipos.md.
When the goal makes a step meaningless, say so in one line and skip it with the default:
default + allowed_tools.Never skip step 0, step 1, step 2, or step 5.
Full option text, previews and sub-questions live in references/previews.md, section by
section. Read that file before the first question. For each step below: ask exactly this
question, with exactly these options, in this order.
| # | question | header | Options (recommended first) | Preview section |
|---|---|---|---|---|
| 0 | ¿Con qué vas a pagar lo que gaste tu agente? | Credencial | Login con ant · API key de la consola · Mi suscripción Pro/Max | previews.md § Step 0 (after the preflight, auth.md) |
| 1 | ¿En qué lenguaje quieres tu agente? | Lenguaje | Python · TypeScript | previews.md § Step 1 |
| 2 | ¿Qué tiene que lograr tu agente? | Objetivo | Responder preguntas sobre mis archivos · Cambiar archivos o código · Llamar a mis funciones o APIs · Conversar varias vueltas con memoria | § Step 2 |
| 3 | ¿Qué tan listo lo necesitas (y cuánto quieres pagar)? | Modelo | Sonnet 5.5 · Haiku 5.5 · Opus 5.5 · Fable 5.1 | § Step 3 |
| 4 | ¿Qué personalidad y reglas fijas tiene tu agente? | Instrucción | Mínimo + mis reglas · Preset de Claude Code + mis reglas · Solo el preset · Mío completo desde cero | § Step 4 |
| 5 | ¿Qué puede hacer tu agente en el mundo? | Herramientas | Solo leer · Leer y escribir archivos · Todo, incluida la terminal · Mis propias funciones | § Step 5 |
| 6 | ¿Tu agente necesita saber un procedimiento tuyo? | Skills | No por ahora · Sí, una skill nueva · Sí, ya tengo skills en este proyecto | § Step 6 |
| 7 | ¿La tarea es tan grande que conviene repartirla? | Subagentes | No, un solo agente · Sí, un ayudante especializado · Sí, varios en paralelo | § Step 7 |
| 8 | ¿Quién autoriza cada acción del agente? | Permisos | Aprueba solo lo que listé · Que edite archivos sin preguntar · Que me pregunte a mí · Sin frenos (solo en sandbox) | § Step 8 |
| 9 | ¿Quieres un vigilante automático, código tuyo, en el ciclo? | Hooks | No por ahora · Bloquear comandos peligrosos · Guardar un registro de todo · Verificar el trabajo al final | § Step 9 |
Each is a separate AskUserQuestion call with its own previews. Ask only when the condition holds.
| After | Condition | question | header | Options |
|---|---|---|---|---|
| 3 | model is Opus 5.5 or Fable 5.1 | ¿Cuánto quieres que piense antes de responder? | Esfuerzo | Alto (high) · Muy alto (xhigh) · Medio (medium) |
| 4 | answer was 4A, 4B or 4D | ¿Qué reglas fijas le pones? | Reglas | Analista de datos · Asistente de código · Operador cuidadoso |
| 5 | answer was 5D (own functions) | ¿Además quieres conectar un servidor que ya existe? | MCP | No, solo mis funciones · Sí, un servidor MCP externo |
If the user brought an idea, the first Reglas option is "Las de mi idea (Recomendado)",
with a preview listing the 3–4 rules you derived from the idea and its family (that is what
goes into <limites> and <como_trabajas> of the system prompt); the three presets follow. If
the user picks "Otra", take their free text verbatim as the rules paragraph. Either way the
final prompt is built with references/system-prompt.md.
Exact TS and Python code for every answer: references/opciones-sdk.md.
| Step | Produces |
|---|---|
| 1 | agente.py + pyproject.toml, or agente.ts + package.json. Also query() vs ClaudeSDKClient/Query — decided by step 2, not asked. |
| 2 | The test prompt, the cwd, the sample data, and the defaults for steps 3–9 (arquetipos.md). |
| 3 | model= (+ effort= if the sub-question ran). |
| 0 | .env (AGENTE_AUTH + one credential), .env.example, .gitignore, credenciales.py/.ts. |
| 4 | SYSTEM_PROMPT, built with references/system-prompt.md and shown to the user before generating; plain string, or the preset object with append. Plus output_format when the result feeds another program. |
| 5 | allowed_tools=[…]; for own functions also the @tool / tool() skeleton, create_sdk_mcp_server, and mcp_servers={…}. |
| 6 | <cwd>/.claude/skills/<name>/SKILL.md (+ references/, scripts/ when they carry real content), written with references/skill-creator.md; setting_sources=["project"], skills=[…]. |
| 7 | agents={…} with AgentDefinition, plus "Agent" in allowed_tools, plus the parent_tool_use_id filter in the stream reader. |
| 8 | permission_mode=, allowed_tools / disallowed_tools, and the can_use_tool callback if chosen. |
| 9 | hooks={…} with the ready-made function from templates/hooks.py or templates/hooks.ts. |
Once the nine answers are in, create <nombre-del-agente>/ in the user's current directory —
ask for the name in one line if they have not said it; otherwise derive it from the goal
(kebab-case, Spanish, no accents).
Fill the templates in templates/. Do not write the code from memory: start from the template
and substitute.
| File | From | When |
|---|---|---|
agente.py | templates/agente.py.tmpl | step 1 = Python |
agente.ts | templates/agente.ts.tmpl | step 1 = TypeScript |
pyproject.toml | templates/pyproject.toml | step 1 = Python |
package.json | templates/package.json | step 1 = TypeScript |
credenciales.py / credenciales.ts | templates/credenciales.py / .ts, copied as is | always |
.env | written in step 0 (auth.md) | always; never committed |
.env.example | templates/env.example | always |
.gitignore | templates/gitignore | always, before .env |
hooks.py / hooks.ts | templates/hooks.py / templates/hooks.ts | step 9 ≠ "No por ahora" |
<cwd>/.claude/skills/<n>/SKILL.md (+ references/…) | templates/skill.md.tmpl + references/skill-creator.md | step 6 = "una skill nueva" |
workspace/datos/ventas.csv | templates/ventas.csv (it is clean: seed errors if the agent audits quality) | goal needs sample data (see arquetipos.md) |
README.md | templates/README.md.tmpl | always |
decisiones.md | templates/decisiones.md.tmpl | always |
agente.ipynb | derive from agente.py | only if the user asked for a notebook |
Non-negotiables in the generated code:
opciones = ClaudeAgentOptions(…)
or const opciones: Options = {…} — and every line carries a # paso N: … comment. That
block is the point: it is the map from the nine answers to the SDK.references/system-prompt.md: rol, contexto, objetivo, cómo
trabajas, herramientas, límites, formato de salida — never a one-liner, no {{…}} left.cwd: with cwd="./workspace", the skill goes in
workspace/.claude/skills/<n>/. That is where the SDK looks.credenciales runs before the first query(), and the README tells the user how to switch
mode (edit AGENTE_AUTH in .env).max_turns and max_budget_usd are always set. Defaults: max_turns=25,
max_budget_usd=0.15. No generated agent ships without both.🔧 nombre(argumento), tool errors, and the final
result with turns and cost. It is in the templates; keep it.If the user wants agente.ipynb, the cell body is the same code with four changes: drop
import asyncio, drop async def main() and asyncio.run(main()), put the async for
at the top level of the cell, and replace AQUI = Path(__file__).resolve().parent with
AQUI = Path.cwd() (a cell has no __file__; the notebook lives in the agent folder and
Jupyter starts there). Call preparar_credenciales() in the first cell. await, never asyncio.run — a kernel already has a running
event loop. Do not add nest_asyncio; it is not needed.
.env exists and step 0 verified it. If not, go back to step 0 — do not ask the user to
export anything; credenciales.py/.ts reads .env itself.uv sync (Python) or npm install (TypeScript).
Same command on Mac and Windows.uv run agente.py or npx tsx agente.ts. The first line must
be [auth] … naming the mode you set up; if it names another, stop and fix .env.result line: turns and cost. Path A or B: tell them it was charged to the
credits' organization; path C: to their plan.🔧 Skill(<name>). If it does not, fix the
description (see skill-creator.md) and run again.references/errores.md (and the DIAGNOSTICAR
table in auth.md for credential messages) maps the exact message to its cause and its fix.
Do not hand back a broken agent with an explanation.Do not re-explain the SDK. Show:
Then stop. The README and decisiones.md carry everything else, and decisiones.md names the
research file for each decision so the user can go deeper on their own.
agents/openai.yaml (opens in a new tab)references/arquetipos.md (opens in a new tab)references/auth.md (opens in a new tab)references/errores.md (opens in a new tab)references/glosario.md (opens in a new tab)references/ideas.md (opens in a new tab)references/opciones-sdk.md (opens in a new tab)references/previews.md (opens in a new tab)references/skill-creator.md (opens in a new tab)references/system-prompt.md (opens in a new tab)templates/README.md.tmpl (opens in a new tab)templates/agente.py.tmpl (opens in a new tab)templates/agente.ts.tmpl (opens in a new tab)templates/credenciales.py (opens in a new tab)templates/credenciales.ts (opens in a new tab)templates/decisiones.md.tmpl (opens in a new tab)templates/env.example (opens in a new tab)templates/gitignore (opens in a new tab)templates/hooks.py (opens in a new tab)templates/hooks.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/askcodexUse the askcodex CLI to get text and code from OpenAI models (GPT-6 Astra, Sol, Luna and older), generate or edit images, transcribe audio, and inspect available models, subscription usage, or authentication. Trigger for requests such as "ask GPT", "make an image", "pregúntale a GPT", "genera una imagen", "edita esta foto", "transcribe este audio", "qué modelos tengo", or "cuánta cuota queda", and for bounded one-shot tasks (draft, summarize, classify or extract into schema-checked JSON, generate an asset) worth a second model's answer. Not for critiquing repo work, plans or diffs: use second-opinion, which reads the repo./managed-agents-wizardWalk a person from an idea to a Claude Managed Agents agent that runs on its own, and stay with them through debugging. Explains each concept at the moment it matters (Agent, Environment, Session, Deployment, vault, memory store, outcome), asks the real decisions as illustrated AskUserQuestion choices, designs the system prompt in Simplified Technical English, finds MCP connectors, sets up credentials without the secret ever reaching the chat, writes the files, applies them with the `ant` CLI, runs a capped test session, and diagnoses failed sessions from their events. Trigger on "crea un agente en Managed Agents", "managed agents wizard", "quiero un agente que corra solo", "agente programado", "agente que revise mis repos cada lunes", "mi sesión se quedó pegada", "por qué falló mi agente", "debug my managed agent session", "explícame la traza", "set up a scheduled Claude agent", "deploy an agent on a cron". Not for the Claude Agent SDK (use agent-sdk-wizard), the raw Messages API, or Claude Code itself.npx claudepluginhub jairotorregrosa/jaiskills --plugin jaiskillsOther plugins' skills for the same job