Skills Agentes

Team Communication Protocols

Protocolos estructurados de mensajería para equipos de agentes: elección de tipo de mensaje, aprobación de planes, procedimientos de apagado y antipatrones a evitar.

Estrellas
39.8k

en todo el repo

Actividad
42

0–100, la ruta de este skill

Actualizado
hace 4 meses

último commit aquí

Commits
0

últimos 90 días

Contexto
1.8k tok

137 tok en reposo

Paquete
2 archivos

9 KB

Instalar

Funciona con cualquier agente que lea SKILL.md

npx -y skills add wshobson/agents --skill team-communication-protocols --agent claude-code

Se instala solo en este repositorio.

Qué hace

  • Define cuándo usar message, broadcast o shutdown_request entre agentes de un equipo
  • Establece el flujo de aprobación de planes (plan_approval_request/response) entre lead e implementador
  • Detalla el protocolo de apagado gradual con shutdown_request y shutdown_response
  • Explica cómo descubrir teammates leyendo config.json y usar sus nombres, no agentId
  • Lista antipatrones de comunicación como broadcasts rutinarios o micromanagement

Úsalo cuando

  • Al establecer normas de comunicación para un equipo recién creado
  • Al decidir entre enviar un mensaje directo o un broadcast
  • Cuando un team-lead debe revisar y aprobar el plan de un implementador
  • Al orquestar un apagado ordenado del equipo tras completar las tareas

No lo uses cuando

    Qué lo activa

    Di cualquiera de estas frases y el agente debería cargar este skill.

    • “Ayúdame a definir cómo deben comunicarse los agentes de mi equipo”
    • “¿Debería usar broadcast o mensaje directo para avisar del endpoint listo?”
    • “Necesito cerrar el equipo de agentes de forma ordenada”
    • “Un teammate rechazó el shutdown_request, ¿qué hago?”

    SKILL.md

    En inglés

    Team Communication Protocols

    Protocols for effective communication between agent teammates, including message type selection, plan approval workflows, shutdown procedures, and common anti-patterns to avoid.

    When to Use This Skill

    • Establishing communication norms for a new team
    • Choosing between message types (message, broadcast, shutdown_request)
    • Handling plan approval workflows
    • Managing graceful team shutdown
    • Discovering teammate identities and capabilities

    Message Type Selection

    message (Direct Message) — Default Choice

    Send to a single specific teammate:

    {
      "type": "message",
      "recipient": "implementer-1",
      "content": "Your API endpoint is ready. You can now build the frontend form.",
      "summary": "API endpoint ready for frontend"
    }
    

    Use for: Task updates, coordination, questions, integration notifications.

    broadcast — Use Sparingly

    Send to ALL teammates simultaneously:

    {
      "type": "broadcast",
      "content": "Critical: shared types file has been updated. Pull latest before continuing.",
      "summary": "Shared types updated"
    }
    

    Use ONLY for: Critical blockers affecting everyone, major changes to shared resources.

    Why sparingly?: Each broadcast sends N separate messages (one per teammate), consuming API resources proportional to team size.

    shutdown_request — Graceful Termination

    Request a teammate to shut down:

    {
      "type": "shutdown_request",
      "recipient": "reviewer-1",
      "content": "Review complete, shutting down team."
    }
    

    The teammate responds with shutdown_response (approve or reject with reason).

    Communication Anti-Patterns

    Anti-Pattern Problem Better Approach
    Broadcasting routine updates Wastes resources, noise Direct message to affected teammate
    Sending JSON status messages Not designed for structured data Use TaskUpdate to update task status
    Not communicating at integration points Teammates build against stale interfaces Message when your interface is ready
    Micromanaging via messages Overwhelms teammates, slows work Check in at milestones, not every step
    Using UUIDs instead of names Hard to read, error-prone Always use teammate names
    Ignoring idle teammates Wasted capacity Assign new work or shut down

    Plan Approval Workflow

    When a teammate is spawned with plan_mode_required:

    1. Teammate creates a plan using read-only exploration tools
    2. Teammate calls ExitPlanMode which sends a plan_approval_request to the lead
    3. Lead reviews the plan
    4. Lead responds with plan_approval_response:

    Approve:

    {
      "type": "plan_approval_response",
      "request_id": "abc-123",
      "recipient": "implementer-1",
      "approve": true
    }
    

    Reject with feedback:

    {
      "type": "plan_approval_response",
      "request_id": "abc-123",
      "recipient": "implementer-1",
      "approve": false,
      "content": "Please add error handling for the API calls"
    }
    

    Shutdown Protocol

    Graceful Shutdown Sequence

    1. Lead sends shutdown_request to each teammate
    2. Teammate receives request as a JSON message with type: "shutdown_request"
    3. Teammate responds with shutdown_response:
      • approve: true — Teammate saves state and exits
      • approve: false + reason — Teammate continues working
    4. Lead handles rejections — Wait for teammate to finish, then retry
    5. After all teammates shut down — Call TeamDelete to remove team resources

    Handling Rejections

    If a teammate rejects shutdown:

    • Check their reason (usually "still working on task")
    • Wait for their current task to complete
    • Retry shutdown request
    • If urgent, user can force shutdown

    Teammate Discovery

    Find team members by reading the config file:

    Location: ~/.claude/teams/{team-name}/config.json

    Structure:

    {
      "members": [
        {
          "name": "security-reviewer",
          "agentId": "uuid-here",
          "agentType": "team-reviewer"
        },
        {
          "name": "perf-reviewer",
          "agentId": "uuid-here",
          "agentType": "team-reviewer"
        }
      ]
    }
    

    Always use name for messaging and task assignment. Never use agentId, role names, or unsuffixed aliases directly. If a teammate was spawned as team-lead-2, send to team-lead-2, not team-lead.

    Troubleshooting

    A teammate is not responding to messages. Check the teammate's task status. If it is idle, it may have completed its task and is waiting to be assigned new work or shut down. If it is still active, it may be mid-execution and will process messages once the current operation finishes.

    A teammate says it cannot see SendMessage. Check the teammate agent's tools: frontmatter. Agent Teams communication tools such as SendMessage, TaskList, TaskGet, and TaskUpdate must be listed explicitly when an agent uses a restricted tool allowlist.

    The lead is sending broadcasts for every status update. This is a common anti-pattern. Broadcasts are expensive — each one sends N messages. Use direct messages (type: "message") for point-to-point updates. Reserve broadcasts for critical shared-resource changes like an updated interface contract.

    A teammate rejected a shutdown request unexpectedly. The teammate is still working. Check the rejection reason in the shutdown_response content field, wait for the work to finish, then retry. Never force-terminate a teammate that has unsaved work.

    A plan_approval_request arrived but the request_id is missing. The teammate called ExitPlanMode without the required request context. Have the teammate re-enter plan mode, complete exploration, and call ExitPlanMode again. The request_id is generated automatically by the plan mode system.

    Two teammates are waiting on each other and neither is making progress. This is a deadlock: both are blocked waiting for the other to finish first. The lead should send a direct message to one teammate with a stub or partial result so it can unblock and proceed.

    Related Skills

    Reproducido de wshobson/agents bajo licencia MIT. Leer esta página en markdown.

    Archivos

    2 archivos en el paquete. Solo se lee SKILL.md al activarse — las referencias se cargan si el skill decide que las necesita.

    Antes de instalar

    Requiere un equipo de agentes ya spawneado con acceso a herramientas como SendMessage, TaskList y TaskUpdate.

    Detalles

    Creador
    wshobson
    Categoría
    Automatización
    Licencia
    MIT
    Recursos incluidos
    referencias
    Repositorio
    wshobson/agents
    Código fuente
    Ver SKILL.md

    Etiquetas

    Más de wshobson/agents

    Este repo incluye 183 skills. Si instalas uno, normalmente ya tienes los demás. Ver el pack agents entero y su comando de instalación

    Instala y opera Hermes Tweet, un plugin de Hermes Agent para investigar X/Twitter, leer timelines, analizar tweets y ejecutar operaciones privadas o de cambio de estado con aprobación previa.

    Costo de contexto al activarse
    1.4k tok
    Tamaño del paquete
    3 archivos
    Última actualización
    el mes pasado
    redes sociales

    Úsalo para mantener un almacén Markdown de conocimiento donde cada afirmación compilada se rastrea hasta una fuente inmutable y el drift se detecta con git diff sin gastar tokens.

    Costo de contexto al activarse
    1.4k tok
    Tamaño del paquete
    2 archivos
    Última actualización
    hace 24 días
    documentos

    Úsalo al diseñar o revisar un esquema específico de PostgreSQL: buenas prácticas, tipos de datos, indexación, restricciones, patrones de rendimiento y funciones avanzadas.

    Costo de contexto al activarse
    2k tok
    Tamaño del paquete
    2 archivos
    Última actualización
    hace 24 días
    bases de datos

    Úsalo cuando un proyecto guarda su estado en Superself: lee `self context` al iniciar sesión, vincula el trabajo a una work unit, reporta con evidencia y registra decisiones confirmadas.

    Costo de contexto al activarse
    1.3k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 24 días
    productividad

    Úsalo cuando pidan optimizar un prompt, mejorar su rendimiento, diseñar una plantilla, aplicar chain-of-thought, few-shot prompting o técnicas avanzadas de prompt engineering para producción.

    Costo de contexto al activarse
    1.3k tok
    Tamaño del paquete
    10 archivos
    Última actualización
    el mes pasado
    herramientas desarrollo

    Audita y reescribe prosa para que deje de sonar generada por máquina. Incluye modo solo-detección, modo reescritura y modo edición en el lugar, con perfiles opcionales de voz y contexto.”

    Costo de contexto al activarse
    1.9k tok
    Tamaño del paquete
    4 archivos
    Última actualización
    el mes pasado
    redaccion contenido

    Skills relacionados

    Diseña composiciones óptimas de equipos de agentes con heurísticas de tamaño, configuraciones predefinidas y selección del tipo de agente adecuado para cada rol.

    Costo de contexto al activarse
    2k tok
    Tamaño del paquete
    3 archivos
    Última actualización
    hace 4 meses
    automatizacion

    Implementa interfaces conformes con WCAG 2.2, con accesibilidad móvil, patrones de diseño inclusivo y soporte para tecnologías de asistencia.

    Costo de contexto al activarse
    601 tok
    Tamaño del paquete
    5 archivos
    Última actualización
    hace 4 meses
    desarrollo apis

    Úsalo tras generar código con IA, aceptar sugerencias o revisar módulos escritos por IA, o cuando el código funcione pero parezca frágil o con deuda oculta.

    Costo de contexto al activarse
    850 tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 2 meses
    testing qa