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>
59 lines
1.3 KiB
Markdown
59 lines
1.3 KiB
Markdown
---
|
|
name: cmdb sync
|
|
description: Synchronize current machine state with existing NetBox record
|
|
---
|
|
|
|
# /cmdb sync
|
|
|
|
Update an existing NetBox device record with the current machine state.
|
|
|
|
## Skills to Load
|
|
|
|
- `skills/visual-header.md`
|
|
- `skills/sync-workflow.md`
|
|
- `skills/system-discovery.md`
|
|
- `skills/mcp-tools-reference.md`
|
|
|
|
## Usage
|
|
|
|
```
|
|
/cmdb sync [--full] [--dry-run]
|
|
```
|
|
|
|
**Options:**
|
|
- `--full`: Force refresh all fields, even unchanged ones
|
|
- `--dry-run`: Show what would change without applying updates
|
|
|
|
## Instructions
|
|
|
|
Execute `skills/visual-header.md` with context "Machine Sync".
|
|
|
|
Execute `skills/sync-workflow.md` which covers:
|
|
1. Device lookup via MCP
|
|
2. Current state discovery via Bash
|
|
3. Comparison of NetBox vs local state
|
|
4. Diff report generation
|
|
5. User confirmation (unless dry-run)
|
|
6. Apply updates via MCP
|
|
7. Journal entry creation
|
|
|
|
## Modes
|
|
|
|
| Mode | Behavior |
|
|
|------|----------|
|
|
| Default | Show diff, ask confirmation, apply changes |
|
|
| `--dry-run` | Show diff only, no changes applied |
|
|
| `--full` | Skip confirmation, update all fields |
|
|
|
|
## Error Handling
|
|
|
|
| Error | Action |
|
|
|-------|--------|
|
|
| Device not found | Suggest `/cmdb register` |
|
|
| Permission denied | Note which failed, continue others |
|
|
| Cluster not found | Offer to create or skip container sync |
|
|
|
|
## User Request
|
|
|
|
$ARGUMENTS
|