Cml Lab Lifecycle logo

Cml Lab Lifecycle

Community
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.

Overview

Publisherautomateyournetwork
Repositorynetclaw
Skill namecml-lab-lifecycle
Stars
680
Forks
189
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by automateyournetwork on GitHub. Read the source before you install it.

Installation

Install the Cml Lab Lifecycle AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/cml-lab-lifecycle
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cml Lab Lifecycle in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cml Lab Lifecycle on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cml Lab Lifecycle is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Frequently asked questions

What does the Cml Lab Lifecycle AI skill do?

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.

Why use Cml Lab Lifecycle on TypingMind?

Because you install it once and use it with any model. Cml Lab Lifecycle is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cml Lab Lifecycle in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/cml-lab-lifecycle. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Cml Lab Lifecycle?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cml Lab Lifecycle?

As many as you like. As long as a model supports skills, you can use Cml Lab Lifecycle with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cml Lab Lifecycle AI skill free?

Yes. It is published on GitHub by automateyournetwork under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇