Logotipo de Cml Lab Lifecycle

Cml Lab Lifecycle

Comunidad
automateyournetwork
cml-lab-lifecycle

Cisco CML lab lifecycle management — create, start, stop, wipe, delete, clone, import/export labs. Use when building a network lab, starting or stopping a CML lab, cloning a topology, or importing lab YAML files.

Descripción general

Editorautomateyournetwork
Repositorionetclaw
Nombre de la habilidadcml-lab-lifecycle
Estrellas
680
Forks
189
Archivos incluidos
Solo instrucciones
LicenciaApache-2.0
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por automateyournetwork en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Cml Lab Lifecycle en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/cml-lab-lifecycle
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/automateyournetwork/netclaw.git /tmp/netclaw
mkdir -p .claude/skills
cp -r /tmp/netclaw/workspace/skills/cml-lab-lifecycle .claude/skills/cml-lab-lifecycle
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Cml Lab Lifecycle en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Cml Lab Lifecycle automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Cml Lab Lifecycle no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

CML Lab Lifecycle Management

MCP Server

  • Command: cml-mcp (pip-installed, stdio transport)
  • Requires: CML_URL, CML_USERNAME, CML_PASSWORD environment variables
  • Optional: CML_VERIFY_SSL (default: true)

Available Tools

Lab CRUD Operations

ToolParametersWhat It Does
create_labtitleCreate a new empty lab with a title
get_lablab_id or lab_titleGet lab details (state, node count, link count)
get_labsnoneList all labs on the CML server
start_lablab_id or lab_titleStart all nodes in a lab (boot the topology)
stop_lablab_id or lab_titleStop all nodes in a lab (graceful shutdown)
wipe_lablab_id or lab_titleWipe lab node configurations (reset to factory)
delete_lablab_id or lab_titleDelete a lab permanently

Lab Import/Export

ToolParametersWhat It Does
import_labtopology (YAML string)Import a lab from CML topology YAML
export_lablab_id or lab_titleExport a lab as CML topology YAML
clone_lablab_id or lab_titleClone an existing lab (deep copy)
download_lab_configslab_id or lab_titleDownload all node configs from a running lab

Workflow: Create a Lab from Scratch (Slack)

When a user says something like "build me a 3-router OSPF lab" in Slack:

  1. Create the lab: Use create_lab with a descriptive title
  2. Add nodes: (See cml-topology-builder skill) Add routers, switches, servers
  3. Wire the topology: (See cml-topology-builder skill) Create interfaces and links
  4. Apply configs: (See cml-node-operations skill) Set startup configs
  5. Start the lab: Use start_lab to boot everything
  6. Verify convergence: (See cml-node-operations skill) Execute show commands to verify routing
  7. Report back: Tell the user the lab is ready with node names and management IPs

Example Slack Conversations

"Build me a 3-router OSPF lab" → create_lab "OSPF Lab - 3 Routers" → create_node x3 (IOSv: R1, R2, R3) → create_interface + create_link (R1-R2, R2-R3, R1-R3 full mesh) → set_node_config for each (OSPF area 0, loopbacks, point-to-point links) → start_lab → execute_command: "show ip ospf neighbor" on each router → Report: "Lab ready! R1, R2, R3 all have FULL OSPF adjacencies."

"Add a 4th router to the OSPF lab" → stop_lab (topology changes require stopped state) → create_node R4 (IOSv) → create_interface + create_link (R4 to R2 and R3) → set_node_config for R4 (OSPF area 0) → Update R2 and R3 configs if needed → start_lab → Verify all 4 routers have adjacencies

"Create a lab from this YAML topology" → import_lab with the provided YAML → start_lab → Report node count, link count, state

"Clone the OSPF lab and add BGP peering" → clone_lab "OSPF Lab - 3 Routers" → "OSPF+BGP Lab" → Modify configs to add BGP router stanzas → start_lab → Verify both OSPF and BGP adjacencies

Workflow: Lab Cleanup

When a user is done with a lab:

  1. Stop the lab: stop_lab — graceful shutdown of all nodes
  2. Optional export: Ask if they want to save the topology (export_lab)
  3. Wipe configs: wipe_lab to reset node configs (if reusing later)
  4. Delete the lab: delete_lab to free CML resources

Workflow: Clone and Modify

When a user wants to experiment with a variant of an existing lab:

  1. Clone the lab: clone_lab creates a deep copy
  2. Modify the clone: Add/remove nodes, change links, update configs
  3. Start the clone: start_lab on the new copy
  4. Keep the original untouched for comparison

Workflow: Export for Sharing

When a user wants to share a lab topology:

  1. Export: export_lab returns CML YAML topology
  2. Optionally commit to GitHub: Use github-ops skill to commit the YAML to a repo
  3. Share via Slack: Post the YAML or share the GitHub link

Lab States

Labs go through these states:

StateMeaning
DEFINED_ON_CORELab exists but no nodes are running
STARTEDAll (or some) nodes are booting/running
STOPPEDAll nodes have been shut down
BOOTEDAll nodes have finished booting

Common Lab Patterns

CCIE Routing Lab

"Create a CCIE routing lab with:
- 4 x IOSv routers (R1-R4)
- 2 x IOSv L2 switches (SW1-SW2)
- Full mesh between R1-R4
- SW1 connecting R1 and R2, SW2 connecting R3 and R4"

Data Center Lab

"Build a DC lab:
- 2 x NX-OS spines
- 4 x NX-OS leaves
- 1 x external router (IOSv)
- Spine-leaf full mesh, external router to both spines"

Service Provider Lab

"Create an SP lab:
- 4 x IOS-XR routers (PE1, PE2, P1, P2)
- 2 x IOSv CE routers
- PE-P full mesh, CE1 to PE1, CE2 to PE2"

Important Rules

  • Always check lab state before operations — don't try to start an already-running lab
  • Use get_labs first to see what already exists — avoid duplicate lab names
  • Export before delete — ask the user if they want to save the topology before destroying it
  • Lab titles can be used instead of lab IDs — the CML MCP resolves titles to IDs
  • Wipe requires stop — a lab must be stopped before configs can be wiped
  • Record in GAIT — log lab creation/deletion for audit trail

Environment Variables

  • CML_URL — CML server URL (e.g., https://cml.example.com)
  • CML_USERNAME — CML username
  • CML_PASSWORD — CML password
  • CML_VERIFY_SSL — Verify SSL certificate (true/false)

Failure Behavior

  • On a tool error (timeout, unreachable host, malformed response), report the failure and its error message directly to the user rather than fabricating or guessing at results.
  • Do not automatically retry a write/mutating operation after a failure — surface the error and get explicit confirmation before retrying, since a blind retry on a partially-applied change can leave state inconsistent.

Preguntas frecuentes

¿Qué hace la habilidad de IA Cml Lab Lifecycle?

Cisco CML lab lifecycle management — create, start, stop, wipe, delete, clone, import/export labs. Use when building a network lab, starting or stopping a CML lab, cloning a topology, or importing lab YAML files.

¿Por qué usar Cml Lab Lifecycle en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Cml Lab Lifecycle está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Cml Lab Lifecycle en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/cml-lab-lifecycle. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Cml Lab Lifecycle?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Cml Lab Lifecycle?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Cml Lab Lifecycle con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Cml Lab Lifecycle?

Sí. automateyournetwork la ha publicado en GitHub bajo la licencia Apache-2.0. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇