Use when creating the Gold Layer Specification for curated, consumer-ready marts, metric-ready datasets, reporting outputs, feature datasets, API/read-model outputs, or product-aligned datasets derived from trusted Silver data.
Instalação
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Use when creating the Gold Layer Specification for curated, consumer-ready marts, metric-ready datasets, reporting outputs, feature datasets, API/read-model outputs, or product-aligned datasets derived from trusted Silver data.
des-gold-layer-design
Purpose
Use this skill to create and validate the Gold Layer Specification for any data engineering project.
This skill defines curated, consumer-ready Gold datasets, marts, aggregates, metric outputs, feature outputs, reporting outputs, API/application-serving read models, export-ready outputs, or product-aligned datasets derived from trusted Silver data.
The Gold layer should be designed around approved business questions, KPIs, consumers, requirements, and data product outputs.
Gold should answer:
Which product-ready datasets are needed,
for which consumers,
at what grain,
using which approved metrics,
with what freshness, quality, contract, and lineage expectations?
In the Phase-Orchestrated Support Model, this phase is not Done when the Gold Layer Specification is first written.
Phase 11 is Done only when:
Gold Layer Specification exists
+ Phase 10 artifact and handoff are reviewed
+ Gold validation work is identified
+ Gold evidence is collected or waived with reason
+ artifact is revised from evidence
+ Phase 11 Done Gate passes
+ Phase 11 to Phase 12 handoff exists
When To Use
Use this skill when:
Phase 10 Silver Layer Specification exists;
Phase 10 handoff exists or the user explicitly accepts the risk of continuing without it;
trusted Silver entities/events need to be packaged for consumer-facing analytics, reports, semantic models, ML/AI datasets, APIs, exports, or product outputs;
business questions need curated outputs;
KPIs need metric-ready datasets;
star schema, wide table, aggregate table, data mart, feature table, or serving dataset design is being discussed;
the workflow router selects Phase 11.
Do not use this skill to write SQL/Python transformation code, build dashboards, implement APIs, create semantic model internals, define full data contracts, design orchestration implementation, create CI/CD workflow files, or deploy pipelines.
Identify output_file, template_file, checklist_file, and status_file.
Load only steps/step-01-context-and-readiness.md.
Do not load step-02 or step-03 until the current step explicitly instructs you to continue.
Stop at every HALT point and wait for user input.
Do not invent Gold datasets, metric definitions, aggregation rules, grain, consumers, serving paths, or product outputs.
Do not write SQL/Python transformation code, build dashboards, implement APIs, create semantic model internals, define full data contracts, design orchestration implementation, create CI/CD workflow files, or deploy pipelines.
Before marking Phase 11 as Done, create or update the support plan, evidence pack, artifact revision notes, Done Gate, handoff, and workflow status.
Process Overview
The detailed execution procedure lives in steps/.
At a high level, this skill will:
Confirm upstream Silver, KPI, product, question, architecture, and serving context.
Confirm Phase 10 handoff readiness.
Identify P1/P2 business questions and product outputs requiring Gold datasets.
Define Gold dataset boundaries and output types.
Map business questions, KPIs, product outputs, and Silver datasets to Gold outputs.
Define consumer, serving direction, grain, aggregation, metric, history, slicing, and model pattern.
Define quality, freshness, access, contract, lineage, performance, and cost expectations.
Ask HALT questions for unresolved Gold output, metric, grain, aggregation, serving, contract, or lineage decisions.
Draft the Gold Layer Specification.
Create the Phase 11 Support Plan.
Collect or reference Phase 11 evidence.
Revise the Gold Layer Specification using evidence.
Run the Phase 11 Done Gate.
Create the Phase 11 to Phase 12 Handoff.
Update workflow status.
Recommend the next skill.
Do not execute this overview directly. Follow the step files.
Phase-Orchestrated Support Model
Phase 11 uses Gold validation support work.
The purpose is not dashboard/API implementation. The purpose is to make product-ready data outputs that are traceable, metric-consistent, contract-aware, and consumer-aligned.
Required Support Work
Support Work
Purpose
Output
Phase 10 Handoff Review
Check Gold design follows approved Silver constraints and caveats.
Evidence pack section
Business Question to Gold Mapping Check
Ensure Gold exists because it answers approved questions.
Evidence pack section
KPI/Requirement to Gold Mapping Check
Ensure metrics and requirements trace to Phase 03.
Evidence pack section
Data Product Output to Gold Mapping Check
Ensure Gold supports approved data product outputs.
Evidence pack section
Silver-to-Gold Mapping Check
Ensure Gold uses approved Silver datasets.
Evidence pack section
Gold Dataset Boundary Check
Validate Gold outputs are not vague or monolithic.
Evidence pack section
Consumer/Serving Alignment Check
Validate consumers and serving direction.
Evidence pack section
Grain/Aggregation Check
Validate one-record meaning and aggregation logic.
Evidence pack section
Metric Definition Alignment Check
Validate metrics align with approved KPI definitions.
Use des-correct-course if Phase 11 discovers that KPI definitions, product outputs, Silver grain, source-of-truth, or serving direction are too weak to support safe Gold design.
Evidence Required
Phase 11 evidence should prove that Gold is question-aligned, metric-consistent, consumer-ready, traceable, and contract-aware.
Acceptable evidence includes:
Phase 10 Silver Layer Specification;
Phase 10 to Phase 11 handoff;
Phase 10 evidence pack;
Phase 02 Business Question Catalog;
Phase 03 Requirements and KPI Catalog;
Phase 04 Data Product Specification;
approved metric definitions;
Silver grain and DQ decisions;
serving direction from architecture;
consumer access/security notes;
query/aggregation spike, if available;
accepted risk statement when information is missing.
If evidence is missing, mark the item as Draft, Open, Risk, Deferred, Blocked, Unknown, or Waived with reason.
HALT Policy
This skill must stop when a required decision cannot be safely inferred.
Stop especially when:
upstream silver layers are unknown;
downstream contracts are unresolved.
Detailed HALT checkpoints are defined in steps/.
Guardrails
The agent must not:
create Gold tables because they are convenient rather than because they serve a question/use case;
define final metric formulas that conflict with Phase 03;
invent KPI definitions;
aggregate data without approved grain and aggregation rules;
mix unrelated consumers into one unclear Gold output;
design semantic model internals in this phase;
design dashboard layout or API implementation;
define full data contracts in this phase;
hide dependency on unresolved Silver identity/source-of-truth issues;
mark Gold datasets Ready if business question mapping, grain, KPI mapping, quality rules, lineage, consumer, or serving expectation is unresolved.
Quality Checklist
Phase 10 Silver Layer Specification exists or Draft continuation is explicitly accepted.
Phase 10 handoff exists or missing handoff risk is explicitly accepted.
Each P1 business question maps to a Gold output or is explicitly deferred.
Each P1 product output maps to a Gold dataset or is explicitly deferred.
Each P1 Gold dataset has declared consumer and serving direction.
Each P1 Gold dataset has declared Silver inputs.
Each P1 Gold dataset has declared grain.
Aggregation rules are documented where metrics or summaries exist.
Metric and KPI usage aligns with Phase 03 definitions.
Star schema, fact/dimension, aggregate table, wide table, metric-ready dataset, API/read model, ML/AI dataset, or export pattern is chosen.
Filtering and slicing expectations are documented.
History/SCD behavior is explicitly documented.
Freshness/SLA expectations are defined.
Gold boundary quality rules are established.
Access control and security classification are specified.
Contract expectation is documented.
Lineage and traceability fields back to Silver/Bronze/source are defined.
Performance and cost considerations are documented.
Phase 11 support plan exists or is explicitly waived with reason.
Phase 11 evidence pack exists or evidence is explicitly waived with reason.
Phase 11 artifact revision notes exist.
Phase 11 Done Gate result is recorded.
Phase 11 to Phase 12 handoff exists.
The artifact does not design semantic model internals, dashboard visuals, API implementation, full data contracts, orchestration implementation, CI/CD files, or code.
Anti-Patterns to Avoid
Anti-Pattern
Why It Fails
Creating Gold tables without a clear consumer/question
Unused datasets create technical debt, waste compute/storage, and confuse users.
Redefining metrics inconsistently with Phase 03
Creates conflicting numbers in downstream reports, destroying trust in the platform.
Designing a single monolithic table for all consumers
Creates a rigid, slow-performing model that is hard to maintain and security-gate.
Writing SQL/Python transformation logic here
Premature implementation; this phase should define product-ready data design.
Ignoring slowly changing dimension history
Causes report metrics to shift or overwrite history incorrectly when dimensions change.
Treating Gold as semantic model
Semantic model internals are Phase 16; Gold provides stable inputs.
Gold Layer Specification exists
+ Phase 11 support plan exists or is waived with reason
+ Phase 11 evidence pack exists or evidence is waived with reason
+ Phase 11 Done Gate is Pass or Pass with risks
+ Phase 11 to Phase 12 handoff is Ready or Ready with Risks
If the phase is Draft or Blocked, recommend one of:
continue des-gold-layer-design
return to Step 02 Gold output and metric design
resolve HALT question
route back to des-silver-layer-design
route back to des-requirements-and-kpis
route back to des-business-questions
route back to des-data-product-definition
des-wise
des-correct-course