[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CVFNF1VFWKB364RPRCYXT6":3,"skill-same:01M7CVFNF1VFWKB364RPRCYXT6":48},{"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":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7CVFNF1VFWKB364RPRCYXT6","netmiko-ssh-automation",null,"Safe Python Netmiko patterns for read-only collection, bounded batch SSH, TextFSM parsing, guarded config changes, timeouts, and network automation error handling.","Henrique1601\u002FSkiilsToIAs","Henrique1601","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F92006691?v=4","01M7CRXVT0GVXVK80JT1GR687S","Henrique Bezerra Dos Santos","01M7CRXVTN5Y8TMWJ1MDSKCQ1T",0,"MIT","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Fdevops-cloud\u002Fnetmiko-ssh-automation\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: netmiko-ssh-automation\ndescription: Safe Python Netmiko patterns for read-only collection, bounded batch SSH, TextFSM parsing, guarded config changes, timeouts, and network automation error handling.\nmetadata:\n  origin: community\n---\n\n# Netmiko SSH Automation\n\nUse this skill when writing or reviewing Python automation that connects to\nnetwork devices with Netmiko. Keep the default path read-only; config changes\nneed a separate change window, peer review, and rollback plan.\n\n## When to Use\n\n- Collecting `show` command output across routers, switches, or firewalls.\n- Building a small audit script for interface, routing, or config evidence.\n- Adding timeouts and exception handling to network SSH scripts.\n- Parsing command output with TextFSM when a template exists.\n- Reviewing automation before it touches production devices.\n\n## Safety Defaults\n\n- Start with read-only `send_command()` collection.\n- Keep inventory small and explicit; do not sweep whole address ranges.\n- Use environment variables, a vault, or `getpass`; never hardcode credentials.\n- Set connection and read timeouts.\n- Limit concurrency so older devices are not overloaded.\n- Require an explicit operator flag before `send_config_set()`.\n- Do not call `save_config()` until the change has been verified and approved.\n\n## Read-Only Connection Pattern\n\n```python\nimport os\nfrom getpass import getpass\nfrom netmiko import ConnectHandler\nfrom netmiko.exceptions import (\n    NetmikoAuthenticationException,\n    NetmikoTimeoutException,\n    ReadTimeout,\n)\n\ndevice = {\n    \"device_type\": \"cisco_ios\",\n    \"host\": \"192.0.2.10\",\n    \"username\": os.environ.get(\"NETMIKO_USERNAME\") or input(\"Username: \"),\n    \"password\": os.environ.get(\"NETMIKO_PASSWORD\") or getpass(\"Password: \"),\n    \"secret\": os.environ.get(\"NETMIKO_ENABLE_SECRET\"),\n    \"conn_timeout\": 10,\n    \"auth_timeout\": 20,\n    \"banner_timeout\": 15,\n    \"read_timeout_override\": 30,\n}\n\ntry:\n    with ConnectHandler(**device) as conn:\n        if device.get(\"secret\") and not conn.check_enable_mode():\n            conn.enable()\n        output = conn.send_command(\"show ip interface brief\", read_timeout=30)\n        print(output)\nexcept NetmikoAuthenticationException:\n    print(\"Authentication failed\")\nexcept NetmikoTimeoutException:\n    print(\"SSH connection timed out\")\nexcept ReadTimeout:\n    print(\"Command read timed out\")\n```\n\nUse placeholder addresses from documentation ranges in examples. Keep real\ninventory in an ignored local file or a secrets-managed system.\n\n## Batch Collection\n\n```python\nfrom concurrent.futures import ThreadPoolExecutor, as_completed\nfrom typing import Any\n\ndef collect_show(device: dict[str, Any], command: str) -> dict[str, Any]:\n    host = device[\"host\"]\n    try:\n        with ConnectHandler(**device) as conn:\n            output = conn.send_command(command, read_timeout=45)\n        return {\"host\": host, \"ok\": True, \"output\": output}\n    except (NetmikoAuthenticationException, NetmikoTimeoutException, ReadTimeout) as exc:\n        return {\"host\": host, \"ok\": False, \"error\": type(exc).__name__}\n\nresults = []\nwith ThreadPoolExecutor(max_workers=8) as pool:\n    futures = [pool.submit(collect_show, device, \"show version\") for device in devices]\n    for future in as_completed(futures):\n        results.append(future.result())\n```\n\nKeep `max_workers` low unless the device estate and AAA systems are known to\nhandle higher connection volume.\n\n## Structured Parsing\n\nNetmiko can ask TextFSM, TTP, or Genie to parse supported command output. Treat\nparser output as an optimization, not the only evidence path.\n\n```python\nwith ConnectHandler(**device) as conn:\n    parsed = conn.send_command(\n        \"show ip interface brief\",\n        use_textfsm=True,\n        raise_parsing_error=False,\n        read_timeout=30,\n    )\n\nif isinstance(parsed, str):\n    print(\"No parser template matched; store raw output for review\")\nelse:\n    for row in parsed:\n        print(row)\n```\n\nIf parsing drives a blocking decision, keep the raw command output alongside\nthe parsed result so an operator can inspect mismatches.\n\n## Guarded Config Pattern\n\n```python\nimport os\n\ncommands = [\n    \"interface GigabitEthernet0\u002F1\",\n    \"description CHANGE-1234 UPLINK-TO-CORE\",\n]\n\napply_changes = os.environ.get(\"APPLY_NETWORK_CHANGES\") == \"1\"\n\nif not apply_changes:\n    print(\"Dry run only. Candidate commands:\")\n    print(\"\\n\".join(commands))\nelse:\n    with ConnectHandler(**device) as conn:\n        conn.enable()\n        before = conn.send_command(\"show running-config interface GigabitEthernet0\u002F1\")\n        output = conn.send_config_set(commands)\n        after = conn.send_command(\"show running-config interface GigabitEthernet0\u002F1\")\n        print(before)\n        print(output)\n        print(after)\n        print(\"Verify behavior before saving startup config.\")\n```\n\nSaving the config is a separate approval step. In production, include a rollback\nsnippet and capture before\u002Fafter evidence in the change record.\n\n## Review Checklist\n\n- Does the script identify an explicit inventory source?\n- Are credentials absent from source, logs, and exception messages?\n- Are `conn_timeout`, `auth_timeout`, and command `read_timeout` set?\n- Are failures reported per device without stopping the whole batch?\n- Does the script avoid broad scans and unbounded concurrency?\n- Are config changes behind a dry-run or explicit operator flag?\n- Is `save_config()` separate from the initial push and tied to verification?\n\n## Anti-Patterns\n\n- Hardcoding passwords, enable secrets, or private keys in source.\n- Sending config commands as the default code path.\n- Running automation against a CIDR range instead of a reviewed inventory.\n- Logging full running configs to shared systems without sanitization.\n- Treating parser success as proof that the device state is correct.\n\n## See Also\n\n- Skill: `cisco-ios-patterns`\n- Skill: `network-config-validation`\n- Skill: `network-interface-health`\n","# Netmiko SSH Automation\n\nUse this skill when writing or reviewing Python automation that connects to\nnetwork devices with Netmiko. Keep the default path read-only; config changes\nneed a separate change window, peer review, and rollback plan.\n\n## When to Use\n\n- Collecting `show` command output across routers, switches, or firewalls.\n- Building a small audit script for interface, routing, or config evidence.\n- Adding timeouts and exception handling to network SSH scripts.\n- Parsing command output with TextFSM when a template exists.\n- Reviewing automation before it touches production devices.\n\n## Safety Defaults\n\n- Start with read-only `send_command()` collection.\n- Keep inventory small and explicit; do not sweep whole address ranges.\n- Use environment variables, a vault, or `getpass`; never hardcode credentials.\n- Set connection and read timeouts.\n- Limit concurrency so older devices are not overloaded.\n- Require an explicit operator flag before `send_config_set()`.\n- Do not call `save_config()` until the change has been verified and approved.\n\n## Read-Only Connection Pattern\n\n```python\nimport os\nfrom getpass import getpass\nfrom netmiko import ConnectHandler\nfrom netmiko.exceptions import (\n    NetmikoAuthenticationException,\n    NetmikoTimeoutException,\n    ReadTimeout,\n)\n\ndevice = {\n    \"device_type\": \"cisco_ios\",\n    \"host\": \"192.0.2.10\",\n    \"username\": os.environ.get(\"NETMIKO_USERNAME\") or input(\"Username: \"),\n    \"password\": os.environ.get(\"NETMIKO_PASSWORD\") or getpass(\"Password: \"),\n    \"secret\": os.environ.get(\"NETMIKO_ENABLE_SECRET\"),\n    \"conn_timeout\": 10,\n    \"auth_timeout\": 20,\n    \"banner_timeout\": 15,\n    \"read_timeout_override\": 30,\n}\n\ntry:\n    with ConnectHandler(**device) as conn:\n        if device.get(\"secret\") and not conn.check_enable_mode():\n            conn.enable()\n        output = conn.send_command(\"show ip interface brief\", read_timeout=30)\n        print(output)\nexcept NetmikoAuthenticationException:\n    print(\"Authentication failed\")\nexcept NetmikoTimeoutException:\n    print(\"SSH connection timed out\")\nexcept ReadTimeout:\n    print(\"Command read timed out\")\n```\n\nUse placeholder addresses from documentation ranges in examples. Keep real\ninventory in an ignored local file or a secrets-managed system.\n\n## Batch Collection\n\n```python\nfrom concurrent.futures import ThreadPoolExecutor, as_completed\nfrom typing import Any\n\ndef collect_show(device: dict[str, Any], command: str) -> dict[str, Any]:\n    host = device[\"host\"]\n    try:\n        with ConnectHandler(**device) as conn:\n            output = conn.send_command(command, read_timeout=45)\n        return {\"host\": host, \"ok\": True, \"output\": output}\n    except (NetmikoAuthenticationException, NetmikoTimeoutException, ReadTimeout) as exc:\n        return {\"host\": host, \"ok\": False, \"error\": type(exc).__name__}\n\nresults = []\nwith ThreadPoolExecutor(max_workers=8) as pool:\n    futures = [pool.submit(collect_show, device, \"show version\") for device in devices]\n    for future in as_completed(futures):\n        results.append(future.result())\n```\n\nKeep `max_workers` low unless the device estate and AAA systems are known to\nhandle higher connection volume.\n\n## Structured Parsing\n\nNetmiko can ask TextFSM, TTP, or Genie to parse supported command output. Treat\nparser output as an optimization, not the only evidence path.\n\n```python\nwith ConnectHandler(**device) as conn:\n    parsed = conn.send_command(\n        \"show ip interface brief\",\n        use_textfsm=True,\n        raise_parsing_error=False,\n        read_timeout=30,\n    )\n\nif isinstance(parsed, str):\n    print(\"No parser template matched; store raw output for review\")\nelse:\n    for row in parsed:\n        print(row)\n```\n\nIf parsing drives a blocking decision, keep the raw command output alongside\nthe parsed result so an operator can inspect mismatches.\n\n## Guarded Config Pattern\n\n```python\nimport os\n\ncommands = [\n    \"interface GigabitEthernet0\u002F1\",\n    \"description CHANGE-1234 UPLINK-TO-CORE\",\n]\n\napply_changes = os.environ.get(\"APPLY_NETWORK_CHANGES\") == \"1\"\n\nif not apply_changes:\n    print(\"Dry run only. Candidate commands:\")\n    print(\"\\n\".join(commands))\nelse:\n    with ConnectHandler(**device) as conn:\n        conn.enable()\n        before = conn.send_command(\"show running-config interface GigabitEthernet0\u002F1\")\n        output = conn.send_config_set(commands)\n        after = conn.send_command(\"show running-config interface GigabitEthernet0\u002F1\")\n        print(before)\n        print(output)\n        print(after)\n        print(\"Verify behavior before saving startup config.\")\n```\n\nSaving the config is a separate approval step. In production, include a rollback\nsnippet and capture before\u002Fafter evidence in the change record.\n\n## Review Checklist\n\n- Does the script identify an explicit inventory source?\n- Are credentials absent from source, logs, and exception messages?\n- Are `conn_timeout`, `auth_timeout`, and command `read_timeout` set?\n- Are failures reported per device without stopping the whole batch?\n- Does the script avoid broad scans and unbounded concurrency?\n- Are config changes behind a dry-run or explicit operator flag?\n- Is `save_config()` separate from the initial push and tied to verification?\n\n## Anti-Patterns\n\n- Hardcoding passwords, enable secrets, or private keys in source.\n- Sending config commands as the default code path.\n- Running automation against a CIDR range instead of a reviewed inventory.\n- Logging full running configs to shared systems without sanitization.\n- Treating parser success as proof that the device state is correct.\n\n## See Also\n\n- Skill: `cisco-ios-patterns`\n- Skill: `network-config-validation`\n- Skill: `network-interface-health`\n",{"name":5,"metadata":24,"description":7},{"origin":25},"community","main","a73152352c0612252131e5cf84e91312a6cf17dc","devops-cloud\u002Fnetmiko-ssh-automation","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs","https:\u002F\u002Fgithub.com\u002FHenrique1601","https:\u002F\u002Fbezerraportifolio.netlify.app\u002F","Full Stack Developer | React, Next.js, TypeScript, Node.js & IA | Construindo produtos digitais e soluções SaaS","2026-11-15 02:56:04",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Henrique1601\u002FSkiilsToIAs --skill netmiko-ssh-automation",{"tool":40,"command":41},"bunx","bunx skills add Henrique1601\u002FSkiilsToIAs --skill netmiko-ssh-automation",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Henrique1601\u002FSkiilsToIAs --skill netmiko-ssh-automation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Fdevops-cloud\u002Fnetmiko-ssh-automation\u002FSKILL.md",true,[],[49,56,63,71,78,85],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7E2ANBW9V6AVX5JXNCEAWF8","rag-architect-agent","Agente Arquiteto de RAG, Embeddings & Busca Vetorial. Especialista em design e implementação de pipelines de Retrieval-Augmented Generation de alta fidelidade: chunking semântico, modelagem pgvector no PostgreSQL (Neon\u002FSupabase), busca híbrida (cosseno + BM25), reranking, validação via TypeSafe AI e filosofia Ponytail (anti-overengineering).","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Fcustom-agents\u002Frag-architect-agent\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7E29KKF8R02ZRGYE2MJM67G","rag-architecture-patterns","Padrões arquiteturais e implementação de pipelines RAG (Retrieval-Augmented Generation) de alta fidelidade para qualquer projeto ou sistema. Cobre chunking semântico, embeddings, busca híbrida (pgvector + BM25), reranking, validação via TypeSafe AI e filosofia Ponytail (anti-overengineering).","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Fai-agents\u002Frag-architecture-patterns\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7CWRA8E3BJ7CPY8N8EG28J1","skill-repair","Use this to fix and re-install agent skills that have failed installation.\nThis skill provides the necessary context and permissions to surgically update\nthe `manifest.json` after a fix has been applied.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Futilities\u002Fskill-repair\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7CWR66FZP8FA47WVZ4Z2EXC","security-scan","Scan your Claude Code configuration (.claude\u002F directory) for security vulnerabilities, misconfigurations, and injection risks using AgentShield. Checks CLAUDE.md, settings.json, MCP servers, hooks, and agent definitions.","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Futilities\u002Fsecurity-scan\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7CWR0QPY58QPTR1P759TFNG","security-review","Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment\u002Fsensitive features. Provides comprehensive security checklist and patterns.","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Futilities\u002Fsecurity-review\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7CWQXCE40XWT4FZ3VWZFGDP","security-bounty-hunter","Hunt for exploitable, bounty-worthy security issues in repositories. Focuses on remotely reachable vulnerabilities that qualify for real reports instead of noisy local-only findings.","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Futilities\u002Fsecurity-bounty-hunter\u002FSKILL.md",[],[]]