Skip to content

Bundle a skill that syncs the devcontainer to a Claude Code cloud environment #286

Open

Description

@gatezh

What

A downstream project adds devcontainer-to-cloud, a skill that turns a project's devcontainer into a Claude Code cloud environment (claude.ai/code, claude --cloud). It generates a setup script, a network allowlist, an env var template, a SessionStart hook and a parity check (verify.sh), and it detects drift in .devcontainer/ and the base image.

Why it belongs here

  • The skill has nothing project-specific. Every project built on claude-code needs the same thing, and a copy in each repo will drift.
  • It depends on things this repo owns: the image's OCI labels, init-plugins.sh, patch-playwright-mcp, /etc/claude-code/managed-settings.json and the firewall script. Changes to those should reach the skill through the normal sync.

Proposal

  1. Move the skill to claude-code/.claude/skills/devcontainer-to-cloud/ and add a framework-track row to the devcontainer-upstream-sync manifest. Projects keep only the generated files (.claude/cloud/*, .claude/hooks/cloud-session-start.sh).
  2. Optional simplification: publish a cloud-setup.sh for the claude-code image, built from the same pins as its Dockerfile. The skill could then use it instead of reverse-engineering the image (OCI label lookup, stage following, digest recording), and keep that path only for third-party images.

This came out of that project's review of the skill (finding #10).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions