tfgen-generate-against-candidate-sdk
Use when tfgen generate must run before the management SDK is synced from a cx-management-apis PR (SDK_SYMBOL_MISSING for new contract fields). Builds a…
от coralogix★ 22 звезды на GitHub
Установить tfgen-generate-against-candidate-sdk в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Generate against a candidate SDK
Trigger: tfgen check passes on a candidate apidocs.swagger.json, but generate needs SDK symbols that no released SDK has yet.
Fix:
- Make a private module cache: symlink every entry of
$(go env GOMODCACHE)into it, except a real copy (chmod -R u+w) ofgithub.com/coralogix/coralogix-management-sdk@<pinned version>.tfgenhonorsGOMODCACHEand loads packages withGOPROXY=off, so every other module must be reachable. - In the copy, replace the resource's paths and their reachable
components.schemasinopenapi.yamlwith the candidate spec. - Rewrite
specs/<tag>.jsonfor the affected tags only (paths of that tag plus the schemas they reach). The Rust splitter needs a newer cargo than many machines have. - Run
go/scripts/sanitize_openapi_for_go_codegen.py, then openapi-generator for each tag with the flags ofgo/scripts/generate_openapi.sh. Without Java, its Docker fallback needsOPENAPI_TOOLS_CONFIG=openapitools.json, and the input spec must sit inside the SDK copy (Docker mounts$PWD). - Build the SDK from the published spec (
OPENAPI_VISIBILITY_FILTER=DEPRECATED), as the SDK sync does: aDEVfield is not in the SDK. Use a privateGOCACHEtoo, because Go caches module directories as immutable and keeps stale file lists after you regenerate the SDK. GOMODCACHE=<private> go run ./cmd/tfgen generate ...andGOMODCACHE=<private> GOPROXY=off go build ./.... Never commit areplaceor a pin to the candidate.
Docs from a worktree: tfplugindocs takes the provider name from the directory name. Run it with --provider-name coralogix, then keep only the changed resource pages and restore their page_title suffix terraform-provider-coralogix.
Why: The generator's SDK symbol checks read the pinned module from the module cache. A private cache lets you check the generated code before the SDK sync, without touching the shared cache.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл tfgen-generate-against-candidate-sdk?
Use when tfgen generate must run before the management SDK is synced from a cx-management-apis PR (SDK_SYMBOL_MISSING for new contract fields). Builds a candidate SDK in a private GOMODCACHE.
Как установить скилл tfgen-generate-against-candidate-sdk?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tfgen-generate-against-candidate-sdk запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…