[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AGAWJZ0GCHFKHC0C2D03AD":3,"skill-same:01M7AGAWJZ0GCHFKHC0C2D03AD":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7AGAWJZ0GCHFKHC0C2D03AD","generate-automation",null,"Write Python network automation — Nornir, Netmiko, or Scrapli scripts with a YAML inventory — then validate it locally before handing it back. Use when the user asks for a Python script, Nornir task, Netmiko or Scrapli code to push config, collect show output, back up configs, or audit a fleet of Cisco, Arista, Juniper, Palo Alto, or Fortinet devices. For Ansible use generate-playbook, for Terraform use generate-terraform, for pyATS\u002FGenie state checks use generate-tests.","ciscoittech\u002Fdamira-plugins","ciscoittech","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12874990?v=4","01M7AGA34QQBQX1NVX7SJEF93Z","Notorious CSV","01M7AGA35B7M33H4QSKVCB013C",0,"MIT","https:\u002F\u002Fgithub.com\u002Fciscoittech\u002Fdamira-plugins\u002Fblob\u002Fmain\u002Fdamira-claude-code\u002Fskills\u002Fgenerate-automation\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: generate-automation\ndescription: Write Python network automation — Nornir, Netmiko, or Scrapli scripts with a YAML inventory — then validate it locally before handing it back. Use when the user asks for a Python script, Nornir task, Netmiko or Scrapli code to push config, collect show output, back up configs, or audit a fleet of Cisco, Arista, Juniper, Palo Alto, or Fortinet devices. For Ansible use generate-playbook, for Terraform use generate-terraform, for pyATS\u002FGenie state checks use generate-tests.\nwhen_to_use: 'Trigger phrases: \"write a Nornir script\", \"Netmiko script to back up configs\", \"Scrapli task to collect show output\", \"Python to push this change to all my switches\", \"audit the fleet with Python\".'\nallowed-tools: mcp__plugin_damira_damira__damira_search_vendor_docs\n---\n\n# Python automation generation (Nornir \u002F Netmiko \u002F Scrapli)\n\nYou write the code. Damira supplies the vendor facts and the gate: every script goes\nthrough `damira validate` before you hand it back.\n\n## Step 1: Gather requirements\n\n- **Task** — push config, collect and parse show output, backup, compliance audit\n- **Targets** — platforms and OS versions, rough device count\n- **Framework** — Nornir for fleets (threaded, inventory-driven); Netmiko or Scrapli for a\n  small script. Default to Nornir + nornir_netmiko when the user has no preference.\n- **Output** — stdout report, CSV\u002FJSON file, or config pushed to devices\n\n## Step 2: Look up what you are unsure of\n\nCall `damira_search_vendor_docs` for version-specific CLI you will send, and for the\nplatform string (`cisco_ios`, `arista_eos`, `juniper_junos`, ...). **If the lookup fails,\nsay so** rather than sending commands you could not verify.\n\nRead `references\u002Fnornir-netmiko-scrapli.md` (beside this file) for the inventory layout,\nconnection plugins, platform strings and structured-output parsing.\n\n## Step 3: Write the code\n\n- **Inventory** — `automation\u002Finventory\u002F{hosts,groups,defaults}.yaml` (Nornir SimpleInventory)\n- **Credentials** — from environment variables only (`os.environ[\"NET_USERNAME\"]`,\n  `os.environ[\"NET_PASSWORD\"]`), injected into `defaults` at runtime. Never a password\n  literal in code or inventory; if a `password:` value appears in anything you wrote, fix it.\n- **Structure** — `main()` with `argparse`; `--dry-run` that prints the commands\u002Fdiff\n  instead of sending; `--limit` to filter hosts\n- **Safety** — context managers or `try\u002Ffinally` for connections; for config pushes, save a\n  backup first and use the platform's commit\u002Fconfirm or compare where it exists\n- **Parsing** — TextFSM\u002FGenie via `use_textfsm=True` \u002F `use_genie=True`, not regex on raw CLI\n- **Dependencies** — `automation\u002Frequirements.txt` with pinned versions\n\nSave under `automation\u002F`.\n\n## Validate loop\n\n**Delegate this loop to the `damira:damira-fixer` agent** (it runs on Haiku). Give it the path, `--skill generate-automation`, and `\u003Cplugin root>`. It runs the command below, fixes only what the findings name, and stops after 3 rounds. Read its report: a change to a device command, module or resource is your call, not its. If the agent isn't available, run the loop yourself as below.\n\nThe validator ships in this plugin, two levels above this skill's base directory:\n`\u003Cplugin root>\u002Fscripts\u002Fdamira.py`. It runs locally (Python AST, `ruff`, YAML lint) and\nmakes no API call. `--skill` tags the local workflow event with this skill.\n\n```bash\npython3 \"\u003Cplugin root>\u002Fscripts\u002Fdamira.py\" validate automation\u002F --skill generate-automation --host claude-code\n```\n\n1. Run it on everything you wrote.\n2. Fix every FAIL and re-run — at most 3 rounds.\n3. Still failing after 3 rounds: stop, tell the user which checks fail and why. Do not hand\n   it back as finished.\n4. A `skipped` check means the tool is not installed — pass the install hint on; it is not\n   a pass. An `UNVERIFIED` result is not a pass either.\n\n## Step 4: Hand back\n\n```bash\npython -m venv .venv && . .venv\u002Fbin\u002Factivate && pip install -r automation\u002Frequirements.txt\nexport NET_USERNAME=... NET_PASSWORD=...     # or source them from your vault\npython automation\u002F{script}.py --dry-run --limit \u003Cone-host>\n```\n\nLead with the dry run against one device. State what validate reported and any assumption.\n","# Python automation generation (Nornir \u002F Netmiko \u002F Scrapli)\n\nYou write the code. Damira supplies the vendor facts and the gate: every script goes\nthrough `damira validate` before you hand it back.\n\n## Step 1: Gather requirements\n\n- **Task** — push config, collect and parse show output, backup, compliance audit\n- **Targets** — platforms and OS versions, rough device count\n- **Framework** — Nornir for fleets (threaded, inventory-driven); Netmiko or Scrapli for a\n  small script. Default to Nornir + nornir_netmiko when the user has no preference.\n- **Output** — stdout report, CSV\u002FJSON file, or config pushed to devices\n\n## Step 2: Look up what you are unsure of\n\nCall `damira_search_vendor_docs` for version-specific CLI you will send, and for the\nplatform string (`cisco_ios`, `arista_eos`, `juniper_junos`, ...). **If the lookup fails,\nsay so** rather than sending commands you could not verify.\n\nRead `references\u002Fnornir-netmiko-scrapli.md` (beside this file) for the inventory layout,\nconnection plugins, platform strings and structured-output parsing.\n\n## Step 3: Write the code\n\n- **Inventory** — `automation\u002Finventory\u002F{hosts,groups,defaults}.yaml` (Nornir SimpleInventory)\n- **Credentials** — from environment variables only (`os.environ[\"NET_USERNAME\"]`,\n  `os.environ[\"NET_PASSWORD\"]`), injected into `defaults` at runtime. Never a password\n  literal in code or inventory; if a `password:` value appears in anything you wrote, fix it.\n- **Structure** — `main()` with `argparse`; `--dry-run` that prints the commands\u002Fdiff\n  instead of sending; `--limit` to filter hosts\n- **Safety** — context managers or `try\u002Ffinally` for connections; for config pushes, save a\n  backup first and use the platform's commit\u002Fconfirm or compare where it exists\n- **Parsing** — TextFSM\u002FGenie via `use_textfsm=True` \u002F `use_genie=True`, not regex on raw CLI\n- **Dependencies** — `automation\u002Frequirements.txt` with pinned versions\n\nSave under `automation\u002F`.\n\n## Validate loop\n\n**Delegate this loop to the `damira:damira-fixer` agent** (it runs on Haiku). Give it the path, `--skill generate-automation`, and `\u003Cplugin root>`. It runs the command below, fixes only what the findings name, and stops after 3 rounds. Read its report: a change to a device command, module or resource is your call, not its. If the agent isn't available, run the loop yourself as below.\n\nThe validator ships in this plugin, two levels above this skill's base directory:\n`\u003Cplugin root>\u002Fscripts\u002Fdamira.py`. It runs locally (Python AST, `ruff`, YAML lint) and\nmakes no API call. `--skill` tags the local workflow event with this skill.\n\n```bash\npython3 \"\u003Cplugin root>\u002Fscripts\u002Fdamira.py\" validate automation\u002F --skill generate-automation --host claude-code\n```\n\n1. Run it on everything you wrote.\n2. Fix every FAIL and re-run — at most 3 rounds.\n3. Still failing after 3 rounds: stop, tell the user which checks fail and why. Do not hand\n   it back as finished.\n4. A `skipped` check means the tool is not installed — pass the install hint on; it is not\n   a pass. An `UNVERIFIED` result is not a pass either.\n\n## Step 4: Hand back\n\n```bash\npython -m venv .venv && . .venv\u002Fbin\u002Factivate && pip install -r automation\u002Frequirements.txt\nexport NET_USERNAME=... NET_PASSWORD=...     # or source them from your vault\npython automation\u002F{script}.py --dry-run --limit \u003Cone-host>\n```\n\nLead with the dry run against one device. State what validate reported and any assumption.\n",{"name":5,"description":7,"when_to_use":24,"allowed-tools":25},"Trigger phrases: \"write a Nornir script\", \"Netmiko script to back up configs\", \"Scrapli task to collect show output\", \"Python to push this change to all my switches\", \"audit the fleet with Python\".","mcp__plugin_damira_damira__damira_search_vendor_docs","main","016916dbccc55b32762ccec3eac9030f8bacb249","damira-claude-code\u002Fskills\u002Fgenerate-automation","https:\u002F\u002Fgithub.com\u002Fciscoittech\u002Fdamira-plugins","https:\u002F\u002Fdamiraai.com","https:\u002F\u002Fgithub.com\u002Fciscoittech","I do crazy things with A.I","2026-11-02 11:12:12",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ciscoittech\u002Fdamira-plugins --skill generate-automation",{"tool":40,"command":41},"bunx","bunx skills add ciscoittech\u002Fdamira-plugins --skill generate-automation",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ciscoittech\u002Fdamira-plugins --skill generate-automation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fciscoittech\u002Fdamira-plugins\u002Fblob\u002Fmain\u002Fdamira-claude-code\u002Fskills\u002Fgenerate-automation\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fnornir-netmiko-scrapli.md","REFERENCE","参考文档",3568,"https:\u002F\u002Fgithub.com\u002Fciscoittech\u002Fdamira-plugins\u002Fblob\u002Fmain\u002Fdamira-claude-code\u002Fskills\u002Fgenerate-automation\u002Freferences\u002Fnornir-netmiko-scrapli.md",[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7AGHRRQXXRQVG1W3GCF9YW7","upgrade-plan","Ask Damira to assess a version-to-version upgrade of a network platform and produce the MOP and change control. Use when the user names a product and a target release — \"IOS-XE 17.6.5 to 17.9.5\", \"CUCM 12.5 SU7 to 15\", \"PAN-OS 10.2 to 11.1\" — or asks what breaks, what the risk is, or how long a maintenance window needs to be. Covers CUCM, IOS-XE, IOS-XR, NX-OS, PAN-OS, FortiOS, Junos, ISE, ASA, WLC\u002FCatalyst 9800. Not for platform-to-platform migration (CUCM to Webex Calling, on-prem to cloud) and not for diagnosing a fault after an upgrade — use troubleshoot for that.","https:\u002F\u002Fgithub.com\u002Fciscoittech\u002Fdamira-plugins\u002Fblob\u002Fmain\u002Fdamira-cursor\u002Fskills\u002Fupgrade-plan\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7AGHKWQX8XPBAFSZH7E4N1D","troubleshoot","Ask Damira to diagnose an active, in-progress network fault. Use when the user reports something broken right now — an outage, a flapping interface, a BGP or OSPF adjacency down, dropped or blackholed traffic, failed calls, users unable to connect — or pastes show\u002Flog output for analysis. Also fires on direct questions like \"why is BGP down\" or \"why is OSPF stuck in EXSTART\". Returns vendor-specific diagnosis with exact CLI commands. Do NOT use for \"how does X work\" protocol questions, for reviewing a config that is not currently broken (use config-audit), or for planning an upgrade (use upgrade-plan).","https:\u002F\u002Fgithub.com\u002Fciscoittech\u002Fdamira-plugins\u002Fblob\u002Fmain\u002Fdamira-cursor\u002Fskills\u002Ftroubleshoot\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7AGHEG8SYWJ12TQRC04XXWZ","source-of-truth-change","Turn intended state in the engineer's source of truth (NetBox or Nautobot) into a validated change, then hand it to the automation they already run — an Ansible Automation Platform job in check mode, a pyATS\u002FGenie before-and-after diff, or a Terraform plan. Use when the user asks to make a change \"from NetBox\" or \"from Nautobot\", to push what the source of truth says, to bring devices in line with intended state, or to run a validated playbook through AAP or pyATS. Damira never applies the change; the engineer does. For a playbook with no source of truth use generate-playbook, for Terraform alone use generate-terraform, and for an active outage use troubleshoot.","https:\u002F\u002Fgithub.com\u002Fciscoittech\u002Fdamira-plugins\u002Fblob\u002Fmain\u002Fdamira-cursor\u002Fskills\u002Fsource-of-truth-change\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7AGH9A7RS5CC5H5NSNC04K3","lab-test-change","Test a network change in a throwaway ContainerLab lab before it goes near production — deploy the lab, apply the playbook or script, run show-command or pyATS\u002FGenie checks, report pass\u002Ffail, and always destroy the lab. Use when the user says \"test this in a lab first\", \"prove this change before the window\", \"dry-run this playbook against a lab\", or wants evidence a change works before a CAB. Needs docker and containerlab on the engineer's machine; without them it validates only and says so. To only build a lab, use generate-lab; to write the change, use generate-playbook, generate-automation or generate-terraform.","https:\u002F\u002Fgithub.com\u002Fciscoittech\u002Fdamira-plugins\u002Fblob\u002Fmain\u002Fdamira-cursor\u002Fskills\u002Flab-test-change\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7AGH4SFXKQA552XNMB0M4QT","generate-workbook","Build an Excel workbook (.xlsx) for a network procedure — a migration, platform migration, security audit, change control, or incident-response workbook — grounded in Damira evidence, with an HTML preview. Use when the user asks for a spreadsheet, workbook, tracker, or Excel version of a migration plan, cutover, audit findings, change record, or incident timeline. For a version-to-version upgrade, use upgrade-plan (it offers the workbook itself). Not for diagnosing an active fault — use troubleshoot.","https:\u002F\u002Fgithub.com\u002Fciscoittech\u002Fdamira-plugins\u002Fblob\u002Fmain\u002Fdamira-cursor\u002Fskills\u002Fgenerate-workbook\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7AGH0RPM7QTN4094HYS023Z","generate-tests","Write network tests — pyATS\u002FGenie learn, change, learn, diff jobs that prove a change did what it should and nothing else, and pytest tests for automation scripts — then validate them locally. Use when the user asks for pyATS, Genie, AEtest, a testbed file, pre\u002Fpost change verification, state snapshots, or unit tests for a Nornir\u002FNetmiko script. For the change itself use generate-playbook, generate-automation or generate-terraform.","https:\u002F\u002Fgithub.com\u002Fciscoittech\u002Fdamira-plugins\u002Fblob\u002Fmain\u002Fdamira-cursor\u002Fskills\u002Fgenerate-tests\u002FSKILL.md",[],[]]