[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70GGYH69KP68Q8DX2NWWXCH":3,"skill-same:01M70GGYH69KP68Q8DX2NWWXCH":72},{"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":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":6,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M70GGYH69KP68Q8DX2NWWXCH","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. Use when automating network device access with Python Netmiko, whether collecting state or pushing guarded config changes.","mdnaimul22\u002Fhuman-skills","mdnaimul22","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F64520358?v=4","01M70FH95MH2H796Q01TYSFZ03","Naimul","01M70FH96798CQR4YHA13F17GA",3,"MIT","https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Faffaan-m_ECC\u002Fnetmiko-ssh-automation\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"automation","netmiko ssh automation","ssh","when","safe","bounded","for","read-only","error","network automation","patterns","community","only","read","access","parsing","collection","network","batch","config","2026-11-10 10:12:30",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. Use when automating network device access with Python Netmiko, whether collecting state or pushing guarded config changes.\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":49,"description":7},{"origin":35},"main","74715deacdc69119d739f38916f8ee4f0f979ebf","skills\u002Fstorage\u002Faffaan-m_ECC\u002Fnetmiko-ssh-automation",0,"https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills","https:\u002F\u002Fgithub.com\u002Fmdnaimul22","AI Agents Workflows Automation | Specializing in Python, FastAPI, MCP Agents & Custom ERP.","2026-11-11 21:16:57",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add mdnaimul22\u002Fhuman-skills --skill netmiko-ssh-automation",{"tool":64,"command":65},"bunx","bunx skills add mdnaimul22\u002Fhuman-skills --skill netmiko-ssh-automation",{"tool":67,"command":68},"pnpm","pnpm dlx skills add mdnaimul22\u002Fhuman-skills --skill netmiko-ssh-automation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Faffaan-m_ECC\u002Fnetmiko-ssh-automation\u002FSKILL.md",true,[],[73,81,89,96,103,110],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":80},"01M767791C1KRP2ZRW2Z73VZ5Q","system-lifecycle-designer","Universal architectural methodology for designing granular, atomic, and sub-atomic lifecycles and end-to-end workflows for single functionality integrations across any domain (daemons, batch jobs, request transactions, resource pools). Provides patterns for deterministic identity, pre-commit validation, differential reconciliation, sticky leasing, state machines, transactional persistence, and closed-loop feedback.","https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Fmy_skills\u002Fsystem-lifecycle-designer\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":88},"01M748ABPN5F1FANHH6HKZQMXT","style-sampling","Make a new episode in a proven video style - Collage Explainer, Finance Explainer, Animated Science Explainer, 3D Brand Explainer, 3D True Crime - on the person's topic. Use for \"an episode of\", \"in the style of\", \"sample this style\", 「用这个风格做一集」. One video to copy is reverse-any-video.","https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Fheygen-com_hyperframes\u002Fstyle-sampling\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":88},"01M748A59V04PKW4HA0XQ81FGP","reverse-any-video","Rebuild any video file as an editable HyperFrames project - motion graphics, talking heads, live action or AI-generated footage - checked against the original frame by frame. Use to reverse, recreate, remake, replicate or copy a video, or 「复刻这个视频」「照着这个视频做一个」.","https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Fheygen-com_hyperframes\u002Freverse-any-video\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":88},"01M7487T50P55CSXMWXZ0G9KRG","typescript-patterns","TypeScript patterns for strict, type-safe, maintainable code in modern TypeScript and JavaScript applications. Covers strict compiler configuration, type design, narrowing, discriminated unions, generics, async and error handling, module boundaries, dependency hygiene, and type-level testing. Use when writing or reviewing TypeScript or JavaScript code.","https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Faffaan-m_ECC\u002Ftypescript-patterns\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":88},"01M7487ERZRGPC5NJ75077Y238","test-collaboration","Inventory and govern a project's test assets. Connect requirements, business rules, risks, bugs, and cross-boundary contracts to stable TEST-IDs and executable evidence in the repository's existing test registry or TESTS.md. Use for test inventory, test gap analysis, unit\u002Fintegration\u002Fcontract\u002FE2E\u002Fsmoke classification, bug-to-test regression protection, consumer\u002Fprovider contract testing, test-necessity review, and pre-delivery evidence review.","https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Faffaan-m_ECC\u002Ftest-collaboration\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":88},"01M748721J3GKR2WS6K0QWFC35","story-lifecycle","Manage a file-based epic → story → sprint development loop without requiring an external project management tool. Creates and tracks epics, breaks them into user stories, assigns them to sprints, and drives implementation story by story. Use when starting a new feature initiative or when the team has no Jira\u002FLinear\u002FTaiga but needs structured delivery tracking.","https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Faffaan-m_ECC\u002Fstory-lifecycle\u002FSKILL.md",[],[]]