PropAI Sync
Run all commands from the repo root.
Execute Core Workflow
- 1. Inspect scope with
git status --short and git diff --name-only. - Run focused quality checks for touched files.
- Run
pnpm build before any deploy or handoff. - Run hosted smoke with:
-
node skills/propai-sync/scripts/hosted-smoke.mjs
- 5. Record executed commands and outcomes in
HANDOFF.md.
Enforce Hosted Smoke Contract
- - Verify
health_ok is true. - Verify bootstrap succeeds and returns an API key.
- Verify
/api/users/me succeeds with that API key. - Treat any non-2xx response as a failing gate.
Run Railway E2E Validation
- 1. Authenticate Railway CLI:
-
npx @railway/cli login
-
npx @railway/cli status
- 2. Deploy from the current branch.
- Validate live endpoints in this order:
-
GET /api/health
-
POST /api/auth/bootstrap
-
GET /api/users/me with
X-API-Key from bootstrap
- 4. Log live URL, UTC timestamp, and endpoint results in
HANDOFF.md.
Publish To ClawHub
- 1. Bump version and changelog summary for the skill update.
- Publish:
- INLINECODE15
技能名称: propai-sync
详细描述:
PropAI Sync
所有命令均从仓库根目录执行。
执行核心工作流
- 1. 使用 git status --short 和 git diff --name-only 检查范围。
- 对受影响的文件执行针对性质量检查。
- 在任何部署或交接前运行 pnpm build。
- 使用以下命令运行托管烟雾测试:
- node skills/propai-sync/scripts/hosted-smoke.mjs
- 5. 在 HANDOFF.md 中记录已执行的命令及结果。
强制执行托管烟雾测试契约
- - 验证 health_ok 是否为 true。
- 验证引导程序成功执行并返回 API 密钥。
- 验证使用该 API 密钥调用 /api/users/me 是否成功。
- 将任何非 2xx 响应视为失败关卡。
运行 Railway 端到端验证
- 1. 认证 Railway CLI:
- npx @railway/cli login
- npx @railway/cli status
- 2. 从当前分支进行部署。
- 按以下顺序验证实时端点:
- GET /api/health
- POST /api/auth/bootstrap
- 使用来自 bootstrap 的 X-API-Key 调用 GET /api/users/me
- 4. 在 HANDOFF.md 中记录实时 URL、UTC 时间戳及端点结果。
发布到 ClawHub
- 1. 为技能更新升级版本并更新变更日志摘要。
- 发布:
- clawhub publish skills/propai-sync --slug propai-sync --name PropAI Sync --version
--tags latest --changelog