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★ 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), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…