# Pattern Deploy

> Deploy patterns and test with CLI

- Skill: `majiayu000/pattern-deploy-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/pattern-deploy-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/pattern-deploy-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/majiayu000/pattern-deploy-2

---


# Deploy Phase

Use `Skill("ct")` for comprehensive ct CLI documentation.

## Read First
- `docs/development/LOCAL_DEV_SERVERS.md` - Local dev setup
- `docs/common/workflows/development.md` - Workflow commands

## Find Identity Key
```bash
ls -la *.key 2>/dev/null || ls -la ~/.claude/*.key 2>/dev/null || find . -name "*.key" -maxdepth 2 2>/dev/null
```

## Commands

**Check syntax without deploying:**
```bash
deno task ct check pattern.tsx --no-run
```

**Deploy new pattern:**
```bash
deno task ct piece new packages/patterns/[name]/main.tsx --identity PATH_TO_KEY
```

**Inspect piece state:**
```bash
deno task ct piece inspect
```

**Update deployed pattern:**
```bash
deno task ct piece setsrc packages/patterns/[name]/main.tsx
```

**Test handler via CLI:**
```bash
deno task ct piece call handlerName --piece PIECE_ID
```

## Get Help
```bash
deno task ct --help
deno task ct piece --help
```

## Done When
- Piece deploys without errors
- State inspects correctly
- Handlers respond to CLI calls

