- Extract 9 skill files from command knowledge: - mcp-tools-reference.md: Complete NetBox MCP tools reference - system-discovery.md: Bash commands for system info gathering - device-registration.md: Device registration workflow - sync-workflow.md: Machine sync process - audit-workflow.md: Data quality audit checks - ip-management.md: IP/prefix management and conflict detection - topology-generation.md: Mermaid diagram generation - change-audit.md: NetBox change audit workflow - visual-header.md: Standard visual header pattern - Slim all 11 commands to under 60 lines: - cmdb-sync.md: 348 -> 57 lines - cmdb-register.md: 334 -> 51 lines - ip-conflicts.md: 238 -> 58 lines - cmdb-audit.md: 207 -> 58 lines - cmdb-topology.md: 194 -> 54 lines - initial-setup.md: 176 -> 74 lines - change-audit.md: 175 -> 57 lines - cmdb-site.md: 68 -> 50 lines - cmdb-ip.md: 65 -> 52 lines - cmdb-device.md: 64 -> 55 lines - cmdb-search.md: 46 lines (unchanged) - Update agent to reference skills for best practices - Preserve existing netbox-patterns skill Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
55 lines
1.3 KiB
Markdown
55 lines
1.3 KiB
Markdown
---
|
|
description: Generate infrastructure topology diagrams from NetBox data
|
|
---
|
|
|
|
# CMDB Topology Visualization
|
|
|
|
Generate Mermaid diagrams showing infrastructure topology from NetBox.
|
|
|
|
## Skills to Load
|
|
|
|
- `skills/visual-header.md`
|
|
- `skills/topology-generation.md`
|
|
- `skills/mcp-tools-reference.md`
|
|
|
|
## Usage
|
|
|
|
```
|
|
/cmdb-topology <view> [scope]
|
|
```
|
|
|
|
**Views:**
|
|
- `rack <rack-name>` - Rack elevation showing devices and positions
|
|
- `network [site]` - Network topology showing device connections
|
|
- `site <site-name>` - Site overview with racks and device counts
|
|
- `full` - Full infrastructure overview
|
|
|
|
## Instructions
|
|
|
|
Execute `skills/visual-header.md` with context "Topology".
|
|
|
|
Execute `skills/topology-generation.md` which covers:
|
|
- Data collection via MCP for each view type
|
|
- Mermaid diagram generation with proper shapes
|
|
- Legend and data notes
|
|
|
|
## Output Format
|
|
|
|
Always provide:
|
|
1. **Summary** - Brief description
|
|
2. **Mermaid Code Block** - The diagram
|
|
3. **Legend** - Shape explanations
|
|
4. **Data Notes** - Quality issues found
|
|
|
|
## Examples
|
|
|
|
- `/cmdb-topology rack server-rack-01` - Rack elevation
|
|
- `/cmdb-topology network` - All network connections
|
|
- `/cmdb-topology network Home` - Network for Home site
|
|
- `/cmdb-topology site Headquarters` - Site overview
|
|
- `/cmdb-topology full` - Full infrastructure
|
|
|
|
## User Request
|
|
|
|
$ARGUMENTS
|