Gather DevOps context for infrastructure planning. Detects IaC tools, providers, and recommends skills. Use when /majestic:plan detects infrastructure work.
Gathers infrastructure context by detecting IaC tools and providers, then recommends specialized skills. Triggered by `/majestic:plan` when DevOps keywords are detected in feature descriptions.
/plugin marketplace add majesticlabs-dev/majestic-marketplace/plugin install majestic-devops@majestic-marketplaceThis skill is limited to using the following tools:
Gather infrastructure context for planning. Returns structured findings for the parent plan command.
This skill is invoked by /majestic:plan when DevOps keywords are detected in the feature description.
Check for existing infrastructure code:
# Terraform/OpenTofu
ls *.tf infra/*.tf terraform/*.tf infrastructure/*.tf 2>/dev/null
# Ansible
ls ansible.cfg playbook.yml ansible/*.yml playbooks/*.yml 2>/dev/null
ls -d roles/ ansible/roles/ 2>/dev/null
# Cloud-init
ls cloud-init*.yml user-data*.yml cloud-config*.yml 2>/dev/null
Set flags:
HAS_TERRAFORM: true/falseHAS_ANSIBLE: true/falseHAS_CLOUD_INIT: true/falseIf Terraform files exist, extract providers:
grep -h "provider\s*\"" *.tf infra/*.tf 2>/dev/null | grep -oE '"[a-z]+"' | tr -d '"' | sort -u
Common providers to detect:
aws, google, azurerm - Major cloudshcloud - Hetznerdigitalocean - DigitalOceancloudflare - Cloudflarebackblaze - Backblaze B2Based on detection, recommend skills:
| Detection | Skill | Purpose |
|---|---|---|
Any .tf files | majestic-devops:opentofu-coder | HCL patterns, state management |
Provider: hcloud | majestic-devops:hetzner-coder | Hetzner-specific resources |
Provider: cloudflare | majestic-devops:cloudflare-coder | Cloudflare zones, DNS, Workers |
Provider: backblaze | majestic-devops:backblaze-coder | B2 storage patterns |
| Ansible files | majestic-devops:ansible-coder | Playbook patterns |
| Cloud-init files | majestic-devops:cloud-init-coder | VM provisioning |
If existing IaC files found, run security audit:
Task(subagent_type: "majestic-devops:infra-security-review", prompt: "Audit existing infrastructure code for security issues")
Capture findings for the plan.
Return structured context to the calling plan command:
## Infrastructure Context
### Detected Tools
- **Terraform/OpenTofu:** [yes/no] - [version if found]
- **Ansible:** [yes/no]
- **Cloud-init:** [yes/no]
### Providers
[List detected providers]
### Skills to Apply
| Skill | Purpose |
|-------|---------|
| `majestic-devops:opentofu-coder` | [reason] |
| ... | ... |
### Security Findings
[Summary from infra-security-review or "No existing IaC to audit"]
### Recommendations
- [Any specific recommendations based on detection]
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.