azcodr 1.5.2 → 2.1.0

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 (136) hide show
  1. package/.agents/hooks.json +42 -42
  2. package/.agents/hooks.json.example +42 -42
  3. package/.agents/mcp_config.json.example +29 -29
  4. package/.agents/scripts/safety_guard.sh +143 -34
  5. package/.agents/scripts/verify_completion.sh +90 -27
  6. package/.agents/skills/agentic-architect/SKILL.md +125 -125
  7. package/.agents/skills/agentic-architect/references/agents_md_template.md +62 -62
  8. package/.agents/skills/agentic-architect/references/refinement_workflow.md +32 -32
  9. package/.agents/skills/agentic-architect/references/skill_architecture_inquiry.md +63 -63
  10. package/.agents/skills/agentic-architect/references/skill_template.md +56 -56
  11. package/.agents/skills/agentic-architect/scripts/validate_agentic_configs.sh +402 -402
  12. package/.agents/skills/clean-code-refactor/SKILL.md +91 -91
  13. package/.agents/skills/clean-code-refactor/references/clean_code_smells.md +27 -27
  14. package/.agents/skills/clean-code-refactor/references/design_patterns_ts.md +65 -65
  15. package/.agents/skills/compliance-audit/SKILL.md +120 -120
  16. package/.agents/skills/compliance-audit/references/owasp_top10_controls.md +16 -16
  17. package/.agents/skills/compliance-audit/references/soc2_iso_controls.md +28 -28
  18. package/.agents/skills/lets-build/SKILL.md +173 -173
  19. package/.agents/skills/lets-build/references/architecture_interview_matrix.md +115 -115
  20. package/.agents/skills/lets-build/references/hexagonal_bootstrap_scaffolds.md +160 -160
  21. package/.agents/skills/lets-build/references/project_readme_template.md +79 -79
  22. package/.agents/skills/lets-build/scripts/bootstrap_workspace.sh +419 -255
  23. package/.agents/skills/product-analyst/SKILL.md +154 -154
  24. package/.agents/skills/product-analyst/references/backlog_ordering_techniques.md +107 -107
  25. package/.agents/skills/product-analyst/references/gherkin_patterns.md +46 -46
  26. package/.agents/skills/product-analyst/references/invest_checklist.md +38 -38
  27. package/.agents/skills/product-analyst/references/okr_alignment_guide.md +76 -76
  28. package/.agents/skills/product-analyst/references/smart_tasks.md +59 -59
  29. package/.agents/skills/relentless-questioner/SKILL.md +128 -128
  30. package/.agents/skills/relentless-questioner/references/adaptive_question_trees.md +102 -102
  31. package/.editorconfig +19 -19
  32. package/.github/workflows/ci.yml +167 -78
  33. package/.github/workflows/publish.yml +196 -0
  34. package/.gitignore +40 -25
  35. package/AGENTS.md +103 -102
  36. package/LICENSE +21 -21
  37. package/README.md +168 -165
  38. package/bin/azcodr.js +19 -228
  39. package/docs/knowledge/ubiquitous_language.md +31 -18
  40. package/docs/rules/agentic_configuration.md +259 -259
  41. package/docs/rules/api_architecture.md +179 -179
  42. package/docs/rules/authentication.md +76 -76
  43. package/docs/rules/authorization.md +75 -75
  44. package/docs/rules/caching.md +69 -69
  45. package/docs/rules/clean_code.md +62 -62
  46. package/docs/rules/cloud_native.md +41 -41
  47. package/docs/rules/cqrs.md +203 -203
  48. package/docs/rules/database_design.md +125 -125
  49. package/docs/rules/database_operations.md +69 -69
  50. package/docs/rules/design_patterns.md +98 -98
  51. package/docs/rules/devops_ci_cd.md +76 -76
  52. package/docs/rules/domain_driven_design.md +122 -122
  53. package/docs/rules/error_handling.md +54 -52
  54. package/docs/rules/feature_flags.md +59 -59
  55. package/docs/rules/frontend_architecture.md +157 -157
  56. package/docs/rules/multitenancy_architecture.md +98 -98
  57. package/docs/rules/product_ownership.md +127 -127
  58. package/docs/rules/project_management.md +49 -49
  59. package/docs/rules/relentless_questioning.md +52 -52
  60. package/docs/rules/requirements_engineering.md +98 -98
  61. package/docs/rules/security_compliance.md +53 -53
  62. package/docs/rules/server_driven_ui.md +88 -88
  63. package/docs/rules/test_driven_development.md +185 -185
  64. package/docs/rules/transactional_email.md +27 -27
  65. package/docs/rules/type_safety.md +65 -65
  66. package/docs/rules/ui_ux_architecture.md +150 -150
  67. package/docs/rules/workflow_state_machines.md +117 -117
  68. package/lib/cli-parse.d.ts +32 -0
  69. package/lib/cli-parse.d.ts.map +1 -0
  70. package/lib/cli-parse.js +55 -0
  71. package/lib/cli-parse.js.map +1 -0
  72. package/lib/cli-target.d.ts +66 -0
  73. package/lib/cli-target.d.ts.map +1 -0
  74. package/lib/cli-target.js +102 -0
  75. package/lib/cli-target.js.map +1 -0
  76. package/lib/cli.d.ts +40 -0
  77. package/lib/cli.d.ts.map +1 -0
  78. package/lib/cli.js +166 -0
  79. package/lib/cli.js.map +1 -0
  80. package/lib/errors.d.ts +39 -0
  81. package/lib/errors.d.ts.map +1 -0
  82. package/lib/errors.js +26 -0
  83. package/lib/errors.js.map +1 -0
  84. package/lib/git.d.ts +15 -0
  85. package/lib/git.d.ts.map +1 -0
  86. package/lib/git.js +32 -0
  87. package/lib/git.js.map +1 -0
  88. package/lib/guards.d.ts +35 -0
  89. package/lib/guards.d.ts.map +1 -0
  90. package/lib/guards.js +95 -0
  91. package/lib/guards.js.map +1 -0
  92. package/lib/index.d.ts +6 -134
  93. package/lib/index.d.ts.map +1 -0
  94. package/lib/index.js +4 -5
  95. package/lib/index.js.map +1 -0
  96. package/lib/links.d.ts +28 -0
  97. package/lib/links.d.ts.map +1 -0
  98. package/lib/links.js +129 -0
  99. package/lib/links.js.map +1 -0
  100. package/lib/permissions.d.ts +9 -0
  101. package/lib/permissions.d.ts.map +1 -0
  102. package/lib/permissions.js +44 -0
  103. package/lib/permissions.js.map +1 -0
  104. package/lib/repo.d.ts +20 -0
  105. package/lib/repo.d.ts.map +1 -0
  106. package/lib/repo.js +92 -0
  107. package/lib/repo.js.map +1 -0
  108. package/lib/scaffold.d.ts +80 -0
  109. package/lib/scaffold.d.ts.map +1 -0
  110. package/lib/scaffold.js +201 -448
  111. package/lib/scaffold.js.map +1 -0
  112. package/memory.md +135 -36
  113. package/package.json +75 -62
  114. package/scripts/test_coverage.js +66 -38
  115. package/scripts/validate/adr.js +155 -0
  116. package/scripts/validate/io.js +82 -0
  117. package/scripts/validate/links.js +166 -0
  118. package/scripts/validate/parity.js +122 -0
  119. package/scripts/validate/root.js +183 -0
  120. package/scripts/validate/rules.js +42 -0
  121. package/scripts/validate/skills.js +94 -0
  122. package/scripts/validate/text.js +27 -0
  123. package/scripts/validate-cli.js +12 -0
  124. package/scripts/validate.js +158 -258
  125. package/src/cli-parse.ts +77 -0
  126. package/src/cli-target.ts +167 -0
  127. package/src/cli.ts +240 -0
  128. package/src/errors.ts +35 -0
  129. package/src/git.ts +34 -0
  130. package/src/guards.ts +101 -0
  131. package/src/index.ts +39 -0
  132. package/src/links.ts +139 -0
  133. package/src/permissions.ts +42 -0
  134. package/src/repo.ts +94 -0
  135. package/src/scaffold.ts +273 -0
  136. package/.github/copilot-instructions.md +0 -1
@@ -1,79 +1,79 @@
1
- # {{PROJECT_NAME}}
2
-
3
- > **{{PROJECT_TAGLINE_OR_MISSION}}**
4
-
5
- ---
6
-
7
- ## 🌟 Architecture & Stack
8
-
9
- - **Architecture:** Hexagonal (Ports & Adapters) with strict systemic atomicity and zero-downtime database patterns.
10
- - **Language & Runtime:** {{LANGUAGE_AND_RUNTIME}}
11
- - **Package Manager & Build:** {{PACKAGE_MANAGER_AND_BUILD_TOOL}}
12
- - **Primary Transport:** {{TRANSPORT_PROTOCOL_AND_FRAMEWORK}}
13
- - **Persistence Engine:** {{DATABASE_ENGINE}} (Migrations via {{MIGRATION_TOOL}})
14
- - **Multi-Tenancy Isolation:** {{TENANCY_ISOLATION_MODEL}}
15
- - **Dynamic Extensibility:** Common Expression Language (CEL) / JSON Schema Draft 2020-12
16
- - **Observability:** OpenTelemetry (OTel) OTLP export over gRPC/HTTP
17
- - **Security & DevSecOps:** Semgrep SAST, Gitleaks, Trivy scanning, CycloneDX SBOM
18
-
19
- ---
20
-
21
- ## 🗂️ Project Structure
22
-
23
- ```
24
- .
25
- ├── specs/ # Canonical contract specifications
26
- │ ├── openapi/ # OpenAPI 3.1 REST specifications
27
- │ ├── protobuf/ # Protocol Buffers v3 definitions
28
- │ ├── schemas/ # Universal JSON Schema Draft 2020-12
29
- │ └── tokens/ # W3C DTCG Design Tokens
30
- ├── src/ # Hexagonal Application Source
31
- │ ├── domain/ # Core Invariant Domain (Entities, Value Objects)
32
- │ ├── ports/ # Primary (Use Cases) and Secondary (Repositories) Ports
33
- │ └── adapters/ # Ingress (HTTP/gRPC) and Egress (SQL/Broker) Adapters
34
- ├── tests/
35
- │ ├── unit/ # Fast unit tests using test doubles
36
- │ ├── integration/ # Adapter tests with transactional rollback
37
- │ ├── contracts/ # Consumer contract tests (Pact)
38
- │ └── acceptance/ # BDD Gherkin / Cucumber features
39
- ├── deploy/ # OCI Distroless Dockerfiles & Compose manifests
40
- ├── docs/rules/ # 28 cohesive single-responsibility architectural rules
41
- ├── memory.md # Master memory hub & Lightweight ADR ledger
42
- └── AGENTS.md # Lean agentic directives (< 120 lines)
43
- ```
44
-
45
- ---
46
-
47
- ## ⚡ Quickstart & Development
48
-
49
- ### 1. Prerequisites
50
- - {{PREREQUISITES_LIST}}
51
- - Docker & Docker Compose
52
-
53
- ### 2. Environment Setup
54
- ```bash
55
- cp .env.example .env
56
- ```
57
-
58
- ### 3. Install Dependencies
59
- ```bash
60
- {{INSTALL_COMMAND}}
61
- ```
62
-
63
- ### 4. Run Development Environment
64
- ```bash
65
- {{DEV_RUN_COMMAND}}
66
- ```
67
-
68
- ### 5. Run Tests & Verification
69
- ```bash
70
- {{TEST_COMMAND}}
71
- ```
72
-
73
- ---
74
-
75
- ## 🏛️ Architecture Governance & Decisions
76
-
77
- This project is governed by the **28 Cohesive Domain Rules** located in `docs/rules/` and Architectural Decision Records in `memory.md`:
78
- - **ADR Ledger:** See `memory.md` for project-specific Architectural Decision Records.
79
- - **Architectural Rules:** See `docs/rules/` for TDD, Clean Code, Multi-Tenancy, Database Design, and DevSecOps directives.
1
+ # {{PROJECT_NAME}}
2
+
3
+ > **{{PROJECT_TAGLINE_OR_MISSION}}**
4
+
5
+ ---
6
+
7
+ ## 🌟 Architecture & Stack
8
+
9
+ - **Architecture:** Hexagonal (Ports & Adapters) with strict systemic atomicity and zero-downtime database patterns.
10
+ - **Language & Runtime:** {{LANGUAGE_AND_RUNTIME}}
11
+ - **Package Manager & Build:** {{PACKAGE_MANAGER_AND_BUILD_TOOL}}
12
+ - **Primary Transport:** {{TRANSPORT_PROTOCOL_AND_FRAMEWORK}}
13
+ - **Persistence Engine:** {{DATABASE_ENGINE}} (Migrations via {{MIGRATION_TOOL}})
14
+ - **Multi-Tenancy Isolation:** {{TENANCY_ISOLATION_MODEL}}
15
+ - **Dynamic Extensibility:** Common Expression Language (CEL) / JSON Schema Draft 2020-12
16
+ - **Observability:** OpenTelemetry (OTel) OTLP export over gRPC/HTTP
17
+ - **Security & DevSecOps:** Semgrep SAST, Gitleaks, Trivy scanning, CycloneDX SBOM
18
+
19
+ ---
20
+
21
+ ## 🗂️ Project Structure
22
+
23
+ ```
24
+ .
25
+ ├── specs/ # Canonical contract specifications
26
+ │ ├── openapi/ # OpenAPI 3.1 REST specifications
27
+ │ ├── protobuf/ # Protocol Buffers v3 definitions
28
+ │ ├── schemas/ # Universal JSON Schema Draft 2020-12
29
+ │ └── tokens/ # W3C DTCG Design Tokens
30
+ ├── src/ # Hexagonal Application Source
31
+ │ ├── domain/ # Core Invariant Domain (Entities, Value Objects)
32
+ │ ├── ports/ # Primary (Use Cases) and Secondary (Repositories) Ports
33
+ │ └── adapters/ # Ingress (HTTP/gRPC) and Egress (SQL/Broker) Adapters
34
+ ├── tests/
35
+ │ ├── unit/ # Fast unit tests using test doubles
36
+ │ ├── integration/ # Adapter tests with transactional rollback
37
+ │ ├── contracts/ # Consumer contract tests (Pact)
38
+ │ └── acceptance/ # BDD Gherkin / Cucumber features
39
+ ├── deploy/ # OCI Distroless Dockerfiles & Compose manifests
40
+ ├── docs/rules/ # 28 cohesive single-responsibility architectural rules
41
+ ├── memory.md # Master memory hub & Lightweight ADR ledger
42
+ └── AGENTS.md # Lean agentic directives (< 120 lines)
43
+ ```
44
+
45
+ ---
46
+
47
+ ## ⚡ Quickstart & Development
48
+
49
+ ### 1. Prerequisites
50
+ - {{PREREQUISITES_LIST}}
51
+ - Docker & Docker Compose
52
+
53
+ ### 2. Environment Setup
54
+ ```bash
55
+ cp .env.example .env
56
+ ```
57
+
58
+ ### 3. Install Dependencies
59
+ ```bash
60
+ {{INSTALL_COMMAND}}
61
+ ```
62
+
63
+ ### 4. Run Development Environment
64
+ ```bash
65
+ {{DEV_RUN_COMMAND}}
66
+ ```
67
+
68
+ ### 5. Run Tests & Verification
69
+ ```bash
70
+ {{TEST_COMMAND}}
71
+ ```
72
+
73
+ ---
74
+
75
+ ## 🏛️ Architecture Governance & Decisions
76
+
77
+ This project is governed by the **28 Cohesive Domain Rules** located in `docs/rules/` and Architectural Decision Records in `memory.md`:
78
+ - **ADR Ledger:** See `memory.md` for project-specific Architectural Decision Records.
79
+ - **Architectural Rules:** See `docs/rules/` for TDD, Clean Code, Multi-Tenancy, Database Design, and DevSecOps directives.