live-dev-init
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineselive-dev-init
live-dev-init
This skill initializes the development environment and performs preflight checks before any other deployment or configuration tasks are run.
bashresources/*.js本技能用于初始化开发环境,并在执行任何其他部署或配置任务前执行预检查。
bashresources/*.js1. Preflight (run silently, before planning)
1. 预检查(静默运行,在规划阶段前执行)
| Check | Probe | On fail |
|---|---|---|
| git, gh | | run |
| node | | |
| vercel, firebase | | |
| gitleaks | | install per table below, re-probe, never skip the scan gate |
| OS | Install | Fallback |
|---|---|---|
| macOS | | curl latest release |
| Windows | | download |
Then repair project state:
| File / state | Required value | Note |
|---|---|---|
| | Sole source of truth. |
| | Repair before the first commit ever exists — the vault policy assumes these are ignored. |
| branch | |
Secret Vault Policy (hard rule, no override). Credentials live only in Vercel Env Vars / GitHub Secrets / gitignored . Never hardcode in code, never commit real values, never print a real secret to chat, logs, or commit messages.
.env.local.env| 检查项 | 检测方式 | 失败处理 |
|---|---|---|
| git、gh | | 运行 |
| node | | 运行 |
| vercel、firebase | | 执行 |
| gitleaks | | 按下方表格安装,重新检测,严禁跳过扫描环节 |
| 操作系统 | 安装方式 | 备选方案 |
|---|---|---|
| macOS | | 下载最新版本的 |
| Windows | | 下载 |
随后修复项目状态:
| 文件/状态 | 必填值 | 说明 |
|---|---|---|
| | 这是唯一的可信来源。 |
| 需包含 | 必须在第一次提交前修复 — 密钥库策略默认这些文件已被忽略。 |
| 分支 | |
密钥库策略(硬性规则,不可覆盖):凭据只能存储在Vercel环境变量/GitHub Secrets/已被git忽略的文件中。严禁在代码中硬编码,严禁提交真实的值,严禁在聊天、日志或提交信息中打印真实密钥。
.env.local.env