/chittyos-devops:chitty-deployfrom chittyos-devops
Deploy a ChittyOS service to Cloudflare Workers via SSH-bridged wrangler. Handles compatibility flags, secrets provisioning, and post-deploy health verification.
Ships in chittyos-devops. 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.
None: SKILL.md is the whole skill.
Deploy ChittyOS services to Cloudflare Workers with proper environment handling.
/deploy [service-name] [environment]
| Parameter | Required | Default | Description |
|---|---|---|---|
| service-name | Yes | - | Service to deploy (e.g., chittyid, chittyauth) |
| environment | No | production | Target environment (production, staging, preview) |
Find service in repository structure:
/home/ubuntu/projects/github.com/CHITTYFOUNDATION/{service}//home/ubuntu/projects/github.com/CHITTYOS/{service}//home/ubuntu/projects/github.com/CHITTYAPPS/{service}//home/ubuntu/projects/github.com/CHITTYCORP/{service}//home/ubuntu/projects/workspace/{service}/ (active workspaces)# Verify wrangler.toml exists
ls -la wrangler.toml
# Check for uncommitted changes
git status
# Run build if package.json has build script
npm run build 2>/dev/null || pnpm build 2>/dev/null
# Production deploy
npx wrangler deploy --env production
# Or using npm script
npm run deploy:production
# Check service health
curl -s https://{service}.chitty.cc/health | jq .
Secrets are managed by ChittySecrets (secrets.chitty.cc, Layer 0) fronting the Cloudflare
Secrets Store. Runtime values arrive through the worker's secrets_store_secrets binding declared
in wrangler.toml — there is no wrapper command that injects them at deploy time.
Classify before placing: service URLs and Notion DB IDs go in vars; tokens, third-party
credentials, and signing keys go in the Secrets Store. Never [vars] for a secret, never KV as
authority.
Do NOT wrap wrangler in op run --env-file=...: the op lane is non-functional on this host
(op account list is empty; env-files containing op:// references fail
403 Forbidden (Service Account Deleted)), so the wrapper exits 1 and wrangler never runs.
Route credential materialization through ChittyConnect (/chico), and fail closed and loud
if the broker is unreachable:
# Preflight: broker must be reachable before a deploy that needs secret bindings.
curl -fsS https://connect.chitty.cc/health >/dev/null || {
echo "POLICY_BLOCKED_CHITTYCONNECT_UNAVAILABLE: connect.chitty.cc unreachable — not deploying" >&2
exit 78
}
# Secrets bound via ChittyConnect/Secrets Store are delivered at runtime; deploy plainly.
npx wrangler deploy --env production
If a binding is missing or needs rotation, hand off to the ChittyConnect concierge (/chico).
Never render a local env file and never paste a secret value into the shell or chat.
| Service | Domain | Repo Location |
|---|---|---|
| chittyid | id.chitty.cc | CHITTYFOUNDATION/chittyid |
| chittyauth | auth.chitty.cc | CHITTYFOUNDATION/chittyauth |
| chittyconnect | connect.chitty.cc | CHITTYOS/chittyconnect |
| chittyapi | api.chitty.cc | CHITTYOS/chittyapi |
| chittymcp | mcp.chitty.cc | CHITTYOS/chittymcp |
npx wrangler whoami. If a secret binding is missing, confirm the worker
declares the secrets_store_secrets binding and that the named secret exists (secrets_list
via ChittySecrets — names only, never values), then route provisioning through /chico
(ChittyConnect). Do NOT try op — that lane is dead on this host and will fail with
403 Service Account Deleted or a missing env-file error.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/chitty-healthHit /health endpoints across the ChittyOS ecosystem (*.chitty.cc), aggregate results, and report drift from expected status./chittyos-complianceThis skill should be used when building, auditing, deploying, or certifying any ChittyOS service or artifact. It covers compliance auditing ('check compliance', 'audit this service', 'is this compliant?'), scaffolding new services ('scaffold new service', 'generate CHARTER.md/CHITTY.md/CLAUDE.md'), monitoring deployed health endpoints ('check health', 'monitor services', 'service status'), and certification ('certify', 'ChittyCertify', 'what badge level?'). Also trigger proactively when creating new ChittyOS services, modifying wrangler configs, writing CHARTER/CHITTY/CLAUDE docs, checking canonical compliance, registration readiness, or preparing for deployment./chitty-pipelinesInspect and operate ChittyOS data pipelines — Mercury sync, Notion mirrors, Drive ingestion, evidence ingress. Status, retry, drain failed jobs./chitty-registryRead-only discovery against ChittyRegistry (registry.chitty.cc) via GET /api/v1/tools — the service catalog; note the trust and compliance score fields exist but are null on every record today. Discovery before integration. Does not register, update or delete; there is no tier, domain or dependency field to query./wrangler-auditAudit all wrangler.toml files across CHITTYOS projects for consistency, stale compatibility dates, observability drift from the ratified OFF standard, orphaned tail consumers, binding gaps, and route conflicts. Triggers on "wrangler audit", "audit workers", "check wrangler", "worker consistency", or /wrangler-audit.npx claudepluginhub chittyos/chittymarket --plugin chittyos-devops