ai-workspace-lab/xworkspace-core-skills/gitops-canonical-resource-delivery
Claude Code and agent skill by ai-workspace-lab/xworkspace-core-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when designing or changing multi-cloud infrastructure and deployment orchestration where GitOps declarations must be the single source of truth for providers, accounts, regions, resource modes, state namespaces, and topology consumed by Terraform, selfhost, or serverless workflows.
Install
npx vskill@latest install ai-workspace-lab/xworkspace-core-skills/gitops-canonical-resource-deliverySKILL.md
The same SKILL.md was published earlier as ai-workspace-lab/xworkspace-core-skills/gitops-canonical-resource-delivery.
GitOps Canonical Resource Delivery
Use GitOps as the only runtime fact source for resource topology. Workflow repositories may contain reusable adapters, renderers, validators, and orchestration code, but must not keep a second authoritative environment matrix.
Required flow
The top-level orchestrator reads the selected GitOps commit and passes the resolved namespace declaration to child workflows. Child workflows consume the same declaration; they must not infer a provider from a global default or silently rebuild a second matrix.
Declaration contract
Each resource row must make these decisions explicit:
namespaceand executionorder;management_mode:terraform,existing,existing-selfhost, or a declared hybrid mode;- provider and concrete account, or an explicit account reference resolved from the workflow profile;
- region, abstract profile, resource identity, lifecycle, and Terraform state namespace;
- application/topology references and whether XConnect, observability, or serverless is required.
Sensitive values never belong in GitOps. Store tokens, passwords, private keys, and connection strings in the environment-scoped Vault contract.
Kubernetes release units
For Flux-managed ingress, group resources by lifecycle, readiness and rollback scope. Keep the active ingress and the retired ingress in separate reconciliation units. Declare each unit's source, path, dependencies and timeout. Prefer unit-level readiness via spec.wait: true for the active unit and dependsOn for prerequisites. Avoid growing the environment's ingress-kustomization.yaml into a list of individual HelmReleases, certificates, routes and metrics resources. A temporary healthChecks list needs an owner and a removal condition. See Kubernetes progressive delivery for release ownership and verification.
Routing and state rules
- Checkout GitOps before validating or dispatching the matrix; pin the ref/SHA in the run summary.
- Fail closed if the matrix is missing, malformed, unordered, or references an unknown provider.
- Resolve provider and account per row. A workflow-level provider/account is only a fallback for
rows that explicitly declare that reference; it must never overwrite a row's concrete account.
- Terraform rows receive an isolated state key derived from environment, project, provider,
concrete account, and namespace. Existing rows produce inventory/CMDB facts and never run Terraform create, import, apply, or destroy.
plan,apply,deploy, anddestroymust preserve the same row identity. Do not use a
changed provider, region, hostname, or profile with an existing state without an explicit migration/import plan and approval.
- If a child workflow needs a resource detail, it reads the checked-out GitOps declaration or a
validated output from the parent; it must not fall back to a hard-coded provider directory.
Orchestrator boundaries
- The top-level orchestrator validates ordering, account/provider compatibility, dependency gates,
approvals, and result aggregation.
- The selfhost orchestrator handles Terraform adapters, existing-host playbooks, host bootstrap,
monitoring, and inventory output.
- The serverless orchestrator handles Cloud Run, Pages/Workers, Supabase, and edge routing.
- Neither child may mutate another namespace's state or reinterpret
allas a private matrix.
Verification checklist
Before a real mutation, verify:
- the GitOps matrix is the exact commit intended for the run;
- every namespace appears once and execution order is contiguous;
- provider, account, region, profile, management mode, and state key match the declaration;
- Terraform rows produce an isolated plan and existing rows produce no Terraform action;
- serverless and selfhost consumers read the same environment topology;
- no workflow, script, or test points to a repository-local runtime matrix;
destroyscope excludes permanent/shared services and external resources unless separately approved.
When a legacy matrix exists, remove it from runtime paths after the GitOps source is available. Keep only a non-authoritative test fixture if a schema test needs one, and label it clearly as a fixture. Never let a fixture be used by a deployment workflow.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/engineering-standards/gitops-canonical-resource-delivery/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ai-workspace-lab/xworkspace-core-skills/gitops-canonical-resource-delivery)