一键导入
deploy
Deploy the secret-vault Cloudflare Worker and run pending D1 migrations. Use when deploying changes, after modifying the Worker source or adding migrations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Deploy the secret-vault Cloudflare Worker and run pending D1 migrations. Use when deploying changes, after modifying the Worker source or adding migrations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a new CLI command to the hfs tool. Use when adding user-facing commands, subcommands, or flags to the CLI.
Create a new D1 database migration for the secret-vault. Use when adding tables, columns, or indexes to the vault's schema.
Review code changes for security issues specific to this encrypted secret vault. Use when modifying auth, encryption, scope enforcement, or any data-access paths.
Diagnose and fix issues with the secret-vault Worker, hfs CLI, D1 database, Cloudflare Access auth, and encryption. Use when something is broken, returning errors, or behaving unexpectedly.
Add a new API endpoint to the secret-vault Cloudflare Worker. Use when creating new routes, resources, or API functionality in the vault.
Write tests for the secret-vault Worker and hfs CLI. Use when adding test coverage, fixing bugs with regression tests, or validating behavior.
| name | deploy |
| description | Deploy the secret-vault Cloudflare Worker and run pending D1 migrations. Use when deploying changes, after modifying the Worker source or adding migrations. |
cd secret-vault && npx tsc --noEmit/health endpointnpm run build in the CLI. Manual: npm run sync-versionhfs deploy (RECOMMENDED)# Full guided deployment - handles wrangler config, migrations, secrets, and deploy
hfs deploy
hfs deploy generates the real wrangler.jsonc, applies migrations, creates the FLAGS KV namespace, sets secrets, and deploys the Worker in one flow.
# 1. Type-check
cd secret-vault && npx tsc --noEmit
# 2. Apply migrations (if any new files in migrations/)
npm run db:migrate
# 3. Deploy
npm run deploy
# 4. Verify
curl https://vault.example.com/health
# 5. Tail logs for errors
wrangler tail
Verify D1 migrations via d1_database_query MCP tool:
SELECT name FROM sqlite_master WHERE type='table'
# 1. Build (version auto-syncs from root VERSION file)
cd hfs
npm run build
npm publish
wrangler secret put ENCRYPTION_KEY (64-char hex, generate with npm run generate-keys)database_id filled in wrangler.jsonc (from npm run db:create)"vars" in wrangler.jsonc: ALLOWED_EMAILS, TEAM_DOMAIN, POLICY_AUD