/glaim:support-assets-apifrom glaim
Спроектировать, подключить или проверить GLAIM Support Assets API по реальному контракту: asset templates, generated assets, manual assets, versions, approve/publish/archive/revoke flow и asset bindings. Используй когда нужно создать support asset template, сгенерировать draft asset по шаблону, завести или опубликовать image/document/message asset, привязать ассет к app/profile/channel/source, проверить headers Authorization/X-Control-Secret/X-Actor-Ref, storage_uri, scan_status, publish constraints или понять, почему ассет не появляется в GET /assets.
Ships in glaim. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill for the new GLAIM support-assets contour under /api/v2/assets. Work only from the real contract: local code in glaim, verified request schemas, domain validation, and tests.
Read references/contract.md when you need exact payload fields, enum values, code paths, or verified failure modes.
Choose one lane first:
GET /assets/templates, GET /assets, POST /assets/templates/{template_id}/generated-assets.Do not mix the lanes casually. Agent-safe calls use only Authorization: Bearer <agent_token>. Control-plane calls additionally require X-Control-Secret and may include X-Actor-Ref for audit.
Never expose X-Control-Secret to frontend code, public miniapps, browser bundles, or user-facing chat flows.
https://agentapi.gigma.ru/api/v2.glaim repo is available, verify the contract against code before editing docs or clients.draft -> approved -> archived.draft -> approved -> published, with archive or revoke later.template_id and asset_id from create responses.GET /assets/templates shows only approved, non-archived templates for the current app.GET /assets shows only published, non-archived, non-revoked assets that are visible through bindings.GET /assets/templates.template_id.POST /assets/templates/{template_id}/generated-assets.draft status and origin=agent_generated.asset_id.approve and publish.POST /assets, then add a version with POST /assets/{asset_id}/versions.POST /assets/{asset_id}/bindings.scope_type can be only app, profile, channel, or source.app, send no scope_ref.profile, channel, and source, scope_ref is required.profile bindings must belong to the same app; do not fake ownership checks in docs or client code.GET /assets.asset_kind and template_kind: image, document, message.visibility: private, app_internal, public_sanitized.scan_status: pending, passed, failed, not_required.storage_uri is safest as asset://....https://... storage works only if it matches ASSET_STORAGE_ALLOWED_PREFIXES.approved;scan_status is passed or not_required.401 missing_control_plane_secret: control-plane endpoint was called without the required secret.storage_uri_host_not_allowed: external storage prefix is not allowlisted, or only asset:// is allowed.storage_uri_secret_query: URL query includes token/signature-like keys.template_not_approved: agent tried to generate from a draft or archived template.asset_status_not_approved: publish was attempted too early.asset_version_missing: publish was attempted before any version existed.asset_scan_not_passed: publish was attempted with pending or failed latest scan.scope_ref_required: a non-app binding missed scope_ref.GET /assets: check publish state, archive/revoke state, and binding existence./assets/manage/... as an already-available route. Mention it only as a possible follow-up PR.storage_uri, checksum_sha256, mime_type, and byte_size respect the contract.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub artypoul/gigma_skills --plugin glaim3 skills in this plugin
/connect-chat-frontendПодключить miniapp, сайт, витрину или web chat напрямую к GLAIM source-chat API безопасно и по реальному контракту. Используй когда нужно сделать чат с AI-агентом через GLAIM source-chat, настроить API client, session/message/events/stop/reset flow, session list/detail/messages history, polling или websocket событий, retry/regenerate/edit, archive, переключение тредов/source_conversation_ref, markdown-ответы, source token, source scope, client_message_id, client_action_id, context_snapshot или проверить, что frontend использует source token только для chat API./runtime-agentImplement, debug, or review a GLAIM runtime service, local agent courier, runner, or adapter that uses /api/v2/jobs/claim, /progress, /complete, /session-thread, or managed materials. Use when the task mentions agent lifecycle endpoints, Bearer agent token, claim_token, context_payload, material_manifest, material_access, glaim_managed_chat, job material fetch, runner-hub, Codex/Claude runtime execution, or an agent answering without reading profile/skills.Other plugins' skills for the same job