Skill for Perplexity Computer to build, test, and deploy full Heady system components. Use when asked to build services, wire infrastructure, generate code artifacts, run shell commands, create files, or deploy Heady components to Cloud Run or Cloudflare Workers. Triggers on phrases like "build the backend", "create the service", "deploy to Cloud Run", "wire up the infra", or any construction/deployment task in the Heady ecosystem.
Use this skill when:
gen-lang-client-0920560496 / us-east1)8b1fa38f282c691423c6399247d53323)Before any build action:
/home/user/workspace/heady-build-inputs.md for the current spec/home/user/workspace/heady-src/heady-preprod/home/user/workspace/heady-perplexity-full-system-context/heady-perplexity-bundle/ for system directives/home/user/workspace/heady-system-build/Every file must satisfy all 8 Unbreakable Laws:
For every service:
// Required: health endpoint
GET /health → { status: 'ok', service, uptime, activeRequests, version }
GET /healthz → same
// Required: AutoContext middleware on ALL routes
import { autoContextMiddleware } from '../../shared/auto-context-middleware.js';
// Required: structured logging with correlation IDs
import { log, emitSpan } from '../../shared/service-base.js';
// Required: phi-scaled timeouts
const timeout = Math.round(baseMs * PHI);
// Required: no priority fields — CSL domain match ONLY
// ❌ NEVER: priority: 'HIGH'
// ✅ ALWAYS: domain: 'security', cslScore: 0.882
Before finalizing any orchestration artifact, verify:
CRITICAL, HIGH, MEDIUM, LOW in task classificationpriority field on tasks, bees, or swarmsPromise.all or setImmediate| Target | Command Pattern |
|---|---|
| Cloud Run | gcloud run deploy {service} --region us-east1 --project gen-lang-client-0920560496 |
| Cloudflare | wrangler deploy --env production in workers/ directory |
| Docker | docker build -t gcr.io/gen-lang-client-0920560496/{service}:latest . |
| Kubernetes | kubectl apply -f infra/kubernetes/{service}/deployment.yaml |
Input: "Build the heady-brain service"
Output: Full service at /home/user/workspace/heady-system-build/services/core-intelligence/heady-brain/ with index.js, Dockerfile, package.json, and Kubernetes manifest
Input: "Refactor swarm-coordinator to remove ranking"
Output: swarm-coordinator-refactored.js with all priority enums removed, CSL domain routing added
Input: "Wire Drupal webhook sync"
Output: Complete drupal-vector-sync.js with HMAC verification, JSON:API client, and polling loop