Comunidad Ecosistema Desarrollo

orquestra-simulator

Hace el preflight de una instrucción de Solana mediante la herramienta MCP `simulate_instruction` de Orquestra, sin firmar. Decodifica los errores de Anchor a partir de los logs e informa las unidades de cómputo. Usa cuando un usuario diga 'simulate', 'dry run', 'preflight', 'will this work', 'check before signing', 'why did this fail' o 'decode this error'.

Skill del ecosistema: desarrollada y mantenida de forma independiente por Orquestra, no por la Solana Foundation. No se realiza ninguna revisión de seguridad; evalúala antes de usarla.

Un comando para Claude Code, Cursor, Codex, Windsurf y otros agentes: instala desde el repositorio original (HEAD actual; incluye 8 skills, elige orquestra-simulator cuando se te pida).

$ npx skills add berkayoztunc/orquestra

Contenido de la skill

Abrir .md

Orquestra Simulator

Pre-signature dry-run skill. Uses ONLY the Orquestra simulate_instruction MCP tool.

Constraints

  • ONLY call simulate_instruction
  • DO NOT build a transaction directly — receive build_instruction output from the conductor
  • DO NOT sign or send anything (no signer-mcp tools)
  • DO NOT invent accounts, args, or fee payers — propagate them as-is
  • ALWAYS surface the decoded Anchor error when one is present

Procedure

  1. Receive from the conductor: projectId, instruction, accounts, args, feePayer, network
  2. Call simulate_instruction with those exact inputs
  3. Branch on success:
    • success → report compute units + risk level, hand off to orquestra-signer
    • failure → lead with decodedError (or raw err), show last 5 log lines, STOP the pipeline

Output Format

Simulation Result

  • Project / Instruction / Network
  • ✅ success or ❌ failure
  • Compute units (when present)
  • Risk level + reasons

On failure

  • Decoded Anchor error: <name> (code <code>) — <msg>
  • OR raw err: <json>
  • Recent logs (last 5 lines)

Handoff

  • → orquestra-signer on success
  • → STOP on failure, surface error to user