md-ddl 0.9.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. md_ddl-0.9.2/.claude/commands/agent-architect.md +10 -0
  2. md_ddl-0.9.2/.claude/commands/agent-artifact.md +10 -0
  3. md_ddl-0.9.2/.claude/commands/agent-governance.md +11 -0
  4. md_ddl-0.9.2/.claude/commands/agent-guide.md +10 -0
  5. md_ddl-0.9.2/.claude/commands/agent-ontology.md +10 -0
  6. md_ddl-0.9.2/.github/agents/agent-architect.agent.md +11 -0
  7. md_ddl-0.9.2/.github/agents/agent-artifact.agent.md +11 -0
  8. md_ddl-0.9.2/.github/agents/agent-governance.agent.md +11 -0
  9. md_ddl-0.9.2/.github/agents/agent-guide.agent.md +11 -0
  10. md_ddl-0.9.2/.github/agents/agent-ontology.agent.md +11 -0
  11. md_ddl-0.9.2/.github/agents/review-md-ddl.agent.md +46 -0
  12. md_ddl-0.9.2/.gitignore +215 -0
  13. md_ddl-0.9.2/CLAUDE.md +111 -0
  14. md_ddl-0.9.2/LICENSE +395 -0
  15. md_ddl-0.9.2/PKG-INFO +256 -0
  16. md_ddl-0.9.2/README.md +225 -0
  17. md_ddl-0.9.2/agents/CONVENTIONS.md +88 -0
  18. md_ddl-0.9.2/agents/agent-architect/AGENT.md +337 -0
  19. md_ddl-0.9.2/agents/agent-architect/skills/architecture/SKILL.md +489 -0
  20. md_ddl-0.9.2/agents/agent-architect/skills/architecture/references/anti-patterns.md +35 -0
  21. md_ddl-0.9.2/agents/agent-architect/skills/architecture/references/data-autonomy.md +36 -0
  22. md_ddl-0.9.2/agents/agent-architect/skills/architecture/references/data-products.md +39 -0
  23. md_ddl-0.9.2/agents/agent-architect/skills/architecture/references/external-references.md +39 -0
  24. md_ddl-0.9.2/agents/agent-architect/skills/architecture/references/model-driven.md +31 -0
  25. md_ddl-0.9.2/agents/agent-architect/skills/architecture/references/philosophy.md +42 -0
  26. md_ddl-0.9.2/agents/agent-architect/skills/odps-alignment/SKILL.md +327 -0
  27. md_ddl-0.9.2/agents/agent-architect/skills/odps-alignment/references/odps-v4.0.md +346 -0
  28. md_ddl-0.9.2/agents/agent-architect/skills/product-design/SKILL.md +470 -0
  29. md_ddl-0.9.2/agents/agent-architect/skills/product-design/platform-posture.md +41 -0
  30. md_ddl-0.9.2/agents/agent-artifact/AGENT.md +223 -0
  31. md_ddl-0.9.2/agents/agent-artifact/references/generation-semantics.md +125 -0
  32. md_ddl-0.9.2/agents/agent-artifact/skills/dialects/databricks.md +224 -0
  33. md_ddl-0.9.2/agents/agent-artifact/skills/dialects/postgresql.md +208 -0
  34. md_ddl-0.9.2/agents/agent-artifact/skills/dialects/snowflake.md +178 -0
  35. md_ddl-0.9.2/agents/agent-artifact/skills/dimensional/SKILL.md +279 -0
  36. md_ddl-0.9.2/agents/agent-artifact/skills/faker/SKILL.md +609 -0
  37. md_ddl-0.9.2/agents/agent-artifact/skills/faker/runtime/consistency_scenario.py +432 -0
  38. md_ddl-0.9.2/agents/agent-artifact/skills/faker/runtime/enterprise_profile.py +387 -0
  39. md_ddl-0.9.2/agents/agent-artifact/skills/faker/runtime/integrity_check.py +477 -0
  40. md_ddl-0.9.2/agents/agent-artifact/skills/faker/runtime/test_template.py +264 -0
  41. md_ddl-0.9.2/agents/agent-artifact/skills/knowledge-graph/SKILL.md +288 -0
  42. md_ddl-0.9.2/agents/agent-artifact/skills/normalized/SKILL.md +326 -0
  43. md_ddl-0.9.2/agents/agent-artifact/skills/reconciliation/SKILL.md +188 -0
  44. md_ddl-0.9.2/agents/agent-artifact/skills/wide-column/SKILL.md +264 -0
  45. md_ddl-0.9.2/agents/agent-governance/AGENT.md +324 -0
  46. md_ddl-0.9.2/agents/agent-governance/skills/compliance-audit/SKILL.md +503 -0
  47. md_ddl-0.9.2/agents/agent-governance/skills/regulatory-compliance/SKILL.md +214 -0
  48. md_ddl-0.9.2/agents/agent-governance/skills/regulatory-compliance/regulators/apra.md +206 -0
  49. md_ddl-0.9.2/agents/agent-governance/skills/regulatory-compliance/regulators/basel.md +112 -0
  50. md_ddl-0.9.2/agents/agent-governance/skills/regulatory-compliance/regulators/ccpa.md +39 -0
  51. md_ddl-0.9.2/agents/agent-governance/skills/regulatory-compliance/regulators/eba.md +36 -0
  52. md_ddl-0.9.2/agents/agent-governance/skills/regulatory-compliance/regulators/fatf.md +44 -0
  53. md_ddl-0.9.2/agents/agent-governance/skills/regulatory-compliance/regulators/fdic.md +42 -0
  54. md_ddl-0.9.2/agents/agent-governance/skills/regulatory-compliance/regulators/federal-reserve.md +35 -0
  55. md_ddl-0.9.2/agents/agent-governance/skills/regulatory-compliance/regulators/gdpr.md +47 -0
  56. md_ddl-0.9.2/agents/agent-governance/skills/regulatory-compliance/regulators/hipaa.md +113 -0
  57. md_ddl-0.9.2/agents/agent-governance/skills/regulatory-compliance/regulators/occ.md +36 -0
  58. md_ddl-0.9.2/agents/agent-governance/skills/regulatory-compliance/regulators/rbnz.md +129 -0
  59. md_ddl-0.9.2/agents/agent-governance/skills/regulatory-compliance/regulators/sox.md +40 -0
  60. md_ddl-0.9.2/agents/agent-governance/skills/standards-conformance/SKILL.md +164 -0
  61. md_ddl-0.9.2/agents/agent-guide/AGENT.md +270 -0
  62. md_ddl-0.9.2/agents/agent-guide/skills/adoption-planning/SKILL.md +121 -0
  63. md_ddl-0.9.2/agents/agent-guide/skills/concept-explorer/SKILL.md +663 -0
  64. md_ddl-0.9.2/agents/agent-guide/skills/concept-explorer/references/dataproducts-spec.md +7 -0
  65. md_ddl-0.9.2/agents/agent-guide/skills/concept-explorer/references/domains-spec.md +7 -0
  66. md_ddl-0.9.2/agents/agent-guide/skills/concept-explorer/references/entities-spec.md +7 -0
  67. md_ddl-0.9.2/agents/agent-guide/skills/concept-explorer/references/enumerations-spec.md +7 -0
  68. md_ddl-0.9.2/agents/agent-guide/skills/concept-explorer/references/events-spec.md +7 -0
  69. md_ddl-0.9.2/agents/agent-guide/skills/concept-explorer/references/foundation-spec.md +7 -0
  70. md_ddl-0.9.2/agents/agent-guide/skills/concept-explorer/references/relationships-spec.md +7 -0
  71. md_ddl-0.9.2/agents/agent-guide/skills/concept-explorer/references/sources-spec.md +7 -0
  72. md_ddl-0.9.2/agents/agent-guide/skills/concept-explorer/references/transformations-spec.md +7 -0
  73. md_ddl-0.9.2/agents/agent-guide/skills/orientation/SKILL.md +152 -0
  74. md_ddl-0.9.2/agents/agent-guide/skills/orientation/references/foundation-spec.md +9 -0
  75. md_ddl-0.9.2/agents/agent-guide/skills/platform-setup/SKILL.md +269 -0
  76. md_ddl-0.9.2/agents/agent-guide/skills/worked-examples/SKILL.md +259 -0
  77. md_ddl-0.9.2/agents/agent-ontology/AGENT.md +257 -0
  78. md_ddl-0.9.2/agents/agent-ontology/skills/baseline-capture/SKILL.md +125 -0
  79. md_ddl-0.9.2/agents/agent-ontology/skills/domain-review/SKILL.md +304 -0
  80. md_ddl-0.9.2/agents/agent-ontology/skills/domain-scoping/SKILL.md +402 -0
  81. md_ddl-0.9.2/agents/agent-ontology/skills/domain-scoping/domain-boundaries.md +73 -0
  82. md_ddl-0.9.2/agents/agent-ontology/skills/domain-scoping/references/domains-spec.md +9 -0
  83. md_ddl-0.9.2/agents/agent-ontology/skills/entity-modelling/SKILL.md +246 -0
  84. md_ddl-0.9.2/agents/agent-ontology/skills/entity-modelling/conceptual-to-physical-realisation.md +148 -0
  85. md_ddl-0.9.2/agents/agent-ontology/skills/entity-modelling/guidance.md +516 -0
  86. md_ddl-0.9.2/agents/agent-ontology/skills/entity-modelling/inheritance-patterns.md +154 -0
  87. md_ddl-0.9.2/agents/agent-ontology/skills/entity-modelling/references/entities-spec.md +9 -0
  88. md_ddl-0.9.2/agents/agent-ontology/skills/entity-modelling/references/enumerations-spec.md +9 -0
  89. md_ddl-0.9.2/agents/agent-ontology/skills/lifecycle/SKILL.md +192 -0
  90. md_ddl-0.9.2/agents/agent-ontology/skills/preflight/SKILL.md +127 -0
  91. md_ddl-0.9.2/agents/agent-ontology/skills/relationship-events/SKILL.md +192 -0
  92. md_ddl-0.9.2/agents/agent-ontology/skills/relationship-events/references/events-spec.md +9 -0
  93. md_ddl-0.9.2/agents/agent-ontology/skills/relationship-events/references/relationships-spec.md +9 -0
  94. md_ddl-0.9.2/agents/agent-ontology/skills/schema-import/SKILL.md +288 -0
  95. md_ddl-0.9.2/agents/agent-ontology/skills/source-mapping/SKILL.md +397 -0
  96. md_ddl-0.9.2/agents/agent-ontology/skills/source-mapping/references/sources-spec.md +9 -0
  97. md_ddl-0.9.2/agents/agent-ontology/skills/source-mapping/references/transformations-spec.md +9 -0
  98. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/SKILL.md +255 -0
  99. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/acord/README.md +239 -0
  100. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/bian/README.md +106 -0
  101. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/bian/bo-classes-detail.md +525 -0
  102. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/bian/bo-classes.md +1535 -0
  103. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/bian/enumerations.md +557 -0
  104. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/bian/hierarchy.md +644 -0
  105. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/bian/v13/README.md +17 -0
  106. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/bian/v14/README.md +17 -0
  107. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/fhir/README.md +97 -0
  108. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/fhir/resources-detail.md +1246 -0
  109. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/fhir/resources.md +158 -0
  110. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/fhir/terminology.md +2397 -0
  111. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/iso20022.md +138 -0
  112. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/tmforum/README.md +215 -0
  113. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/tmforum/sid-domains.md +875 -0
  114. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/tmforum/sid-entities-detail.md +1022 -0
  115. md_ddl-0.9.2/agents/agent-ontology/skills/standards-alignment/standards/tmforum/sid-entities.md +790 -0
  116. md_ddl-0.9.2/examples/Brownfield Retail/baselines/catalog/collibra_product.md +32 -0
  117. md_ddl-0.9.2/examples/Brownfield Retail/baselines/dimensional/dim_product.md +51 -0
  118. md_ddl-0.9.2/examples/Brownfield Retail/baselines/dimensional/dim_store.md +51 -0
  119. md_ddl-0.9.2/examples/Brownfield Retail/baselines/dimensional/fact_sales.md +58 -0
  120. md_ddl-0.9.2/examples/Brownfield Retail/baselines/etl/daily_sales_load.md +55 -0
  121. md_ddl-0.9.2/examples/Brownfield Retail/domain.md +118 -0
  122. md_ddl-0.9.2/examples/Brownfield Retail/entities/product.md +77 -0
  123. md_ddl-0.9.2/examples/Brownfield Retail/entities/sale.md +103 -0
  124. md_ddl-0.9.2/examples/Brownfield Retail/entities/store.md +91 -0
  125. md_ddl-0.9.2/examples/Brownfield Retail/sources/pos-system/source.md +52 -0
  126. md_ddl-0.9.2/examples/Financial Crime/LIFECYCLE.md +86 -0
  127. md_ddl-0.9.2/examples/Financial Crime/consistency_example.py +228 -0
  128. md_ddl-0.9.2/examples/Financial Crime/data_products/analytics.md +116 -0
  129. md_ddl-0.9.2/examples/Financial Crime/data_products/canonical.md +135 -0
  130. md_ddl-0.9.2/examples/Financial Crime/data_products/party-risk-report-legacy.md +31 -0
  131. md_ddl-0.9.2/examples/Financial Crime/data_products/patient-fraud-detection.md +244 -0
  132. md_ddl-0.9.2/examples/Financial Crime/data_products/source-feeds.md +29 -0
  133. md_ddl-0.9.2/examples/Financial Crime/domain.md +240 -0
  134. md_ddl-0.9.2/examples/Financial Crime/entities/account.md +152 -0
  135. md_ddl-0.9.2/examples/Financial Crime/entities/address.md +126 -0
  136. md_ddl-0.9.2/examples/Financial Crime/entities/agreement.md +81 -0
  137. md_ddl-0.9.2/examples/Financial Crime/entities/branch.md +75 -0
  138. md_ddl-0.9.2/examples/Financial Crime/entities/company.md +108 -0
  139. md_ddl-0.9.2/examples/Financial Crime/entities/contact_address.md +167 -0
  140. md_ddl-0.9.2/examples/Financial Crime/entities/currency.md +52 -0
  141. md_ddl-0.9.2/examples/Financial Crime/entities/customer-preferences.md +59 -0
  142. md_ddl-0.9.2/examples/Financial Crime/entities/customer.md +85 -0
  143. md_ddl-0.9.2/examples/Financial Crime/entities/exchange-rate.md +76 -0
  144. md_ddl-0.9.2/examples/Financial Crime/entities/loan-agreement.md +51 -0
  145. md_ddl-0.9.2/examples/Financial Crime/entities/merchant.md +81 -0
  146. md_ddl-0.9.2/examples/Financial Crime/entities/party.md +188 -0
  147. md_ddl-0.9.2/examples/Financial Crime/entities/party_role.md +201 -0
  148. md_ddl-0.9.2/examples/Financial Crime/entities/payee.md +47 -0
  149. md_ddl-0.9.2/examples/Financial Crime/entities/payer.md +47 -0
  150. md_ddl-0.9.2/examples/Financial Crime/entities/payment_initiator.md +47 -0
  151. md_ddl-0.9.2/examples/Financial Crime/entities/person.md +115 -0
  152. md_ddl-0.9.2/examples/Financial Crime/entities/product.md +64 -0
  153. md_ddl-0.9.2/examples/Financial Crime/entities/teller.md +80 -0
  154. md_ddl-0.9.2/examples/Financial Crime/entities/term-deposit-agreement.md +51 -0
  155. md_ddl-0.9.2/examples/Financial Crime/entities/transaction.md +234 -0
  156. md_ddl-0.9.2/examples/Financial Crime/enums.md +464 -0
  157. md_ddl-0.9.2/examples/Financial Crime/events/account-status-changed.md +22 -0
  158. md_ddl-0.9.2/examples/Financial Crime/events/agreement-activated.md +22 -0
  159. md_ddl-0.9.2/examples/Financial Crime/events/customer-onboarded.md +22 -0
  160. md_ddl-0.9.2/examples/Financial Crime/events/high-risk-transaction-detected.md +37 -0
  161. md_ddl-0.9.2/examples/Financial Crime/events/kyc-status-updated.md +22 -0
  162. md_ddl-0.9.2/examples/Financial Crime/events/party-role-assigned.md +22 -0
  163. md_ddl-0.9.2/examples/Financial Crime/events/transaction-executed.md +37 -0
  164. md_ddl-0.9.2/examples/Financial Crime/factories.py +524 -0
  165. md_ddl-0.9.2/examples/Financial Crime/handoff-to-artifact.md +40 -0
  166. md_ddl-0.9.2/examples/Financial Crime/sources/salesforce-crm/source.md +34 -0
  167. md_ddl-0.9.2/examples/Financial Crime/sources/salesforce-crm/transforms/table_account.md +30 -0
  168. md_ddl-0.9.2/examples/Financial Crime/sources/salesforce-crm/transforms/table_contact.md +26 -0
  169. md_ddl-0.9.2/examples/Financial Crime/sources/salesforce-crm/transforms/table_contact_point.md +41 -0
  170. md_ddl-0.9.2/examples/Financial Crime/sources/salesforce-crm/transforms/table_preference.md +24 -0
  171. md_ddl-0.9.2/examples/Financial Crime/sources/sap-fraud-management/source.md +36 -0
  172. md_ddl-0.9.2/examples/Financial Crime/sources/sap-fraud-management/transforms/table_alert_case.md +37 -0
  173. md_ddl-0.9.2/examples/Financial Crime/sources/sap-fraud-management/transforms/table_customer_risk_profile.md +24 -0
  174. md_ddl-0.9.2/examples/Financial Crime/sources/sap-fraud-management/transforms/table_sanctions_screening.md +24 -0
  175. md_ddl-0.9.2/examples/Financial Crime/sources/temenos-payment/source.md +38 -0
  176. md_ddl-0.9.2/examples/Financial Crime/sources/temenos-payment/transforms/table_account_ref.md +25 -0
  177. md_ddl-0.9.2/examples/Financial Crime/sources/temenos-payment/transforms/table_initiation.md +25 -0
  178. md_ddl-0.9.2/examples/Financial Crime/sources/temenos-payment/transforms/table_payment_event.md +28 -0
  179. md_ddl-0.9.2/examples/Financial Crime/sources/temenos-payment/transforms/table_payment_parties.md +8 -0
  180. md_ddl-0.9.2/examples/Healthcare/data_products/analytics.md +197 -0
  181. md_ddl-0.9.2/examples/Healthcare/data_products/billing-fraud-detection.md +249 -0
  182. md_ddl-0.9.2/examples/Healthcare/data_products/canonical.md +174 -0
  183. md_ddl-0.9.2/examples/Healthcare/data_products/source-feeds.md +38 -0
  184. md_ddl-0.9.2/examples/Healthcare/domain.md +161 -0
  185. md_ddl-0.9.2/examples/Healthcare/entities/appointment.md +112 -0
  186. md_ddl-0.9.2/examples/Healthcare/entities/care_plan.md +138 -0
  187. md_ddl-0.9.2/examples/Healthcare/entities/condition.md +91 -0
  188. md_ddl-0.9.2/examples/Healthcare/entities/encounter.md +150 -0
  189. md_ddl-0.9.2/examples/Healthcare/entities/location.md +63 -0
  190. md_ddl-0.9.2/examples/Healthcare/entities/medication_request.md +90 -0
  191. md_ddl-0.9.2/examples/Healthcare/entities/observation.md +102 -0
  192. md_ddl-0.9.2/examples/Healthcare/entities/organization.md +60 -0
  193. md_ddl-0.9.2/examples/Healthcare/entities/patient.md +166 -0
  194. md_ddl-0.9.2/examples/Healthcare/entities/practitioner.md +94 -0
  195. md_ddl-0.9.2/examples/Healthcare/entities/practitioner_role.md +110 -0
  196. md_ddl-0.9.2/examples/Healthcare/entities/procedure.md +72 -0
  197. md_ddl-0.9.2/examples/Healthcare/enums.md +315 -0
  198. md_ddl-0.9.2/examples/Healthcare/events/care-plan-updated.md +37 -0
  199. md_ddl-0.9.2/examples/Healthcare/events/medication-prescribed.md +36 -0
  200. md_ddl-0.9.2/examples/Healthcare/events/observation-recorded.md +38 -0
  201. md_ddl-0.9.2/examples/Healthcare/events/patient-admitted.md +36 -0
  202. md_ddl-0.9.2/examples/Healthcare/sources/hospital-ehr/source.md +50 -0
  203. md_ddl-0.9.2/examples/Healthcare/sources/hospital-ehr/transforms/table_appointment.md +32 -0
  204. md_ddl-0.9.2/examples/Healthcare/sources/hospital-ehr/transforms/table_care_plan.md +31 -0
  205. md_ddl-0.9.2/examples/Healthcare/sources/hospital-ehr/transforms/table_diagnosis.md +32 -0
  206. md_ddl-0.9.2/examples/Healthcare/sources/hospital-ehr/transforms/table_encounter.md +51 -0
  207. md_ddl-0.9.2/examples/Healthcare/sources/hospital-ehr/transforms/table_location.md +44 -0
  208. md_ddl-0.9.2/examples/Healthcare/sources/hospital-ehr/transforms/table_medication_order.md +33 -0
  209. md_ddl-0.9.2/examples/Healthcare/sources/hospital-ehr/transforms/table_organization.md +28 -0
  210. md_ddl-0.9.2/examples/Healthcare/sources/hospital-ehr/transforms/table_patient_demographics.md +30 -0
  211. md_ddl-0.9.2/examples/Healthcare/sources/hospital-ehr/transforms/table_provider.md +11 -0
  212. md_ddl-0.9.2/examples/Healthcare/sources/hospital-ehr/transforms/table_provider_role.md +13 -0
  213. md_ddl-0.9.2/examples/Healthcare/sources/lab-information-system/source.md +35 -0
  214. md_ddl-0.9.2/examples/Healthcare/sources/lab-information-system/transforms/table_lab_procedure.md +32 -0
  215. md_ddl-0.9.2/examples/Healthcare/sources/lab-information-system/transforms/table_lab_result.md +35 -0
  216. md_ddl-0.9.2/examples/README.md +119 -0
  217. md_ddl-0.9.2/examples/Retail Sales/data_products/customer-360.md +208 -0
  218. md_ddl-0.9.2/examples/Retail Sales/data_products/domain-aligned.md +98 -0
  219. md_ddl-0.9.2/examples/Retail Sales/data_products/sales-funnel-legacy.md +33 -0
  220. md_ddl-0.9.2/examples/Retail Sales/domain.md +102 -0
  221. md_ddl-0.9.2/examples/Retail Sales/entities/customer.md +98 -0
  222. md_ddl-0.9.2/examples/Retail Sales/entities/order.md +96 -0
  223. md_ddl-0.9.2/examples/Retail Sales/entities/order_line.md +99 -0
  224. md_ddl-0.9.2/examples/Retail Sales/entities/product.md +67 -0
  225. md_ddl-0.9.2/examples/Retail Sales/enums.md +32 -0
  226. md_ddl-0.9.2/examples/Retail Sales/events/order-placed.md +42 -0
  227. md_ddl-0.9.2/examples/Retail Service/data_products/domain-aligned.md +102 -0
  228. md_ddl-0.9.2/examples/Retail Service/domain.md +101 -0
  229. md_ddl-0.9.2/examples/Retail Service/entities/customer.md +104 -0
  230. md_ddl-0.9.2/examples/Retail Service/entities/knowledge_article.md +67 -0
  231. md_ddl-0.9.2/examples/Retail Service/entities/service_case.md +104 -0
  232. md_ddl-0.9.2/examples/Retail Service/entities/service_request.md +94 -0
  233. md_ddl-0.9.2/examples/Retail Service/enums.md +45 -0
  234. md_ddl-0.9.2/examples/Retail Service/events/service-request-received.md +36 -0
  235. md_ddl-0.9.2/examples/Simple Customer/details.md +244 -0
  236. md_ddl-0.9.2/examples/Simple Customer/domain.md +75 -0
  237. md_ddl-0.9.2/examples/Telecom/data_products/analytics.md +222 -0
  238. md_ddl-0.9.2/examples/Telecom/data_products/canonical.md +129 -0
  239. md_ddl-0.9.2/examples/Telecom/data_products/cdr-feed.md +29 -0
  240. md_ddl-0.9.2/examples/Telecom/data_products/fraud-intelligence.md +256 -0
  241. md_ddl-0.9.2/examples/Telecom/data_products/subscriber-report-legacy.md +36 -0
  242. md_ddl-0.9.2/examples/Telecom/domain.md +143 -0
  243. md_ddl-0.9.2/examples/Telecom/entities/billing_account.md +123 -0
  244. md_ddl-0.9.2/examples/Telecom/entities/customer.md +122 -0
  245. md_ddl-0.9.2/examples/Telecom/entities/individual.md +88 -0
  246. md_ddl-0.9.2/examples/Telecom/entities/organization.md +74 -0
  247. md_ddl-0.9.2/examples/Telecom/entities/party.md +72 -0
  248. md_ddl-0.9.2/examples/Telecom/entities/product_offering.md +123 -0
  249. md_ddl-0.9.2/examples/Telecom/entities/service.md +101 -0
  250. md_ddl-0.9.2/examples/Telecom/entities/service_order.md +100 -0
  251. md_ddl-0.9.2/examples/Telecom/entities/subscription.md +128 -0
  252. md_ddl-0.9.2/examples/Telecom/entities/usage_record.md +130 -0
  253. md_ddl-0.9.2/examples/Telecom/enums.md +124 -0
  254. md_ddl-0.9.2/examples/Telecom/events/service-provisioned.md +39 -0
  255. md_ddl-0.9.2/examples/Telecom/events/subscription-activated.md +39 -0
  256. md_ddl-0.9.2/examples/Telecom/events/usage-recorded.md +48 -0
  257. md_ddl-0.9.2/examples/Telecom/sources/bss-oss/source.md +46 -0
  258. md_ddl-0.9.2/examples/Telecom/sources/bss-oss/transforms/table_billing_account.md +32 -0
  259. md_ddl-0.9.2/examples/Telecom/sources/bss-oss/transforms/table_business_account.md +27 -0
  260. md_ddl-0.9.2/examples/Telecom/sources/bss-oss/transforms/table_cdr.md +39 -0
  261. md_ddl-0.9.2/examples/Telecom/sources/bss-oss/transforms/table_customer.md +29 -0
  262. md_ddl-0.9.2/examples/Telecom/sources/bss-oss/transforms/table_product_catalog.md +38 -0
  263. md_ddl-0.9.2/examples/Telecom/sources/bss-oss/transforms/table_service.md +32 -0
  264. md_ddl-0.9.2/examples/Telecom/sources/bss-oss/transforms/table_service_order.md +51 -0
  265. md_ddl-0.9.2/examples/Telecom/sources/bss-oss/transforms/table_subscriber.md +29 -0
  266. md_ddl-0.9.2/examples/Telecom/sources/bss-oss/transforms/table_subscription.md +32 -0
  267. md_ddl-0.9.2/guides/adoption-playbook.md +283 -0
  268. md_ddl-0.9.2/guides/diagram-style.md +344 -0
  269. md_ddl-0.9.2/guides/lifecycle-versioning.md +186 -0
  270. md_ddl-0.9.2/guides/validation-tooling.md +121 -0
  271. md_ddl-0.9.2/md-ddl-specification/1-Foundation.md +132 -0
  272. md_ddl-0.9.2/md-ddl-specification/10-Adoption.md +89 -0
  273. md_ddl-0.9.2/md-ddl-specification/2-Domains.md +350 -0
  274. md_ddl-0.9.2/md-ddl-specification/3-Entities.md +370 -0
  275. md_ddl-0.9.2/md-ddl-specification/4-Enumerations.md +79 -0
  276. md_ddl-0.9.2/md-ddl-specification/5-Relationships.md +135 -0
  277. md_ddl-0.9.2/md-ddl-specification/6-Events.md +145 -0
  278. md_ddl-0.9.2/md-ddl-specification/7-Sources.md +534 -0
  279. md_ddl-0.9.2/md-ddl-specification/8-Transformations.md +495 -0
  280. md_ddl-0.9.2/md-ddl-specification/9-Data-Products.md +502 -0
  281. md_ddl-0.9.2/md-ddl-specification/MD-DDL-Complete.md +2786 -0
  282. md_ddl-0.9.2/pyproject.toml +87 -0
  283. md_ddl-0.9.2/references/architecture/2018-12-20_vestigial_technology.md +77 -0
  284. md_ddl-0.9.2/references/architecture/2019-02-17_data-autonomy-overview.md +131 -0
  285. md_ddl-0.9.2/references/architecture/2020-07-18_data-autonomy-holistic-data-mesh.md +165 -0
  286. md_ddl-0.9.2/references/architecture/2020-07-19_data-autonomy-resource-oriented-event-driven.md +64 -0
  287. md_ddl-0.9.2/references/architecture/2020-07-30_data-autonomy-bi-analytics.md +39 -0
  288. md_ddl-0.9.2/references/architecture/2020-08-05_data-autonomy-case-study.md +102 -0
  289. md_ddl-0.9.2/references/architecture/2021-03-28_stop-versioning.md +91 -0
  290. md_ddl-0.9.2/references/architecture/2021-04-05_automated-operational-analytics-transform.md +130 -0
  291. md_ddl-0.9.2/references/architecture/2021-04-24_systems-record-bollocks.md +39 -0
  292. md_ddl-0.9.2/references/architecture/2021-07-07_model-driven-generation.md +36 -0
  293. md_ddl-0.9.2/references/architecture/2021-08-13_tikanga-data.md +69 -0
  294. md_ddl-0.9.2/references/architecture/2021-08-22_data-convergence.md +59 -0
  295. md_ddl-0.9.2/references/architecture/2021-09-23_poc-poc-poc-production.md +25 -0
  296. md_ddl-0.9.2/references/architecture/2022-02-13_the-forgotten-question-mark.md +118 -0
  297. md_ddl-0.9.2/references/architecture/2022-03-25_standards.md +31 -0
  298. md_ddl-0.9.2/references/architecture/2024-03-23_enterprise_anarchism.md +57 -0
  299. md_ddl-0.9.2/references/architecture/2024-07-11_data_products.md +88 -0
  300. md_ddl-0.9.2/references/architecture/2024-08-07_architecting_data_autonomy.md +239 -0
  301. md_ddl-0.9.2/references/architecture/BIAN Coreless Banking vs Data Autonomy.md +103 -0
  302. md_ddl-0.9.2/references/architecture/bounded_context.md +41 -0
  303. md_ddl-0.9.2/references/architecture/data_lake_to_data_mesh.md +136 -0
  304. md_ddl-0.9.2/references/architecture/diagrams_converted/Bounded Context.md +47 -0
  305. md_ddl-0.9.2/references/architecture/diagrams_converted/Canonical Data Model Pattern.md +48 -0
  306. md_ddl-0.9.2/references/architecture/diagrams_converted/Data Products E2E.md +65 -0
  307. md_ddl-0.9.2/references/architecture/diagrams_converted/Flatten.md +34 -0
  308. md_ddl-0.9.2/references/architecture/diagrams_converted/Key Mapping.md +62 -0
  309. md_ddl-0.9.2/references/architecture/diagrams_converted/OP2ANL.md +66 -0
  310. md_ddl-0.9.2/references/architecture/diagrams_converted/SH Integration.md +26 -0
  311. md_ddl-0.9.2/scripts/concat-md-ddl-specs.ps1 +86 -0
  312. md_ddl-0.9.2/scripts/md_ddl_lint.py +22 -0
  313. md_ddl-0.9.2/scripts/start-project.ps1 +165 -0
  314. md_ddl-0.9.2/scripts/start-project.sh +165 -0
  315. md_ddl-0.9.2/src/md_ddl/__init__.py +118 -0
  316. md_ddl-0.9.2/src/md_ddl/__main__.py +8 -0
  317. md_ddl-0.9.2/src/md_ddl/cli.py +342 -0
  318. md_ddl-0.9.2/src/md_ddl/includes.py +88 -0
  319. md_ddl-0.9.2/src/md_ddl/lint.py +1469 -0
@@ -0,0 +1,10 @@
1
+ Read `agents/agent-architect/AGENT.md` and adopt its identity, modes, and protocols for this session.
2
+
3
+ Follow the skill-loading protocol defined in the AGENT.md:
4
+ - Identify which skill(s) apply to the request below (architecture, product-design, odps-alignment)
5
+ - Read those `agents/agent-architect/skills/<skill>/SKILL.md` files before responding
6
+ - For product design, read the relevant domain files before drafting product declarations
7
+
8
+ Produce production-quality data product declarations and ODPS manifests. Do not model domain entities or generate physical artifacts — those belong to Agent Ontology and Agent Artifact respectively.
9
+
10
+ Task: $ARGUMENTS
@@ -0,0 +1,10 @@
1
+ Read `agents/agent-artifact/AGENT.md` and adopt its identity, modes, and protocols for this session.
2
+
3
+ Follow the skill-loading protocol defined in the AGENT.md:
4
+ - Identify which skill(s) apply to the request below (dimensional, normalized, wide-column, knowledge-graph)
5
+ - Read those `agents/agent-artifact/skills/<skill>/SKILL.md` files before responding
6
+ - Read the relevant domain and product files from the examples or the user's working directory before generating artifacts
7
+
8
+ Generate physical artifacts (SQL DDL, JSON Schema, Parquet schema, Cypher) scoped by the data product declaration. Do not change the domain model — flag conceptual gaps and defer structural changes to Agent Ontology.
9
+
10
+ Task: $ARGUMENTS
@@ -0,0 +1,11 @@
1
+ Read `agents/agent-governance/AGENT.md` and adopt its identity, modes, and protocols for this session.
2
+
3
+ Follow the skill-loading protocol defined in the AGENT.md:
4
+ - Identify which skill(s) apply to the request below (standards-conformance, regulatory-compliance, compliance-audit)
5
+ - Read those `agents/agent-governance/skills/<skill>/SKILL.md` files before responding
6
+ - For regulatory audits, read the relevant regulator file from `agents/agent-governance/skills/regulatory-compliance/regulators/`
7
+ - Read the domain files being audited before producing findings
8
+
9
+ Produce governance findings, gap reports, and remediation recommendations. Do not make structural model changes — flag gaps and defer them to Agent Ontology or Agent Architect.
10
+
11
+ Task: $ARGUMENTS
@@ -0,0 +1,10 @@
1
+ Read `agents/agent-guide/AGENT.md` and adopt its identity, modes, and protocols for this session.
2
+
3
+ Follow the skill-loading protocol defined in the AGENT.md:
4
+ - Identify which skill(s) apply to the request below (Orientation, Concept Explorer, Worked Examples, Platform Setup)
5
+ - Read those `agents/agent-guide/skills/<skill>/SKILL.md` files before responding
6
+ - If no specific skill is identified, default to Welcome mode
7
+
8
+ Do not generate production MD-DDL. Teach, demonstrate, and navigate. When the user is ready for production work, name the receiving agent and offer to formulate their opening prompt.
9
+
10
+ Task: $ARGUMENTS
@@ -0,0 +1,10 @@
1
+ Read `agents/agent-ontology/AGENT.md` and adopt its identity, modes, and protocols for this session.
2
+
3
+ Follow the skill-loading protocol defined in the AGENT.md:
4
+ - Identify which skill(s) apply to the request below (domain-scoping, entity-modelling, relationship-events, standards-alignment, source-mapping, domain-review)
5
+ - Read those `agents/agent-ontology/skills/<skill>/SKILL.md` files before responding
6
+ - If the skill references spec sections, read the relevant `md-ddl-specification/*.md` files before drafting
7
+
8
+ Produce production-quality MD-DDL. Follow the output rules in the AGENT.md. Do not generate physical artifacts — that is Agent Artifact's responsibility.
9
+
10
+ Task: $ARGUMENTS
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: agent-architect
3
+ description: Specialist MD-DDL strategic design and data product publication agent for architecture philosophy discussion, data product declaration, product class and schema type selection, governance and masking strategies, and ODPS-aligned manifest generation.
4
+ argument-hint: An architecture discussion topic, an MD-DDL domain to design data products for, consumer needs and access patterns, or existing products to publish as ODPS manifests.
5
+ tools: ['vscode', 'execute', 'read', 'agent', 'edit', 'search', 'web', 'todo']
6
+ ---
7
+ Canonical source: `../../.md-ddl/agents/agent-architect/AGENT.md`
8
+
9
+ <agent_architect_core>
10
+ {{INCLUDE: ../../.md-ddl/agents/agent-architect/AGENT.md}}
11
+ </agent_architect_core>
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: agent-artifact
3
+ description: Specialist MD-DDL physical artifact generation agent for dimensional star schemas, normalized 3NF designs, SQL DDL, JSON Schema, and Parquet schema contracts.
4
+ argument-hint: An MD-DDL domain to generate physical artifacts from, a target physical style (dimensional/3NF), and a platform dialect.
5
+ tools: ['vscode', 'execute', 'read', 'agent', 'edit', 'search', 'web', 'todo']
6
+ ---
7
+ Canonical source: `../../.md-ddl/agents/agent-artifact/AGENT.md`
8
+
9
+ <agent_artifact_core>
10
+ {{INCLUDE: ../../.md-ddl/agents/agent-artifact/AGENT.md}}
11
+ </agent_artifact_core>
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: agent-governance
3
+ description: Specialist MD-DDL standards conformance and compliance assurance agent for auditing standards alignment, regulatory compliance, governance metadata completeness, and guiding remediation across domain portfolios.
4
+ argument-hint: A domain or corpus to audit, applicable standards or jurisdictions/frameworks, or a compliance posture and remediation request.
5
+ tools: ['vscode', 'execute', 'read', 'agent', 'edit', 'search', 'web', 'todo']
6
+ ---
7
+ Canonical source: `../../.md-ddl/agents/agent-governance/AGENT.md`
8
+
9
+ <agent_governance_core>
10
+ {{INCLUDE: ../../.md-ddl/agents/agent-governance/AGENT.md}}
11
+ </agent_governance_core>
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: agent-guide
3
+ description: Learning companion and navigator for the MD-DDL ecosystem — the first place to go for understanding the standard, exploring concepts, walking through examples, setting up your environment, and finding the right specialist agent.
4
+ argument-hint: A question about MD-DDL, a request for help getting started, or guidance on which agent to use for a specific task.
5
+ tools: ['vscode', 'execute', 'read', 'agent', 'edit', 'search', 'web', 'todo']
6
+ ---
7
+ Canonical source: `../../.md-ddl/agents/agent-guide/AGENT.md`
8
+
9
+ <agent_guide_core>
10
+ {{INCLUDE: ../../.md-ddl/agents/agent-guide/AGENT.md}}
11
+ </agent_guide_core>
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: agent-ontology
3
+ description: Specialist MD-DDL modelling agent for domain discovery, entity design, relationships/events, and standards-aligned domain authoring.
4
+ argument-hint: A domain to model, existing MD-DDL files to improve, or a modelling question requiring trade-offs and rule validation.
5
+ tools: ['vscode', 'execute', 'read', 'agent', 'edit', 'search', 'web', 'todo']
6
+ ---
7
+ Canonical source: `../../.md-ddl/agents/agent-ontology/AGENT.md`
8
+
9
+ <agent_ontology_core>
10
+ {{INCLUDE: ../../.md-ddl/agents/agent-ontology/AGENT.md}}
11
+ </agent_ontology_core>
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: review-md-ddl
3
+ description: Run structured reviews of the MD-DDL standard, agents, and examples using a layered process — structural checks, adversarial probing, and stakeholder simulation. Use this when asked to review, evaluate, audit, or assess the standard.
4
+ argument-hint: A review request — e.g. "review the standard", "find weaknesses", "evaluate for users", or "full layered review".
5
+ tools: ['vscode', 'execute', 'read', 'search', 'todo']
6
+ ---
7
+
8
+ # Review MD-DDL
9
+
10
+ You are a review agent for the MD-DDL project. You run structured, honest reviews
11
+ of the standard, agents, skills, and examples.
12
+
13
+ ## Before anything else
14
+
15
+ Read the layered review process document:
16
+
17
+ <review_process>
18
+ {{INCLUDE: ../../.prompts/md-ddl-layered-review-process.md}}
19
+ </review_process>
20
+
21
+ ## Determining which layer to run
22
+
23
+ Based on the user's request, select the appropriate layer:
24
+
25
+ Request pattern | Layer | Prompt to load
26
+ --- | --- | ---
27
+ "Review" / "check" / "structural review" | Layer 1 | `.prompts/md-ddl-review-prompt.md`
28
+ "Find weaknesses" / "adversarial" / "stress test" / "what's wrong" | Layer 2 | `.prompts/md-ddl-adversarial-review-prompt.md`
29
+ "Evaluate" / "stakeholder" / "would users adopt" / "personas" | Layer 3 | `.prompts/md-ddl-evaluation-prompt.md`
30
+ "Full review" / "layered review" / "comprehensive" | All layers | Run 1 → 2 → 3 in order
31
+
32
+ If ambiguous, ask the user which layer they want. If they say "just review it,"
33
+ default to Layer 1 (structural) as it's the fastest and most objectively verifiable.
34
+
35
+ ## Loading the review prompt
36
+
37
+ Once you've determined the layer, read the corresponding prompt file listed above.
38
+ That file contains the full review protocol — follow it completely.
39
+
40
+ ## Non-negotiable rules
41
+
42
+ - Every review report must include a "What I Cannot Evaluate" section.
43
+ - Never soften findings. If something is broken, say it's broken.
44
+ - Scores of 5/5 require specific evidence of excellence. Do not default to high scores.
45
+ - An honest review that finds real issues is more valuable than a clean bill of health.
46
+ - Write findings to `review.md` as instructed by the loaded prompt.
@@ -0,0 +1,215 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+ #poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ #pdm.lock
116
+ #pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ #pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .envrc
140
+ .venv
141
+ env/
142
+ venv/
143
+ ENV/
144
+ env.bak/
145
+ venv.bak/
146
+ .continue
147
+
148
+ # Spyder project settings
149
+ .spyderproject
150
+ .spyproject
151
+
152
+ # Rope project settings
153
+ .ropeproject
154
+
155
+ # mkdocs documentation
156
+ /site
157
+
158
+ # mypy
159
+ .mypy_cache/
160
+ .dmypy.json
161
+ dmypy.json
162
+
163
+ # Pyre type checker
164
+ .pyre/
165
+
166
+ # pytype static type analyzer
167
+ .pytype/
168
+
169
+ # Cython debug symbols
170
+ cython_debug/
171
+
172
+ # PyCharm
173
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
174
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
175
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
176
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
177
+ #.idea/
178
+
179
+ # Abstra
180
+ # Abstra is an AI-powered process automation framework.
181
+ # Ignore directories containing user credentials, local state, and settings.
182
+ # Learn more at https://abstra.io/docs
183
+ .abstra/
184
+
185
+ # Visual Studio Code
186
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
187
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
188
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
189
+ # you could uncomment the following to ignore the entire vscode folder
190
+ # .vscode/
191
+
192
+ # Ruff stuff:
193
+ .ruff_cache/
194
+
195
+ # PyPI configuration file
196
+ .pypirc
197
+
198
+ # Cursor
199
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
200
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
201
+ # refer to https://docs.cursor.com/context/ignore-files
202
+ .cursorignore
203
+ .cursorindexingignore
204
+
205
+ # Generated Financial Crime physical model outputs
206
+ examples/Financial Crime/generated/
207
+
208
+ review.md
209
+
210
+ # Marimo
211
+ marimo/_static/
212
+ marimo/_lsp/
213
+ __marimo__/
214
+
215
+ .claude/settings.local.json
md_ddl-0.9.2/CLAUDE.md ADDED
@@ -0,0 +1,111 @@
1
+ # MD-DDL Project
2
+
3
+ This is the **source repository** for the MD-DDL standard — its specification, agent prompts, skills, and examples.
4
+
5
+ ## Agents
6
+
7
+ MD-DDL provides AI agents for every stage of the modelling lifecycle.
8
+ Invoke them with slash commands or let the auto-routing below guide you.
9
+
10
+ Command | Agent | Purpose
11
+ --- | --- | ---
12
+ `/agent-guide` | Agent Guide | Learning, navigation, concept explanation. Start here.
13
+ `/agent-ontology` | Agent Ontology | Domain discovery, entity modelling, source mapping.
14
+ `/agent-artifact` | Agent Artifact | Physical schema generation (SQL DDL, JSON Schema, Parquet, Cypher).
15
+ `/agent-architect` | Agent Architect | Data product design, architecture discussion, ODPS manifests.
16
+ `/agent-governance` | Agent Governance | Standards conformance, compliance auditing, governance assurance.
17
+
18
+ Agent prompts: `agents/<agent-name>/AGENT.md`
19
+
20
+ ## Auto-Routing
21
+
22
+ When no slash command is given, select the appropriate agent based on the request:
23
+
24
+ Request type | Agent to activate
25
+ --- | ---
26
+ "What is...", "How does...", "Explain...", onboarding | Read `agents/agent-guide/AGENT.md`
27
+ Modelling a domain, designing entities, mapping sources | Read `agents/agent-ontology/AGENT.md`
28
+ Brownfield adoption, "we already have", existing systems, import schema | Read `agents/agent-ontology/AGENT.md` (baseline-capture or schema-import skill)
29
+ Generating DDL, JSON Schema, Parquet, Cypher | Read `agents/agent-artifact/AGENT.md`
30
+ Reconcile generated vs existing, gap analysis | Read `agents/agent-artifact/AGENT.md` (reconciliation skill)
31
+ Data product design, architecture, ODPS | Read `agents/agent-architect/AGENT.md`
32
+ Compliance audit, governance review, standards check | Read `agents/agent-governance/AGENT.md`
33
+ Review, evaluate, audit the standard itself | Read `.prompts/md-ddl-layered-review-process.md` for orchestration, then load the appropriate layer prompt from `.prompts/`
34
+
35
+ When activating an agent, also follow its skill-loading protocol — read the applicable `SKILL.md` files before responding.
36
+
37
+ ## Validation
38
+
39
+ MD-DDL uses **agent-driven quality review**, plus lightweight linting. The two-tier validation model (mechanical pre-flight checks for syntax + agent-driven review for everything else) is defined in `1-Foundation.md`. Agents work with organisational deviations from convention rather than rejecting them — deviations are observations and potential spec contributions, not errors.
40
+
41
+ The linter lives at `src/md_ddl/lint.py`. Run it in this repo with `python scripts/md_ddl_lint.py <domain-folder>`; installed from PyPI it is `md-ddl lint <domain-folder>`.
42
+
43
+ ## Packaging
44
+
45
+ This repository is also the `md-ddl` PyPI distribution. `src/md_ddl/` holds the package; `pyproject.toml` force-includes `agents/`, `md-ddl-specification/`, `guides/`, `examples/`, and `references/architecture/` as package data, and the agent wrappers from `.github/agents/` and `.claude/commands/`. `references/industry_standards/` is deliberately excluded — 63 MB of raw snapshots.
46
+
47
+ `md-ddl init` unpacks that payload into a consuming project's `.md-ddl/`, mirroring what the submodule flow in `scripts/start-project.sh` does. When you add an agent, a spec section, or a guide, it is packaged automatically; when you add a new *top-level* directory that agents read, add it to `DOCS_PAYLOAD` in `src/md_ddl/__init__.py` and to the force-include table in `pyproject.toml`.
48
+
49
+ `{{INCLUDE: ...}}` directives must use file-relative paths so they resolve both in this repo and from `.md-ddl/` in a consuming project. `src/md_ddl/includes.py` implements the check; `md-ddl init` runs it after unpacking and `md-ddl check` re-runs it on demand.
50
+
51
+ Releases publish from `.github/workflows/publish.yml` via PyPI Trusted Publishing. Bump `__version__` in `src/md_ddl/__init__.py`, tag `v<version>`, publish a GitHub release.
52
+
53
+ ## Review Output
54
+
55
+ All review, evaluation, and post-mortem outputs must be written to `roadmap/review/`,
56
+ prefixed with the date in `YYYY-MM-DD` format. Examples:
57
+
58
+ - `roadmap/review/2026-03-15-layer1-structural-review.md`
59
+ - `roadmap/review/2026-03-15-consolidated-review.md`
60
+ - `roadmap/review/2026-03-15-post-mortem-<topic>.md`
61
+
62
+ This applies whenever a user requests:
63
+
64
+ - A review of the spec, agents, examples, or repository structure
65
+ - A post-mortem on a completed piece of work
66
+ - Any evaluation, audit, or findings document intended to inform the roadmap
67
+
68
+ The `.prompts/` files contain the prompts for each layer of review. Each prompt
69
+ already includes the correct output path instruction.
70
+
71
+ ## Working Style
72
+
73
+ ### Sequential Execution
74
+
75
+ - **Never spin up parallel subagents or background agents for implementation
76
+ work.** One task at a time, completed and verified before moving to the next.
77
+ - When implementing a plan with multiple items, create a TodoWrite task list at
78
+ the start covering every item, then mark each complete before proceeding.
79
+ - Do not batch multiple file writes across unrelated items in a single response.
80
+ Each plan item is its own step: write → verify → mark done → proceed.
81
+ - When a plan item requires reading files before writing, do the reads first
82
+ in a single step, then write in the next.
83
+
84
+ ### Resuming After Interruption
85
+
86
+ If the conversation starts mid-plan, or the user indicates work was cut off:
87
+
88
+ 1. Run `git status` to identify which files have been modified since the last commit
89
+ 2. Read any recently modified files to confirm their current state
90
+ 3. Cross-reference against the plan to identify the last completed item
91
+ 4. State what has been done and what remains before proceeding — do not
92
+ silently re-do completed work or skip ahead
93
+
94
+ This keeps incomplete work recoverable without re-reading the full conversation
95
+ history or repeating already-finished steps.
96
+
97
+ ## Architectural Philosophy
98
+
99
+ MD-DDL implements the **Data Autonomy** architectural style. See `references/architecture/` for foundational blog posts and external references, and `agents/agent-architect/skills/architecture/SKILL.md` for the distilled 13 tenets.
100
+
101
+ ## Key References
102
+
103
+ - MD-DDL specification: `md-ddl-specification/`
104
+ - Foundation principles: `md-ddl-specification/1-Foundation.md`
105
+ - Complete spec (single file for AI context): `md-ddl-specification/MD-DDL-Complete.md`
106
+ - Architectural philosophy and tenets: `agents/agent-architect/skills/architecture/SKILL.md`
107
+ - Architecture source material: `references/architecture/`
108
+ - Examples: `examples/`
109
+ - Review and evaluation prompts: `.prompts/`
110
+ - Review outputs: `roadmap/review/`
111
+ - Spec concatenation rules: `.prompts/concat-md-ddl-specs.prompt.md`