writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
hex-deploy-integrationDeploy Hex integrations to Vercel, Fly.io, and Cloud Run platforms. Use when deploying Hex-powered applications to production, configuring platform-specific secrets, or setting up deployment pipelines. Trigger with phrases like "deploy hex", "hex Vercel", "hex production deploy", "hex Cloud Run", "hex Fly.io".
Independent GitHub snapshot · Automated classification · Original documentation governs
name: hex-deploy-integration description: 'Deploy Hex integrations to Vercel, Fly.io, and Cloud Run platforms.
Use when deploying Hex-powered applications to production,
configuring platform-specific secrets, or setting up deployment pipelines.
Trigger with phrases like "deploy hex", "hex Vercel",
"hex production deploy", "hex Cloud Run", "hex Fly.io".
' allowed-tools: Read, Write, Edit, Bash(vercel:), Bash(fly:), Bash(gcloud:*) version: 1.6.0 license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
Deploy Hex orchestration services that trigger project runs from web endpoints or cron jobs.
// api/refresh.ts
export default async function handler(req, res) {
const response = await fetch(`https://app.hex.tech/api/v1/project/${process.env.HEX_PROJECT_ID}/run`, {
method: 'POST',
headers: { 'Authorization': `Bearer ${process.env.HEX_API_TOKEN}`, 'Content-Type': 'application/json' },
body: JSON.stringify({ inputParams: req.body || {}, updateCacheResult: true }),
});
res.json(await response.json());
}
vercel env add HEX_API_TOKEN production
vercel env add HEX_PROJECT_ID production
gcloud run deploy hex-orchestrator \
--image gcr.io/$PROJECT_ID/hex-orchestrator \
--set-secrets=HEX_API_TOKEN=hex-api-token:latest \
--timeout=600
Produce a deployment receipt with artifact digest, environment, canary project, health/latency/quota/aggregate assertion outcomes, owner approval, rollout state, and rollback reference. Exclude SQL, output, and secrets.
Halt for unknown project/destination, unauthorized scope, failed canary assertion, unbounded retry, or leaked output in telemetry. Cancel affected execution and restore the previous revision rather than bypassing a gate.
artifact=sha256:opaque; env=staging; canary=proj-sandbox-12; health=pass; assertions=pass; quota=pass; rollback=release-r31 supports controlled promotion.