About devops-plan
devops-plan is a context-gathering skill used by the blueprint planning command when a feature description contains DevOps terms. It detects infrastructure files and providers, recommends related skills, and gathers security review findings without implementing changes.
Key features
- 01Detect Terraform, Ansible, and cloud-init files
- 02Identify Terraform providers
- 03Recommend skills from detected infrastructure
- 04Request security review of existing IaC
- 05Return structured infrastructure context
Use cases
- 01Gather infrastructure details before planning a feature
- 02Find existing IaC tools and cloud providers
- 03Identify relevant DevOps skills for a plan
- 04Include security findings from existing infrastructure code
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ majesticlabs-dev/ majestic-marketplace --skill devops-planAfter installing, type/devops-planin Claude Code to confirm it loaded.
Details
From the project READMEDevOps Plan Context
Gather infrastructure context for planning. Returns structured findings for the parent plan command.
When Called
This skill is invoked by Skill("blueprint") when DevOps keywords are detected in the feature description.
Workflow
1. Detect IaC Files
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/false
2. Detect Providers
If 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 B2
3. Map Skills
Based 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 |
4. Security Review
If existing IaC files found, run security audit:
Apply infra-security-review skill to audit existing infrastructure code for security issues.
Capture findings for the plan.
5. Return Context
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]
Notes
- This skill gathers context only - no implementation
- Skills are recommendations, not requirements
- Security review only runs if IaC files exist