一键导入
deploy
Deploy invoice-accounting-assistant to HQ server. Runs tests first (TDD), then builds and deploys. Use when ready to push changes to staging/production.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Deploy invoice-accounting-assistant to HQ server. Runs tests first (TDD), then builds and deploys. Use when ready to push changes to staging/production.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Cross-project audit and sync. Backs up, bootstraps, promotes, syncs, and verifies all downstream projects.
Structured pre-planning research. Explores codebase, asks clarifying questions, and produces a brainstorm output file for /plan-feature input.
Capture knowledge from development sessions. Debug patterns, architecture decisions, framework gotchas, and integration learnings compound over time.
Load project context and show current status. Use at the start of a session or when context is needed.
Run parallel code reviews using specialized agents (security, performance, simplicity, nextjs-react). Produces a structured report.
Initialize a new project from Agent Kit boilerplate. Use when creating a new downstream project.
| name | deploy |
| description | Deploy invoice-accounting-assistant to HQ server. Runs tests first (TDD), then builds and deploys. Use when ready to push changes to staging/production. |
| disable-model-invocation | true |
| allowed-tools | Bash, Read, Write |
| argument-hint | ["environment"] |
Deployment workflow with TDD integration. Tests MUST pass before deployment.
/deploy # Deploy to production (default)
/deploy staging # Deploy to staging (same as production for now)
Before deployment, verify:
KRITISCH: Deployment wird abgebrochen wenn Tests fehlschlagen.
cd frontend
# Unit Tests
pnpm run test
# Type Check
pnpm run type-check
# Lint
pnpm run lint
git status --porcelain
If there are changes:
⚠️ Uncommitted changes detected!
Options:
1. Commit changes first: /commit
2. Stash changes: git stash
3. Abort deployment
git branch --show-current
Warn if not on main:
⚠️ Not on main branch (currently on: feature/xyz)
Continue anyway? [y/N]
cd frontend
pnpm run build
If build fails:
❌ Build failed! Fix errors before deploying.
Common issues:
- TypeScript errors
- Missing dependencies
- Environment variables not set
rsync -avz --delete \
-e "ssh -p 2222" \
--exclude='.git' \
--exclude='node_modules' \
--exclude='.next' \
--exclude='.env.local' \
./ nightwing@91.98.70.29:/opt/lucidlabs/projects/invoice/
ssh -p 2222 nightwing@91.98.70.29 << 'EOF'
cd /opt/lucidlabs/projects/invoice
# Build and deploy
docker compose -f docker-compose.hq.yml -p invoice up -d --build
# Wait for health check
sleep 15
# Show status
docker compose -f docker-compose.hq.yml -p invoice ps
EOF
curl -f https://invoice.lucidlabs.de/api/health || echo "Health check failed!"
┌─────────────────────────────────────────────────────────────────┐
│ ✅ DEPLOYMENT SUCCESSFUL │
├─────────────────────────────────────────────────────────────────┤
│ │
│ URL: https://invoice.lucidlabs.de │
│ Time: [timestamp] │
│ Branch: main │
│ Commit: [short-hash] │
│ │
│ Services: │
│ ├─ invoice-frontend ✅ Running │
│ ├─ invoice-mastra ✅ Running │
│ ├─ lucidlabs-convex ✅ Running │
│ └─ lucidlabs-portkey ✅ Running │
│ │
└─────────────────────────────────────────────────────────────────┘
If deployment fails:
ssh -p 2222 nightwing@91.98.70.29 << 'EOF'
cd /opt/lucidlabs/projects/invoice
# Rollback to previous version
git checkout HEAD~1
docker compose -f docker-compose.hq.yml -p invoice up -d --build
EOF
This deployment skill is integrated with the TDD workflow:
┌──────────────────────────────────────────────────────────────────┐
│ DEVELOPMENT WORKFLOW │
├──────────────────────────────────────────────────────────────────┤
│ │
│ 1. Write Test (RED) │
│ └─► pnpm run test │
│ │
│ 2. Implement Feature │
│ └─► pnpm run test (GREEN) │
│ │
│ 3. Refactor │
│ └─► pnpm run test (still GREEN) │
│ │
│ 4. Commit │
│ └─► /commit │
│ │
│ 5. Deploy │
│ └─► /deploy │
│ ├─► Tests (must pass) │
│ ├─► Build (must succeed) │
│ └─► Deploy to HQ │
│ │
└──────────────────────────────────────────────────────────────────┘
# Full deployment (with tests)
/deploy
# Skip tests (NOT RECOMMENDED)
# Only use in emergencies
pnpm run deploy:force
# Check deployment status
ssh -p 2222 nightwing@91.98.70.29 "docker ps | grep invoice"
# View logs
ssh -p 2222 nightwing@91.98.70.29 "docker logs invoice-frontend --tail 50"
Version: 1.0 Created: 29. Januar 2026