AGENT SKILL
network-automation
Network automation practices
使用场景Skill与智能体开发
- License 许可
- MIT
- 最近更新
- 2026-03-01
- Stars
- ★ 3
- Forks
- 2
01 前言 Front Matter
- name
- network-automation
- license
- MIT
- metadata
- { "audience": "network-engineers", "category": "networking" }
- description
- Network automation practices
- compatibility
- opencode
03 SKILL.md 正文
What I do
- Automate network configuration and management
- Write scripts for network device provisioning
- Implement infrastructure as code for networks
- Build network CI/CD pipelines
- Manage network state declaratively
- Automate network testing and validation
- Handle multi-vendor network automation
When to use me
Use me when:
- Managing large network infrastructures
- Reducing manual configuration errors
- Implementing consistent network policies
- Automating routine network tasks
- Building network CI/CD pipelines
- Scaling network operations
Key Concepts
Network Automation Tools
- Ansible: Agentless, YAML playbooks
- Python (Netmiko, NAPALM): Scripting
- Terraform: Infrastructure as code
- Nornir: Python-based automation
- StackStorm: Event-driven automation
Ansible Network Example
---
- name: Configure network devices
hosts: switches
gather_facts: no
tasks:
- name: Configure VLANs
cisco.ios.ios_vlans:
config:
- vlan_id: 10
name: Management
- vlan_id: 20
name: Data
- name: Configure interfaces
cisco.ios.ios_l2_interfaces:
config:
- name: GigabitEthernet0/1
mode: access
access:
vlan: 20
NAPALM for Multi-Vendor
from napalm import get_network_driver
driver = get_network_driver('ios')
device = driver('192.168.1.1', 'admin', 'password')
device.open()
# Get facts
facts = device.get_facts()
print(facts['hostname'], facts['model'])
# Get config
config = device.get_config()
print(config['running'])
# Compare configs
device.load_merge_candidate(config='new_config.txt')
device.compare_config()
device.commit_config()
Network CI/CD Pipeline
- Commit: Code changes to version control
- Lint: Validate syntax and templates
- Test: Dry-run, sanity checks
- Stage: Apply to staging network
- Verify: Automated testing
- Production: Deploy with rollback plan
04 同仓库更多 Skills
xamarin
Xamarin cross-platform development
★ 3
wrangling
Data wrangling fundamentals
★ 3
windows
Windows operating system administration and scripting
★ 3
wide-column
Wide-column data model
★ 3
wide-column-stores
Wide-column database stores
★ 3
websockets
WebSocket implementation and best practices
★ 3