Command Palette

Search for a command to run...

Назад к скиллам
скилл № 18530

generated-create-returns-only-id

Use when tfgen fails for a released resource whose Create returns only an id or whose Update returns {}. Names the overrides keys.

БесплатноБез исполняемых скриптов
coralogixот coralogix★ 22 звезды на GitHub

Установить generated-create-returns-only-id в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Generate a resource whose Create returns only the id

Trigger: Create returns {thingId}, Replace returns {}, and Get is /things/{thing_id} with the id in property id.

Fix: in behavior-overrides.yaml:

api:
  requestWrapper: thing        # the body wraps the resource
  updateIDInBody: true
  idProperty: id               # the id property next to the path parameter thing_id
  createResponseOnlyIDProperty: thingId    # Create then reads the resource with Get
  serverSetID: true            # the shared schema cannot require the id
types:
  Thing: {fields: {id: {readOnly: true}}}

An empty Update response needs no line: Update calls Get afterwards.

Id inside an object (teams: {"teamId": {"id": 1}}): idProperty: teamId, createResponseOnlyIDProperty: teamId, and unwrap: [v2.TeamId]. A released String id over an int64 needs terraformType: String on the id line.

Why: the generated Create and Update read the resource with Get when the response has no resource. Record the wire facts on a real tenant first.

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл generated-create-returns-only-id?

Use when tfgen fails for a released resource whose Create returns only an id or whose Update returns {}. Names the overrides keys.

Как установить скилл generated-create-returns-only-id?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл generated-create-returns-only-id запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить generated-create-returns-only-id с