Skip to content

Onboarding and compose writing in the CLI skill, v0.2.0 (SHIP-658) - #8

Draft
daniellle wants to merge 1 commit into
mainfrom
danielle/kiro-cli-onboarding
Draft

daniellle wants to merge 1 commit into
mainfrom
danielle/kiro-cli-onboarding

Conversation

@daniellle

Copy link
Copy Markdown
Collaborator

Summary

This PR gets the CLI plugin ready to ship as a Kiro power. The skill now takes a new user from no CLI and no account to a running first environment, including repos that have no compose file. Linear: SHIP-658.

Draft: the Kiro test runs (T1 to T11 on SHIP-658) come next. COMPATIBILITY.md's validation rows will be updated with their results before review.

What changes

File Change
skills/shipyard/SKILL.md New Getting started checks: CLI installed and current, signup link for users with no account, shipyard login, restart the MCP server (it reads the token only at startup), confirm the org. Adding an app, Changing an app and Checking a change, adapted from the hosted skill to the CLI's tools (put_env_vars, get_logs). The existing rules are kept.
skills/shipyard/references/compose.md (new) Read only when there is no usable compose file. Looks for an existing file first, then analyzes the repo and writes compose.yml with Shipyard's labels, checks it locally, handles files that only work locally, and commits and pushes only after a yes.
.github/scripts/check_plugin.py Fails when a SKILL.md names a references/ file that doesn't exist.
plugin.json, .claude-plugin/plugin.json, marketplace.json Version 0.2.0, an onboarding description, and activation keywords (preview environment, docker compose, deploy branch).
README.md, COMPATIBILITY.md A "Getting started from your agent" section. The minimum CLI for adding apps is now 1.11.0.
RELEASING.md The Kiro copy in kirodotdev/powers is a release step: a PR to that repo after each root plugin release.

Decisions worth a look

  • No token in chat or .env. The skill uses shipyard login and tells the agent never to ask for a pasted token. When the saved token is stale, the user deletes the api_token line themselves, because the agent shouldn't open a file that holds a token.
  • Server restart after login. The CLI loads its config once (commands/root.go loadConfig()), so a running mcp serve never sees a new token. The skill asks the user to restart the server. A CLI fix that re-reads the config is listed as a follow-up on SHIP-658.
  • Compose detection gap. plan_application only finds docker-compose.y(a)ml and compose.y(a)ml at the repo root (DEFAULT_COMPOSE_FILES in shipyard core), and takes no compose_filename. So the reference searches the repo before writing anything. It never overwrites a user's file, and it doesn't suggest include:, which Shipyard's compose parser doesn't support.
  • Facts the compose guidance relies on come from the published Docker Compose docs (appcd-dev/external-docs docs-shipyard/environments/configuration/docker-compose.md, add-secrets.md):
    • routes go to the first declared port
    • only named volumes are kept
    • build args must be listed under build.args
    • profiled services are off by default

Checks run locally

  • python .github/scripts/check_plugin.py: passes. It fails as expected when the reference path is broken.
  • check-jsonschema against the vendored Agent Plugins schemas: passes.
  • claude plugin validate --strict: not run locally (no working Node on this machine), so CI runs it.

🤖 Generated with Claude Code

The skill now takes a new user from no CLI and no account to a running
first environment:

- Getting started: check the CLI (install or upgrade with the user's yes),
  send users with no account to signup, run `shipyard login`, restart the
  MCP server (it reads the token only at startup), confirm the org.
- Adding an app: the preflight, plan, confirm, create and verify flow from
  the hosted skill, adapted to the CLI's tools (put_env_vars, get_logs).
- references/compose.md: find an existing compose file first (plan only
  sees the four default names at the repo root), analyze the repo, write
  compose.yml with Shipyard's labels, check it locally, and handle files
  that are invalid or only work locally. Never overwrites a user's file.

check_plugin.py now fails when a SKILL.md names a references/ file that
doesn't exist. Minimum CLI for adding apps is 1.11.0. RELEASING.md covers
syncing the Kiro copy in kirodotdev/powers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant