Skip to main content

new-resource-workflow

Workflow specifically for creating a new resource, supporting both autogen and manual generation.

소스 정보

저장소
GoogleCloudPlatform/magic-modules
최근 소스 활동
2026년 7월 20일 19:23
감지된 SKILL.md 언어
영어
스타
975
포크
2,573

설치 방법

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

소스 파일 검토

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

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
new-resource-workflow
description
Workflow specifically for creating a new resource, supporting both autogen and manual generation.
# `new-resource-workflow` This document guides the agent through the task of creating a new Terraform resource in Magic Modules. ## Generation Options There are two ways to generate the initial YAML definition for the resource: 1. **Autogen Subagent (Default):** Use this method if an OpenAPI specification is available for the resource. 2. **Manual Generation:** Create the YAML definition directly if no spec is available or if it requires custom crafting. --- ## Execution Steps ### 1. Prompt for OpenAPI Specification (Default Path) * Ask the user to provide the OpenAPI specification file (or its path) for the new resource. * **Note:** If no OpenAPI specification is available, state that you will fall back to the **Manual Path (Step 2B)** to draft the YAML directly, and ask for the user's confirmation to proceed. * If the user provides the spec, proceed to **Step 2A (Autogen Path)**. ### 2A. Autogen Path * **Action:** Invoke the `autogen` subagent to handle the generation and initial testing. * **Prompt:** "Use the OpenAPI spec to generate the new resource. Run tests and report back." * Wait for the subagent to return its report. * **Handoff:** - If the subagent reports that tests passed successfully, present the results to the user. - If the subagent reports test failures, enter the **Default Workflow** ([default/SKILL.md](../default/SKILL.md)) at **Step 5 (Fix)** to plan remediation. ### 2B. Manual Path * Consult `.agents/knowledge/index.md` for the topics the resource touches and open the relevant sources. * Follow the standard process to draft the YAML definition in `mmv1/products/...` based on API documentation and repository patterns. * **Handoff:** Once the YAML is drafted, enter the **Default Workflow** ([default/SKILL.md](../default/SKILL.md)) at **Step 3 (Generate)** to compile the provider and continue with testing.
GitHub에서 보기