360 Secure SkillHub
360 安全技能中心

PropAI Sync

这是PropAI Sync monorepo的专属运维工具,核心功能涵盖代码质量检查、构建验证、托管环境冒烟测试(含健康、认证、用户接口校验)、Railway部署E2E验证及ClawHub技能发布。适用于该仓库开发后的质量把关、部署前校验、上线发布等场景,需在仓库根目录执行命令,执行结果及关键信息会记录到HANDOFF.md,保障交付质量。

vishalgojha
vishalgojha
热度 68.12
最近更新 2026-05-18 12:15:36
分类:开发依赖:代码执行 / 读写文件应用场景:DevOps / API 集成 / 代码审查 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add propai-sync
Metadata
name
propai-sync
description
Maintain and operate the PropAI Sync monorepo, including hosted-platform BYOK API validation and Railway deployment checks. Use when working in propai-sync to run scoped tests, build gates, hosted smoke checks (`/api/health`, `/api/auth/bootstrap`, `/api/users/me`), and ClawHub-ready skill publishing steps.

PropAI Sync

Run all commands from the repo root.

Execute Core Workflow

  1. Inspect scope with git status --short and git diff --name-only.
  2. Run focused quality checks for touched files.
  3. Run pnpm build before any deploy or handoff.
  4. 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.
  3. 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.
  2. Publish:
    • clawhub publish skills/propai-sync --slug propai-sync --name "PropAI Sync" --version <semver> --tags latest --changelog "<summary>"