Phase 1b: Rename all ~94 commands across 12 plugins to /<noun> <action> sub-command pattern. Git-flow consolidated from 8→5 commands (commit variants absorbed into --push/--merge/--sync flags). Dispatch files, name: frontmatter, and cross-reference updates for all plugins. Phase 2: Design documents for 8 new plugins in docs/designs/. Phase 3: Scaffold 8 new plugins — saas-api-platform, saas-db-migrate, saas-react-platform, saas-test-pilot, data-seed, ops-release-manager, ops-deploy-pipeline, debug-mcp. Each with plugin.json, commands, agents, skills, README, and claude-md-integration. Marketplace grows from 12→20. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
53 lines
1.5 KiB
Markdown
53 lines
1.5 KiB
Markdown
---
|
|
name: cmdb register
|
|
description: Register the current machine into NetBox with all running applications
|
|
---
|
|
|
|
# /cmdb register
|
|
|
|
Register the current machine into NetBox, including hardware info, network interfaces, and running applications.
|
|
|
|
## Skills to Load
|
|
|
|
- `skills/visual-header.md`
|
|
- `skills/device-registration.md`
|
|
- `skills/system-discovery.md`
|
|
- `skills/netbox-patterns/SKILL.md`
|
|
- `skills/mcp-tools-reference.md`
|
|
|
|
## Usage
|
|
|
|
```
|
|
/cmdb register [--site <site-name>] [--tenant <tenant-name>] [--role <role-name>]
|
|
```
|
|
|
|
**Options:**
|
|
- `--site <name>`: Site to assign (will prompt if not provided)
|
|
- `--tenant <name>`: Tenant for resource isolation (optional)
|
|
- `--role <name>`: Device role (default: auto-detect based on services)
|
|
|
|
## Instructions
|
|
|
|
Execute `skills/visual-header.md` with context "Machine Registration".
|
|
|
|
Execute `skills/device-registration.md` which covers:
|
|
1. System discovery via Bash (use `skills/system-discovery.md`)
|
|
2. Pre-registration checks (device exists?, site?, platform?, role?)
|
|
3. Device creation via MCP
|
|
4. Interface and IP creation
|
|
5. Container registration (if Docker found)
|
|
6. Journal entry documentation
|
|
|
|
## Error Handling
|
|
|
|
| Error | Action |
|
|
|-------|--------|
|
|
| Device already exists | Suggest `/cmdb sync` or ask to proceed |
|
|
| Site not found | List available sites, offer to create new |
|
|
| Docker not available | Skip container registration, note in summary |
|
|
| Permission denied | Note which operations failed, suggest fixes |
|
|
|
|
## User Request
|
|
|
|
$ARGUMENTS
|