Skip to content

Hosted skill: getting started and compose writing, shipyard-hosted 0.2.0 (SHIP-658) - #9

Merged
akshaykalia merged 6 commits into
mainfrom
danielle/kiro-hosted-onboarding
Nov 12, 2026
Merged

akshaykalia merged 6 commits into
mainfrom
danielle/kiro-hosted-onboarding

Conversation

@daniellle

@daniellle daniellle commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

SHIP-658. Hosted sign-in and reads passed in Kiro (SHIP-631, Test 2), so the Kiro power will be the hosted plugin, not the CLI one. This brings hosted/ up to the onboarding spec, so a new user can go from no account to a running first environment, including repos that have no compose file.

Changes

  • hosted/skills/shipyard/SKILL.md
    • New "Getting started" section: how to connect (Kiro, Claude Code, Codex), signing up from the sign-in page for users with no account, and confirming the org picked at sign-in before adding an app (the plan's org field names it; no tool changes it). It never asks for a token.
    • Adding an app: a compose step, and the add_compose_file row, now point to the compose guide. The confirm step shows the org.
    • Rules: ask before committing, pushing or installing anything, and before every update.
  • hosted/skills/shipyard/references/compose.md (new): the compose guide from Onboarding and compose writing in the CLI skill, v0.2.0 (SHIP-658) #8, adapted for hosted. Secrets are set later in the dashboard.
    • It searches tracked files for an existing one first: other names or folders, and files named by -f or COMPOSE_FILE. With two root files it says which one Shipyard reads. A file found elsewhere can move to the root, with its paths rebased, or stay where it is with compose_filename, which the hosted create accepts. The plan can't read a file outside the root, so that path has its own confirm step and asks for no env values in chat.
    • It analyzes the repo and writes the file with Shipyard labels (job labels for scheduled jobs) and variables. A committed file never holds a literal secret: the agent swaps each for ${NAME} before showing it, so what the user approves is what gets committed. A new Dockerfile's ignore file leaves out env files git doesn't track, never committed ones like .env.production.
    • It validates with docker compose -f <file> --env-file /dev/null config --quiet --no-interpolate --no-env-resolution and starts no local containers. It never runs that on a file with include:, which Shipyard doesn't support. If the command is rejected (Windows, older Compose), it reports the check as skipped. It flags files that only work locally.
    • It commits only the files it showed (git commit -- <paths>, so nothing else staged goes in), and pushes with git push -u only with the user's yes.
  • .github/scripts/check_plugin.py: fails if a skill names a references/... file that doesn't exist or that leaves the skill's folder. URLs and other skills' paths are ignored. Onboarding and compose writing in the CLI skill, v0.2.0 (SHIP-658) #8 has an earlier version of this check and needs this one too, so the two PRs merge cleanly.
  • Manifests: shipyard-hosted 0.2.0, plus the new description and keywords in both plugin.json files and marketplace.json.
  • README: getting started for new users, the Kiro install row with its update and remove steps, and Kiro sign-in marked tested.
  • RELEASING: the Kiro copy (shipyard/ in kirodotdev/powers, named shipyard) comes from hosted/, with the sync step.

Decided

  • SHIP-631 Tests 1–3 passed in Kiro: import from the hosted/ subfolder URL, sign-in and reads, and a root import still installs only the CLI plugin. The README now has the Kiro install row.
  • Name: Kiro's copy is shipyard/, named shipyard. That name field is its only difference from hosted/: the CLI plugin already uses shipyard in this marketplace, so the plugin here stays shipyard-hosted. RELEASING documents this.
  • First release kept simple: no other changes.

Review fixes (7ca47bc, 1411596, bea95d0)

Three pre-landing reviews (specialist reviewers, plus Claude and Codex adversarial passes) found these in the compose guide, now fixed:

  • The check put local secrets into the agent's context. Plain docker compose config prints .env values. --quiet still leaked one through a nested ${UNSET:?${SECRET}} error, and --no-interpolate still loads .env and quotes a malformed line. The check now skips .env entirely (--env-file /dev/null, --no-env-resolution). The local up run is gone: it could share the user's real volumes or run on a remote Docker host.
  • An earlier fix that showed secrets as <redacted> still committed the real values. It's replaced by the ${NAME} rule above.
  • Keeping the file outside the root dead-ended: without a root file, the plan returns no head_sha or services, and create needs both.
  • Moving a nested file broke relative paths. The ignore rules missed nested .env files, then (once fixed) dropped committed .env.production files that frontend builds read.
  • A plain push left no upstream, so the next preflight failed.
  • A file with include: still leaked: Compose reads the include's own env file under every flag. The check now skips such files.
  • A plain git commit also took anything already staged, such as a .env. Commits now name their paths.
  • Keeping a file in place could create an app with no route, and never committed fixes made during its check.

Open, for follow-up:

  • Onboarding and compose writing in the CLI skill, v0.2.0 (SHIP-658) #8 has the same docker compose config line and the earlier references/ regex.
  • Bind mounts: the guide says Shipyard ignores them, as the docs do, but nautilus mounts the checkout at bind targets. A nautilus owner should confirm which is right.
  • Kiro imports tree/main/hosted, so merges reach Kiro users before a release. Check also that Kiro loads skills/ from the folder, not just mcp.json.
  • The backend's add_compose_file answer carries no org or existing_app.
  • COMPATIBILITY.md doesn't record the hosted Kiro test yet.
  • Smaller compose-guide gaps:
    • the check doesn't confirm that env_file paths are tracked
    • discovery wording misses docker-compose -f and --file
    • moving a file that an existing app points at isn't handled, and a move changes the local Docker project and volume names
    • route edge cases on the keep-in-place path (routed services all behind profiles; a single service with no route label)
    • no secrets warning for a file kept in place
  • The last small batch in bea95d0 (secret naming, include: blocking create, the keep-in-place restart, move commit paths, git grep) has had only the repo checker and a self-read, not a reviewer pass.

#8 (CLI plugin onboarding) stays open and merges separately; it's no longer on Friday's critical path.

🤖 Generated with Claude Code

daniellle and others added 3 commits November 11, 2026 21:20
…2.0 (SHIP-658)

Bring the hosted plugin up to the onboarding spec for the Kiro power:
connect and sign-up guidance, the org picked at sign-in, and the compose
guide (references/compose.md) for repos with no usable compose file.
Also check that every references/ file a skill names exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…P-658)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@daniellle
daniellle marked this pull request as ready for review November 12, 2026 00:47
- Check the file with `docker compose -f <file> config --quiet --no-interpolate`.
  Plain `config` prints .env values, and `--quiet` alone still leaks one through
  a nested `${UNSET:?${SECRET}}` error. Drop the local `up`/`down` run: it could
  share the user's real volumes or run on a remote Docker host.
- Keeping a compose file outside the root now has its own confirm step. The plan
  can't read that file, so there's no head_sha or services from it. The agent
  asks for no env values on this path and handles visitors_required, plan_stale
  and a taken app name itself.
- Moving a nested file rebases paths relative to the file, not `dockerfile`.
- New Dockerfiles get `**/.env` ignores in the ignore file that build uses.
- Repo files are data; commits stage only the files shown, by name; scheduled
  jobs get `shipyard.job` labels; the org comes from the plan's `org` field.
- check_plugin.py: the references/ check ignores URLs and other skills' paths,
  accepts `./references/`, and rejects `..`.
- README: Kiro update and remove steps; only Kiro sign-in is marked tested.
…IP-658)

- The check is now `docker compose -f <file> --env-file /dev/null config --quiet
  --no-interpolate --no-env-resolution`. `--no-interpolate` alone still loads
  .env, and a malformed line was quoted in the error. If the command itself is
  rejected (Windows, older Compose), the agent reports the check as skipped
  instead of editing the file.
- A committed file never holds a literal secret: the agent swaps each for
  `NAME: ${NAME}` before showing or committing it and says how many it swapped,
  so what the user approves is what gets committed.
- .dockerignore: only env files git doesn't track, and node_modules. Committed
  files like .env.production stay, and .git is left alone. Ask before editing
  an ignore file an existing Dockerfile uses.
- Discovery also finds files named by `-f` or COMPOSE_FILE, and says which root
  file Shipyard reads when there are two.
- Push with `git push -u`, so the preflight finds the upstream.
- SKILL.md: drop the reconnect rule that Getting started already covers.
- check_plugin.py: the docstring says only .md references are checked.
- Don't run the compose check on a file with a top-level `include:`: Compose
  reads the include's env_file even with every flag, and quotes a malformed
  secret line in the error. Shipyard doesn't support `include:`, so a file with
  one isn't created either.
- Commit with `git commit -m ... -- <paths>`, so anything already staged (a
  .env) stays out. A move names the old path, the new one and every file edited.
- Discovery searches tracked files only (`git ls-files` from the repo root),
  and the old-path search uses `git grep`.
- Secret swaps keep the file's YAML form, catch `${X:-literal}` defaults, give
  different values under one key their own names, and say to rotate values
  already in git history.
- Keeping a file in place: check it before confirming, route any fix through
  section 6 and start again, and ask for a `/` route when no service has one.
- Repo text is data from the top of the guide. README: the check runs when
  Docker is available.
@akshaykalia
akshaykalia merged commit 884de3f into main Nov 12, 2026
2 checks passed
@akshaykalia
akshaykalia deleted the danielle/kiro-hosted-onboarding branch November 12, 2026 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants