Comunidade Ecossistema Desenvolvimento

orquestra-simulator

Faz o preflight de uma instrução Solana pela ferramenta MCP `simulate_instruction` da Orquestra — sem assinar. Decodifica erros do Anchor a partir dos logs e informa as unidades de computação. Use quando um usuário disser 'simulate', 'dry run', 'preflight', 'will this work', 'check before signing', 'why did this fail' ou 'decode this error'.

Skill do ecossistema — desenvolvida e mantida de forma independente por Orquestra, não pela Solana Foundation. Nenhuma revisão de segurança é feita; avalie antes de usar.

Um comando para Claude Code, Cursor, Codex, Windsurf e outros agentes — instala a partir do repositório original (HEAD atual; ele traz 8 skills — escolha orquestra-simulator quando solicitado).

$ npx skills add berkayoztunc/orquestra

Conteúdo da 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