用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/GoogleCloudPlatform/magic-modules --skill add-fields-workflow命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | add-fields-workflow |
| description | Workflow for adding new fields to existing MMv1 or handwritten resources. |
add-fields-workflowNote to AI Agents: You MUST read the YAML frontmatter above first. Only read the rest of this file if the
descriptionmatches your required task.
magic-modules root directory.google_compute_instance) and the API field(s) to add.Before you begin implementation, read the following documents:
docs/content/develop/add-fields.md — Complete procedural guide for adding fields to MMv1 and handwritten resources.docs/content/reference/field.md — Comprehensive MMv1 field configuration reference.docs/content/test/test.md - Complete procedural guide for adding tests.docs/content/reference/sample.md - Comprehensive MMv1 sample configuration reference..agents/knowledge/index.md for general information.Resource Definition Locations:
mmv1/products/<product>/<resource>.yamlmmv1/third_party/terraform/services/<product>/resource_<product>_<resource>.goImplement logic according to the API behavior and terraform best practices. Your code should match the style of the resource and product.
Add the requested field(s) to the requested resource(s).
Field tests should exist according to the following rules:
Because you're adding fields to an existing resource, try to modify existing tests if possible rather than adding new tests.
Test Locations:
mmv1/templates/terraform/samples/services/<PRODUCT>/mmv1/third_party/terraform/services/<PRODUCT>/resource_<product>_<resource>_test.gorepo-sync to ensure the downstream repositories are in sync with magic-modules.generate-provider to generate the provider code into the downstream repositories.qa-test-runner to run all acceptance tests for the modified resource.test-fixer to fix any issues found by the qa-test-runner skill. Return to step 4 after any changes.Repeat steps 4-6 as needed until the primary task is complete.