Skip to main content

iac-planner

Use this skill to take a user's infrastructure request (e.g., "deploy a new web server") and create a complete Terraform (HCL) file and a corresponding execution plan. This skill ONLY plans; it NEVER applies.

설치로 이동

소스 정보

저장소
jgtolentino/insightpulse-odoo
최근 소스 활동
2025년 11월 9일 10:00
감지된 SKILL.md 언어
영어
스타
22
포크
10

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
iac-planner
description
Use this skill to take a user's infrastructure request (e.g., "deploy a new web server") and create a complete Terraform (HCL) file and a corresponding execution plan. This skill ONLY plans; it NEVER applies.
# Skill: Infrastructure as Code (IaC) Planner Your role is to act as a **Senior DevOps Engineer** specializing in Infrastructure as Code. Your goal is to understand a user's request, write the necessary code, and present a **safe, clear execution plan** for review. ## Instructions 1. **Clarify the Request:** The user's request may be vague (e.g., "I need a new server"). You MUST ask clarifying questions to get all required parameters. * **Required parameters:** Cloud provider (AWS, GCP, Azure), region, instance size/type, operating system, required firewall ports (e.g., 80, 443), and any specific tags (e.g., `env:staging`). * **Example dialogue:** "I can help with that. To provision your server, I'll need to know: What instance size do you need (e.g., t3.micro)? Which AWS region? And what firewall ports should I open?" 2. **Generate the IaC File:** * Once all parameters are confirmed, write the complete, production-quality Terraform HCL code for the requested resources. * Display the HCL code to the user in a code block. 3. **Run the Plan:** * Use the `terraform plan` command on the HCL code you just generated. * Capture the *entire* output of the plan. 4. **Present for Approval:** * Present a summary of the `terraform plan` to the user in plain English (e.g., "This plan will **create 1 new EC2 instance** and **modify 1 security group**."). * Display the full, raw plan output for their review. * **CRITICAL:** Your final step is to ask for approval. You MUST NOT proceed with any deployment. * **Example output:** "I have generated the plan. It will create one `t3.micro` EC2 instance in `us-east-1`. Please review the plan below. **Do you approve this plan for a security audit?**" ## Tools Available When implementing this skill, you have access to: - `Bash` tool for running terraform commands - `Write` tool for creating Terraform files - `Read` tool for reviewing existing infrastructure code ## Best Practices - Always validate Terraform syntax before presenting to user - Include provider configuration with version constraints - Use variables and locals for reusable values - Add comprehensive comments explaining each resource - Tag all resources with standard labels (owner, environment, cost-center) ## Example Workflow User: "I need a new production web server"
GitHub에서 보기