affaan-m avatar

Netmiko Ssh Automation

Teaches Claude safe patterns for writing Netmiko scripts that talk to routers and switches over SSH. Default stance is read-only collection with timeouts, proper exception handling, and no hardcoded credentials. Config changes sit behind an explicit flag, and saving startup config is a separate approval step after verification. Includes working examples for batch collection with bounded concurrency, TextFSM parsing with fallback to raw output, and a guarded config pattern that captures before and after state. The review checklist alone will catch most foot-gun mistakes before they hit production devices. If you write network automation in Python, this will keep you out of trouble.

skills.sh installs
5.4K
GitHub stars
300.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add affaan-m/ecc --skill netmiko-ssh-automation --agent claude-code

Installs into .claude/skills of the current project.

Files

Netmiko SSH Automation

Use this skill when writing or reviewing Python automation that connects to network devices with Netmiko. Keep the default path read-only; config changes need a separate change window, peer review, and rollback plan.

When to Use

  • Collecting show command output across routers, switches, or firewalls.
  • Building a small audit script for interface, routing, or config evidence.
  • Adding timeouts and exception handling to network SSH scripts.
  • Parsing command output with TextFSM when a template exists.
  • Reviewing automation before it touches production devices.

Safety Defaults

  • Start with read-only send_command() collection.
  • Keep inventory small and explicit; do not sweep whole address ranges.
  • Use environment variables, a vault, or getpass; never hardcode credentials.
  • Set connection and read timeouts.
  • Limit concurrency so older devices are not overloaded.
  • Require an explicit operator flag before send_config_set().
  • Do not call save_config() until the change has been verified and approved.

Read-Only Connection Pattern

Sponsors

Details

Repository
github.com/affaan-m/ecc
Categories
Debugging, Automation & Workflows, Python
First seen
Jul 14, 2026

More from affaan-m/ecc

All 263

Recommended

More Debugging
1starchild-ai-agent avatarproject-builderstarchild-ai-agent/official-skillsEnd-to-end project engineering: design, incremental build, verify, debug systematically. Use when building software, dashboards, scheduled jobs, or web apps the5.2Kskills.sh installs
2lobehub avatartypescriptlobehub/lobehubLobeHub TypeScript style and type-safety guide. Use when editing TS/TSX/MTS, fixing types, choosing interface vs type, avoiding any/object, import type, async f5.2Kskills.sh installs
3grafana avatartempografana/skillsStand up Grafana Tempo as a cost-efficient distributed-tracing backend that only needs object storage, and write TraceQL queries against it. Covers OTLP + Jaege5.2Kskills.sh installs
4anthropics avatarux-copyanthropics/knowledge-work-pluginsWrite or review UX copy — microcopy, error messages, empty states, CTAs. Trigger with "write copy for", "what should this button say?", "review this error messa5Kskills.sh installs
5forcedotcom avatardx-code-analyzer-custom-rule-createforcedotcom/sf-skillsCreate custom Code Analyzer rules for Regex (pattern matching), PMD (XPath/AST for Apex and metadata XML), and ESLint (LWC/JavaScript/TypeScript). Use when user4.9Kskills.sh installs
6trkbt10 avatarindexion-kgftrkbt10/indexion-skillsDebug and inspect KGF specs — view tokenization results, parse trees, and extracted edges from source files. Use when adding/fixing language support or when ind4.9Kskills.sh installs