Logo de Claw Image Build

Claw Image Build

Comunidade
kevinslin
claw-image-build

Build, publish, and verify OpenClaw Docker/GHCR images. Use when the user asks to build an OpenClaw image, publish or republish GHCR tags, bundle official plugins such as @openclaw/codex, @openclaw/slack, or @openclaw/diagnostics-otel, make or verify multi-arch linux/amd64 and linux/arm64 images, check GHCR visibility, secret-scan an image, enforce Codex image contract gates, or prove a published OpenClaw Docker image works.

Visão geral

Publicado porkevinslin
Repositórioagstack
Nome da habilidadeclaw-image-build
Estrelas
26
Forks
1
Arquivos incluídos
2
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 2

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por kevinslin no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Claw Image Build no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/kevinslin/agstack/tree/main/active/claw-image-build
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinslin/agstack.git /tmp/agstack
mkdir -p .claude/skills
cp -r /tmp/agstack/active/claw-image-build .claude/skills/claw-image-build
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Claw Image Build em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Claw Image Build automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Claw Image Build não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Claw Image Build

Use this skill for OpenClaw container image work from source checkout to published GHCR proof.

Contract

  1. Work from the current OpenClaw checkout unless the user explicitly asks for another worktree.
  2. Respect the repo AGENTS.md: do not switch worktrees for git mutations, do not print secrets, do not print Docker auth configuration, and verify live sources when requested.
  3. Pull or checkout exactly what the user asked for before building. If the worktree is dirty, stop before git pull and report the dirty state. If the user asks for a new worktree, create it from the latest upstream default branch and preserve unrelated local changes.
  4. Read docs/install/docker.md and the relevant package manifests before choosing build args or plugin install strategy. Unless the user explicitly narrows or changes the plugin set, require @openclaw/codex, @openclaw/slack, and @openclaw/diagnostics-otel.
  5. Resolve "latest" from the repository's actual upstream default branch. If a prompt says origin/master but the default branch is different, fetch the default branch, record the exact commit, and state the branch name used.
  6. Build multi-arch images when requested; include linux/amd64 explicitly for x86_64/amd64 proof unless the user says otherwise.
  7. Prefer ghcr.io/kevinslin/openclaw for Kevin's registry unless the user explicitly provides a different owner. Verify namespace and visibility with gh api.
  8. Do not claim success from a local image only. Pull the published tag back from GHCR and verify the requested platforms.
  9. Always run an image secret-hygiene pass before closeout when publishing or when the user asks about secrets.
  10. Never deploy, restart, or modify any live gateway, devbox, or service while building or verifying images. Do not modify the OpenAI monorepo or its Applied spec as part of OpenClaw image work.
  11. For Codex images or source/base-image updates affecting Codex, treat the built image itself as the artifact under test. Run the Codex image contract gate in ./references/workflow.md before publishing or reporting success.

Build Strategy

Use the repo Dockerfile and repository-native build pipeline when it can build the requested image directly. Do not rebase onto an unrelated runtime image and do not modify built plugin contents after the final packaging stage.

For self-contained source-bundled images, build OpenClaw and bundled plugins from the same source revision whenever the repository supports it. Do not combine a newer OpenClaw source build with older published plugin packages. The default required plugin set is @openclaw/codex, @openclaw/slack, and @openclaw/diagnostics-otel; use the repository's standard bundled-extension packaging location and build args, for example OPENCLAW_EXTENSIONS=diagnostics-otel,codex,slack, unless the user explicitly mentions a different plugin set. Preserve manifests, runtime dependencies, source maps, assets, and generated output required for plugin discovery and runtime loading.

diagnostics-otel is a first-class packaged plugin for these images. It must not require openclaw plugins install, npm installation, network access, or filesystem mutation at container startup. Do not add runtime installation scripts for it; remove or replace manual diagnostics installation logic with packaged plugin coverage.

If native Docker source compile fails under cross-arch emulation but the local source build passes, use the proven runtime-image assembly pattern from ./references/workflow.md: build dist locally, then assemble per-platform runtime images with BuildKit --build-context built_dist=./dist. Use that fallback only when the repo Dockerfile cannot complete the requested source build.

For @openclaw/codex image work, build from an immutable OpenClaw commit with an OCI revision label, verify packaging and base-image digests inside the artifact, and run the #96872 thread/start behavioral contract from a validation stage or external harness. Do not rely on source Vitest running inside the production image.

For source-bundled plugins, "available" means:

  • source package manifest exists under extensions/<id>/package.json;
  • packaged manifest and entrypoint exist under /app/dist/extensions/<id>/;
  • runtime dependencies needed by the plugin are present in the final image;
  • node openclaw.mjs plugins inspect <id> --runtime --json succeeds from the pulled published image;
  • startup logs contain no plugin install, npm install, module-resolution, or missing-dependency errors.

For external npm plugin images, "available" means:

  • installed in the OpenClaw plugin store under /home/node/.openclaw/npm/projects/.../node_modules/<package>/package.json;
  • enabled in config;
  • node openclaw.mjs plugins inspect <id> --json reports status: "loaded" from the pulled published image.

Do not rely on require.resolve("@openclaw/<plugin>/package.json") from /app unless the image intentionally bundles that package as a root/runtime dependency. External official plugins may be plugin-store installs rather than root app dependencies.

Workflow

  1. Establish source and tags:
    • git status -sb
    • if clean and user asked for latest: fetch/pull the upstream default branch with the repo-required workflow
    • record git rev-parse HEAD, git rev-parse --short=10 HEAD, and node -p "require('./package.json').version"
    • determine and reuse the repository's existing snapshot/release tag convention; do not invent one.
  2. Inspect docs and plugin packages:
    • docs/install/docker.md
    • Dockerfile
    • extensions/<plugin>/package.json
    • for source-bundled plugin images, verify OpenClaw and each default/requested plugin package report the same intended version from the same checkout.
    • use npm view @openclaw/<plugin> version dist.tarball --json only for images that intentionally install external npm plugin packages.
  3. Build and push arch-specific tags first:
    • <baseTag>-amd64
    • <baseTag>-arm64
  4. Create multi-arch tags with docker buildx imagetools create.
  5. Verify GHCR:
    • manifest digest and platforms;
    • package visibility;
    • expected tag set.
  6. Pull-run verify each requested platform:
    • OpenClaw version;
    • default/requested plugin discovery and runtime inspect output;
    • package manifests in plugin store when external npm plugins are requested;
    • packaged manifests, entrypoints, and runtime dependencies when source-bundled plugins are requested;
    • /healthz returns HTTP 200;
    • offline --network none startup succeeds after the image has been pulled.
  7. Secret-scan:
    • container environment names only, never values;
    • docker history --no-trunc keyword count.
  8. Run focused package, Docker, typecheck, and integration tests that cover changed packaging behavior, including packaged inventory, manifests, entrypoints, runtime dependencies, version metadata, no manual diagnostics install, and offline plugin discovery. Do not hide unrelated failures; distinguish pre-existing failures from regressions.
  9. Report source branch and exact commit, chosen version, plugin versions, changed files, bundling mechanism, Docker build command, registry destination, pushed tag and immutable digest, local/remote digest comparison, exact verification and test commands with results, offline-start proof, caveats, secret-scan result, and worktree status.

References

Read ./references/workflow.md before building or republishing an image. It contains command templates for the runtime assembly fallback, manifest creation, plugin verification, and secret checks.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Claw Image Build faz?

Build, publish, and verify OpenClaw Docker/GHCR images. Use when the user asks to build an OpenClaw image, publish or republish GHCR tags, bundle official plugins such as @openclaw/codex, @openclaw/slack, or @openclaw/diagnostics-otel, make or verify multi-arch linux/amd64 and linux/arm64 images, check GHCR visibility, secret-scan an image, enforce Codex image contract gates, or prove a published OpenClaw Docker image works.

Por que usar Claw Image Build no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Claw Image Build é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Claw Image Build no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/kevinslin/agstack/tree/main/active/claw-image-build. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Claw Image Build?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Claw Image Build?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Claw Image Build com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Claw Image Build é gratuita?

A habilidade é publicada no GitHub por kevinslin. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇