jioogen 0.2.7 → 0.2.9

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 (177) hide show
  1. package/authoring-pack/agent/core.md +574 -0
  2. package/authoring-pack/agent/discovery.md +21 -0
  3. package/authoring-pack/agent/prd.md +37 -0
  4. package/authoring-pack/agent/specs.md +47 -0
  5. package/authoring-pack/agent/tasks.md +59 -0
  6. package/authoring-pack/knowledge/catalog.generated.json +1428 -0
  7. package/authoring-pack/knowledge/library/_TEMPLATE.md +30 -0
  8. package/authoring-pack/knowledge/library/discovery/discovery-standard.md +157 -0
  9. package/authoring-pack/knowledge/library/discovery/progressive-understanding.md +64 -0
  10. package/authoring-pack/knowledge/library/gamedev/K-GAME-001-discovery-game.md +60 -0
  11. package/authoring-pack/knowledge/library/gamedev/K-GAME-101-prd-game.md +62 -0
  12. package/authoring-pack/knowledge/library/gamedev/disciplines/game-ai.md +33 -0
  13. package/authoring-pack/knowledge/library/gamedev/disciplines/game-feel.md +32 -0
  14. package/authoring-pack/knowledge/library/gamedev/disciplines/game-ui-ux.md +32 -0
  15. package/authoring-pack/knowledge/library/gamedev/disciplines/level-design.md +31 -0
  16. package/authoring-pack/knowledge/library/gamedev/disciplines/procedural-gen.md +33 -0
  17. package/authoring-pack/knowledge/library/gamedev/disciplines/save-systems.md +32 -0
  18. package/authoring-pack/knowledge/library/gamedev/genres/card-game.md +33 -0
  19. package/authoring-pack/knowledge/library/gamedev/genres/fps-shooter.md +34 -0
  20. package/authoring-pack/knowledge/library/gamedev/genres/platformer.md +37 -0
  21. package/authoring-pack/knowledge/library/gamedev/genres/puzzle.md +32 -0
  22. package/authoring-pack/knowledge/library/gamedev/genres/roguelike.md +34 -0
  23. package/authoring-pack/knowledge/library/gamedev/genres/rpg.md +33 -0
  24. package/authoring-pack/knowledge/library/gamedev/genres/survival-crafting.md +34 -0
  25. package/authoring-pack/knowledge/library/gamedev/genres/tower-defense.md +33 -0
  26. package/authoring-pack/knowledge/library/gamedev/genres/visual-novel.md +32 -0
  27. package/authoring-pack/knowledge/library/prd/acceptance.md +54 -0
  28. package/authoring-pack/knowledge/library/prd/capability-coverage.md +37 -0
  29. package/authoring-pack/knowledge/library/prd/decomposition.md +80 -0
  30. package/authoring-pack/knowledge/library/prd/enterprise-checklist.md +53 -0
  31. package/authoring-pack/knowledge/library/prd/feature-hierarchy.md +105 -0
  32. package/authoring-pack/knowledge/library/prd/prd-standard.md +175 -0
  33. package/authoring-pack/knowledge/library/prd/self-check.md +129 -0
  34. package/authoring-pack/knowledge/library/prd/writing-style.md +74 -0
  35. package/authoring-pack/knowledge/library/qa/gate-reference.md +119 -0
  36. package/authoring-pack/knowledge/library/specs/specs-standard.md +87 -0
  37. package/authoring-pack/knowledge/library/tasks/conditional-coverage-a.md +34 -0
  38. package/authoring-pack/knowledge/library/tasks/conditional-coverage-b.md +63 -0
  39. package/authoring-pack/knowledge/library/tasks/tasks-standard.md +98 -0
  40. package/authoring-pack/knowledge/library/ui/K-UIX-001-universal-uiux-principles.md +66 -0
  41. package/authoring-pack/knowledge/library/ui/K-UIX-002-visual-ux-qa-rubric.md +65 -0
  42. package/authoring-pack/knowledge/library/ui/K-UIX-003-adaptive-ui-authoring.md +66 -0
  43. package/authoring-pack/manifest.json +230 -0
  44. package/authoring-pack/skills/business-discovery/SKILL.md +147 -0
  45. package/authoring-pack/skills/business-discovery/skill.yaml +22 -0
  46. package/authoring-pack/skills/creative-discovery/SKILL.md +122 -0
  47. package/authoring-pack/skills/creative-discovery/skill.yaml +22 -0
  48. package/authoring-pack/skills/karpathy-guidelines/SKILL.md +96 -0
  49. package/authoring-pack/skills/karpathy-guidelines/skill.yaml +19 -0
  50. package/authoring-pack/skills/prd-authoring/SKILL.md +384 -0
  51. package/authoring-pack/skills/prd-authoring/skill.yaml +33 -0
  52. package/authoring-pack/skills/product-discovery/SKILL.md +258 -0
  53. package/authoring-pack/skills/product-discovery/skill.yaml +25 -0
  54. package/authoring-pack/skills/specs-authoring/SKILL.md +250 -0
  55. package/authoring-pack/skills/specs-authoring/skill.yaml +32 -0
  56. package/authoring-pack/skills/tasks-authoring/SKILL.md +278 -0
  57. package/authoring-pack/skills/tasks-authoring/skill.yaml +32 -0
  58. package/dist/index.js +4255 -1542
  59. package/dist/index.js.map +4 -4
  60. package/package.json +7 -4
  61. package/skills-pack/baseline/karpathy-guidelines/SKILL.md +96 -0
  62. package/skills-pack/baseline/karpathy-guidelines/skill.yaml +19 -0
  63. package/skills-pack/ui-quality/THIRD-PARTY-NOTICE.md +32 -0
  64. package/skills-pack/ui-quality/impeccable/LICENSE +191 -0
  65. package/skills-pack/ui-quality/impeccable/SKILL.md +93 -0
  66. package/skills-pack/ui-quality/impeccable/reference/adapt.md +318 -0
  67. package/skills-pack/ui-quality/impeccable/reference/adapt.native.md +58 -0
  68. package/skills-pack/ui-quality/impeccable/reference/android.md +46 -0
  69. package/skills-pack/ui-quality/impeccable/reference/animate.md +106 -0
  70. package/skills-pack/ui-quality/impeccable/reference/audit.md +150 -0
  71. package/skills-pack/ui-quality/impeccable/reference/audit.native.md +143 -0
  72. package/skills-pack/ui-quality/impeccable/reference/bolder.md +33 -0
  73. package/skills-pack/ui-quality/impeccable/reference/clarify.md +94 -0
  74. package/skills-pack/ui-quality/impeccable/reference/colorize.md +86 -0
  75. package/skills-pack/ui-quality/impeccable/reference/component-review.md +63 -0
  76. package/skills-pack/ui-quality/impeccable/reference/craft-floor.md +44 -0
  77. package/skills-pack/ui-quality/impeccable/reference/craft.md +5 -0
  78. package/skills-pack/ui-quality/impeccable/reference/critique-rubric.md +496 -0
  79. package/skills-pack/ui-quality/impeccable/reference/critique.md +327 -0
  80. package/skills-pack/ui-quality/impeccable/reference/degraded/asset-producer.md +42 -0
  81. package/skills-pack/ui-quality/impeccable/reference/degraded/documenter.md +24 -0
  82. package/skills-pack/ui-quality/impeccable/reference/degraded/finish-reviewer.md +38 -0
  83. package/skills-pack/ui-quality/impeccable/reference/degraded/manual-edit-applier.md +93 -0
  84. package/skills-pack/ui-quality/impeccable/reference/degraded/motion-reviewer.md +29 -0
  85. package/skills-pack/ui-quality/impeccable/reference/delight.md +70 -0
  86. package/skills-pack/ui-quality/impeccable/reference/distill.md +111 -0
  87. package/skills-pack/ui-quality/impeccable/reference/doctor.md +54 -0
  88. package/skills-pack/ui-quality/impeccable/reference/document.md +418 -0
  89. package/skills-pack/ui-quality/impeccable/reference/extract.md +69 -0
  90. package/skills-pack/ui-quality/impeccable/reference/foundations.md +44 -0
  91. package/skills-pack/ui-quality/impeccable/reference/generate.md +101 -0
  92. package/skills-pack/ui-quality/impeccable/reference/harden.md +362 -0
  93. package/skills-pack/ui-quality/impeccable/reference/hooks.md +120 -0
  94. package/skills-pack/ui-quality/impeccable/reference/init.md +133 -0
  95. package/skills-pack/ui-quality/impeccable/reference/ios.md +51 -0
  96. package/skills-pack/ui-quality/impeccable/reference/layout.md +84 -0
  97. package/skills-pack/ui-quality/impeccable/reference/live-setup.md +104 -0
  98. package/skills-pack/ui-quality/impeccable/reference/live.md +341 -0
  99. package/skills-pack/ui-quality/impeccable/reference/mode-operate.md +21 -0
  100. package/skills-pack/ui-quality/impeccable/reference/mode-persuade.md +19 -0
  101. package/skills-pack/ui-quality/impeccable/reference/mode-read.md +21 -0
  102. package/skills-pack/ui-quality/impeccable/reference/new-work-comp.md +24 -0
  103. package/skills-pack/ui-quality/impeccable/reference/new-work-world.md +20 -0
  104. package/skills-pack/ui-quality/impeccable/reference/new-work.md +124 -0
  105. package/skills-pack/ui-quality/impeccable/reference/onboard.md +235 -0
  106. package/skills-pack/ui-quality/impeccable/reference/operate.md +61 -0
  107. package/skills-pack/ui-quality/impeccable/reference/optimize.md +257 -0
  108. package/skills-pack/ui-quality/impeccable/reference/overdrive.md +127 -0
  109. package/skills-pack/ui-quality/impeccable/reference/polish.md +105 -0
  110. package/skills-pack/ui-quality/impeccable/reference/quieter.md +99 -0
  111. package/skills-pack/ui-quality/impeccable/reference/region-map.md +26 -0
  112. package/skills-pack/ui-quality/impeccable/reference/routing.md +24 -0
  113. package/skills-pack/ui-quality/impeccable/reference/shape.md +59 -0
  114. package/skills-pack/ui-quality/impeccable/reference/typeset.md +96 -0
  115. package/skills-pack/ui-quality/impeccable/reference/visualize.md +47 -0
  116. package/skills-pack/ui-quality/impeccable/scripts/VERSION +1 -0
  117. package/skills-pack/ui-quality/impeccable/scripts/command-metadata.json +98 -0
  118. package/skills-pack/ui-quality/impeccable/scripts/data/font-index-failures.json +121 -0
  119. package/skills-pack/ui-quality/impeccable/scripts/data/font-index.json +1 -0
  120. package/skills-pack/ui-quality/impeccable/scripts/engine-checksums.txt +9 -0
  121. package/skills-pack/ui-quality/impeccable/scripts/impeccable +319 -0
  122. package/skills-pack/ui-quality/impeccable/scripts/impeccable.cmd +354 -0
  123. package/skills-pack/ui-quality/impeccable/scripts/live-browser-dom.js +320 -0
  124. package/skills-pack/ui-quality/impeccable/scripts/live-browser-ignores.js +246 -0
  125. package/skills-pack/ui-quality/impeccable/scripts/live-browser-session.js +183 -0
  126. package/skills-pack/ui-quality/impeccable/scripts/live-browser.js +13901 -0
  127. package/skills-pack/ui-quality/impeccable/scripts/modern-screenshot.umd.js +14 -0
  128. package/skills-pack/ui-quality/impeccable/skill.yaml +25 -0
  129. package/skills-pack/ui-quality/ui-ux-pro-max/LICENSE +21 -0
  130. package/skills-pack/ui-quality/ui-ux-pro-max/SKILL.md +217 -0
  131. package/skills-pack/ui-quality/ui-ux-pro-max/data/app-interface.csv +33 -0
  132. package/skills-pack/ui-quality/ui-ux-pro-max/data/catalog-summary.json +78 -0
  133. package/skills-pack/ui-quality/ui-ux-pro-max/data/charts.csv +26 -0
  134. package/skills-pack/ui-quality/ui-ux-pro-max/data/colors.csv +193 -0
  135. package/skills-pack/ui-quality/ui-ux-pro-max/data/data-provenance.json +1396 -0
  136. package/skills-pack/ui-quality/ui-ux-pro-max/data/google-font-licenses.json +20185 -0
  137. package/skills-pack/ui-quality/ui-ux-pro-max/data/google-fonts.csv +1935 -0
  138. package/skills-pack/ui-quality/ui-ux-pro-max/data/icons.csv +106 -0
  139. package/skills-pack/ui-quality/ui-ux-pro-max/data/landing.csv +35 -0
  140. package/skills-pack/ui-quality/ui-ux-pro-max/data/motion.csv +18 -0
  141. package/skills-pack/ui-quality/ui-ux-pro-max/data/phosphor-icons-upstream.json +32582 -0
  142. package/skills-pack/ui-quality/ui-ux-pro-max/data/products.csv +193 -0
  143. package/skills-pack/ui-quality/ui-ux-pro-max/data/react-performance.csv +45 -0
  144. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/angular.csv +51 -0
  145. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  146. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/avalonia.csv +57 -0
  147. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  148. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/html-tailwind.csv +60 -0
  149. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/javafx.csv +76 -0
  150. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  151. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/laravel.csv +51 -0
  152. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/nextjs.csv +62 -0
  153. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/nuxt-ui.csv +84 -0
  154. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/nuxtjs.csv +68 -0
  155. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  156. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/react.csv +67 -0
  157. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/shadcn.csv +69 -0
  158. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/svelte.csv +56 -0
  159. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  160. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/threejs.csv +54 -0
  161. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/uno.csv +60 -0
  162. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/uwp.csv +56 -0
  163. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  164. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/winui.csv +60 -0
  165. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/wpf.csv +57 -0
  166. package/skills-pack/ui-quality/ui-ux-pro-max/data/styles.csv +90 -0
  167. package/skills-pack/ui-quality/ui-ux-pro-max/data/typography.csv +75 -0
  168. package/skills-pack/ui-quality/ui-ux-pro-max/data/ui-reasoning.csv +193 -0
  169. package/skills-pack/ui-quality/ui-ux-pro-max/data/ux-guidelines.csv +121 -0
  170. package/skills-pack/ui-quality/ui-ux-pro-max/references/pro-rules.md +117 -0
  171. package/skills-pack/ui-quality/ui-ux-pro-max/references/quick-reference.md +257 -0
  172. package/skills-pack/ui-quality/ui-ux-pro-max/scripts/core.py +1053 -0
  173. package/skills-pack/ui-quality/ui-ux-pro-max/scripts/design_system.py +1668 -0
  174. package/skills-pack/ui-quality/ui-ux-pro-max/scripts/reasoning_contract.py +123 -0
  175. package/skills-pack/ui-quality/ui-ux-pro-max/scripts/search.py +201 -0
  176. package/skills-pack/ui-quality/ui-ux-pro-max/scripts/validate_data.py +1095 -0
  177. package/skills-pack/ui-quality/ui-ux-pro-max/skill.yaml +25 -0
@@ -0,0 +1,175 @@
1
+ ---
2
+ id: K-PRD-010
3
+ title: PRD Template
4
+ version: "1"
5
+ authority: standard
6
+ category: prd
7
+ kind: template
8
+ source: docs/knowledge/library/prd/prd-standard.md
9
+ ---
10
+
11
+ # PRD Authoring Standard
12
+
13
+ > Sumber: `docker/skills/prd-authoring/SKILL.md`. Diekstrak oleh Phase 5 (ADR-KNOW-0001).
14
+
15
+ ## Bentuk akhir: PRD yang dibaca manusia
16
+
17
+ PRD ini dibaca founder non-teknis lebih dulu, bukan validator. Anggaran panjang
18
+ adalah **target**, bukan gate: §1–§6 sekitar 120–180 baris; §7–§12 berupa tabel
19
+ rujukan yang boleh padat. Bila sebuah detail hanya berguna untuk programmer,
20
+ jangan taruh di §1–§6 — naikkan ke `specs/`.
21
+
22
+ Kerangka wajib (ringkas, bukan contoh isi):
23
+
24
+ ```markdown
25
+ # PRD — <Nama Produk>
26
+
27
+ ## 1. Product Overview
28
+ **Visi:** <satu kalimat, maksimal 20 kata>.
29
+ <2 paragraf: apa produknya, cara kerjanya dalam 3 langkah, dan pembedanya.>
30
+
31
+ ## 2. Problem & Opportunity
32
+ <3–5 paragraf pendek: siapa yang menderita, apa yang ia lakukan sekarang,
33
+ mengapa cara itu gagal, dan celah pasar yang dibuka.>
34
+
35
+ ## 3. Goals & Success Criteria
36
+ <Tabel 3–5 baris: Tujuan | Metrik | Target | Cara ukur.>
37
+
38
+ ## 4. Target Users & Roles
39
+ <Per peran: siapa, kebutuhannya, dan hak aksesnya — 2–3 baris per peran.>
40
+
41
+ ## 5. Core Features
42
+ ### Fase 1 — <tema fase>
43
+ #### 1. <Fitur Utama>
44
+ **Untuk** <aktor> · **Masalah** <1 kalimat> · **Hasil** <1 kalimat>
45
+ **Cara kerja:** <1–2 kalimat> · **Aturan:** BR-00X · **REQ:** REQ-00X–REQ-00Y
46
+
47
+ - **SUBFEATURE-001 — <nama>** — <perilaku>; Selesai bila: <observable outcome>. `Status: Belum mulai`
48
+
49
+ ## 6. User Journeys & Flows
50
+ **Alur Utama — <nama>** (target: <waktu/efisiensi>)
51
+ 1. <langkah> → 2. <langkah> → … (tanpa batas kaku; pecah per flow/komponen bila panjang)
52
+
53
+ **Alur Sampingan**
54
+ - <skenario sekunder>: <apa yang terjadi>.
55
+
56
+ **Status pesanan:** A → B → C. Cabang: D (alasan), E (alasan).
57
+
58
+ **Lifecycle Matrix** (wajib untuk setiap entity/flow yang punya state; stateless → `N/A — alasan`):
59
+
60
+ | Entity | States | Transitions (event → next state) | Guards | Terminal | Failure/Recovery |
61
+ |---|---|---|---|---|---|
62
+ | <Entity> | <state awal → … → terminal> | <event: A → B> | <syarat transisi> | <state akhir> | <retry/rollback/kompensasi> |
63
+
64
+ ### User Mental Model
65
+
66
+ Wajib untuk aktor utama; produk tanpa interaksi → `N/A — alasan`. Daftar persona saja tidak cukup.
67
+
68
+ | Aktor | Tujuan | Ekspektasi saat mulai | Langkah mental | Kosakata user | Titik bingung | Sinyal sukses/trust |
69
+ |---|---|---|---|---|---|---|
70
+ | <Aktor> | <hasil yang ingin dicapai> | <apa yang diasumsikan user> | <langkah yang user pikirkan> | <istilah user> | <momen rawan salah paham> | <bukti bahwa aksi berhasil> |
71
+
72
+ ### Flow Coverage
73
+
74
+ Wajib; setiap flow punya ID stabil `FLOW-XXX`, langkah detail diturunkan di specs.
75
+
76
+ | Flow ID | Actor | Trigger | Preconditions | Steps | Screens | Outcome | Alternative | Failure | Exit |
77
+ |---|---|---|---|---|---|---|---|---|---|
78
+ | FLOW-001 | <actor> | <entry point> | <state awal> | STEP-01 → STEP-02 | <route/page> | <hasil> | <jalur alternatif> | <jalur gagal> | <exit> |
79
+
80
+ ## 7. Functional Requirements
81
+ <Tabel: ID | Kebutuhan | Fase | Prioritas | Aturan>
82
+
83
+ ## 8. Business Rules
84
+ <Tabel: ID | Aturan | Efek bila dilanggar | Fase>
85
+
86
+ ## 9. Scope & Boundaries
87
+ <Tabel: Termasuk / Di luar + alasan satu baris.>
88
+
89
+ ## 10. Quality & Constraints
90
+ <Tabel: ID | Batasan | Cara ukur.>
91
+
92
+ Panduan kontekstual (bukan kewajiban universal): bila produk memuat data pengguna, pertimbangkan performa (target terukur), keamanan (auth), privasi/data retention, availability (jika layanan terus-menerus), observability (jika multi-komponen). Setiap item wajib punya "Cara ukur" yang jelas; item yang tidak berlaku ditandai `N/A` + justifikasi, bukan diisi karangan. Jangan mengarang target angka — pakai SLO sistem atau kutipan user.
93
+
94
+ **Isolasi akses (bila relevan).** Bila produk multi-tenant, multi-proyek, atau punya data yang tidak boleh dibaca lintas pemilik, tulis batasnya sebagai ID stabil `ISOLATION-XXX` di §8 (aturan) atau §10 (constraint), sertakan `BR-XXX`/`NFR-XXX` pasangannya, dan rujuk di ledger `[8] Permissions & Boundaries`. Contoh: `ISOLATION-001 — Setiap query proyek di-scope owner_id; user tidak bisa membaca proyek milik user lain.` Produk single-tenant yang tidak punya batas ini tidak membuat ID — cukup `N/A` beralasan. Jangan mengarang isolasi yang tidak diminta user.
95
+
96
+ ## 11. Acceptance & Outcomes
97
+ <Tabel: AC | Skenario | Hasil | Tidak boleh | Verifikasi | REQ>
98
+
99
+ ## 12. Decisions & Unknowns
100
+ <Tabel keputusan, tabel asumsi berlabel, tabel pertanyaan terbuka.>
101
+
102
+
103
+ ## Domain Coverage Ledger
104
+ [1] Actors & Roles : RESOLVED (…)
105
+ [2] Intent & Goals : RESOLVED (…)
106
+ [3] Entities & Concepts : RESOLVED (…)
107
+ [4] Relationships : RESOLVED (…)
108
+ [5] Business Rules : RESOLVED (…)
109
+ [6] Lifecycles & State Machines : RESOLVED (…)
110
+ [7] Workflows & Sequences : RESOLVED (…)
111
+ [8] Permissions & Boundaries : RESOLVED (…)
112
+ [9] Data & Persistence : RESOLVED (…)
113
+ [10] Events & Triggers : RESOLVED (…)
114
+ [11] Exceptions & Failure Paths : RESOLVED (…)
115
+ [12] Verification & Outcomes : RESOLVED (…)
116
+ ```
117
+
118
+ `EXPLICIT_NA (alasan)` replaces `RESOLVED` only when the domain truly does not
119
+ apply; a finished PRD never keeps `UNTOUCHED` or `IN_PROGRESS`.
120
+
121
+ ## Teknologi & Asumsi (dari user)
122
+
123
+ Jika user menyebutkan stack teknologi di chat (contoh: *"Backend Go + SQLite, frontend React"*), catat sebagai **ASSUMPTION** tercatat di `decisionLogs` proyek ini, dengan format:
124
+
125
+ ASSUMPTION: Teknologi Stack → Go + SQLite + React (dikonfirmasi user pada giliran chat)
126
+
127
+ **Penjelasan:**
128
+
129
+ 1. **Catatan permanen:** Asumsi ini akan terus tersedia di tiap giliran review/build (meski session fresh via `/clear`), karena dibaca dari `decisionLogs`, bukan dari riwayat chat.
130
+
131
+ 2. **Penerapan di PRD:** Section 12 boleh memuat satu baris pendek yang merujuk pada assumption tersebut, misal:
132
+ - `ASSUMPTION: Teknologi Stack → Go + SQLite + React (dikonfirmasi user)`.
133
+ - Atau sekadar `ASSUMPTION: Go + SQLite + React`.
134
+
135
+ 3. **Bukan implementasi:** Jangan menulis DDL, skema DB, payload endpoint, atau konfigurasi lengkap di PRD. Teknologi boleh disebut sebagai **keputusan, constraint, atau prinsip** (`CONFIRMED_DECISION` bila user menentukannya, `ASSUMPTION` bila didelegasikan); resep lengkapnya dilanjutkan ke `specs/`.
136
+
137
+ 4. **Jika user menolak direkam:** Bila user menolak dicek asumsinya, review akan "buta" soal stack dan bergantung pada riwayat chat (bukan kontrak). Tandai dengan `ASSUMPTION: penolakan user`.
138
+
139
+ 5. **Varian game:** ganti contoh stack ke domain game (mis. `ASSUMPTION: Teknologi Stack → Unity 2D + C# + Sprite Engine (dikonfirmasi user)`); struktur dan aturan tetap sama. Contoh §12 game:
140
+ ```markdown
141
+ ## 12. Decisions & Unknowns
142
+
143
+ - ASSUMPTION: Teknologi Stack → Unity 2D + C# + Sprite Engine (dikonfirmasi user).
144
+ - OPEN QUESTION: Desain level apa yang tepat untuk mekanik tertentu? (Butuh diskusi).
145
+ - … (keputusan/pertanyaan lainnya)
146
+ ```
147
+
148
+ ## Lensa bentuk produk
149
+
150
+ Bila instruksi giliran membawa `Profil produk: ...`, itu fakta yang sudah dikonfirmasi — jangan tanya ulang dan jangan menyimpang darinya. Sesuaikan isi, bukan strukturnya:
151
+
152
+ - §1 menyebut komponen produk (primary + komponen lain) dan surface-nya.
153
+ - §4 peran mengikuti surface: operator/CI untuk headless, pemain untuk game, developer untuk library.
154
+ - §5 tiap fitur menyebut komponen pemiliknya; fitur non-UI tidak perlu bahasa layar.
155
+ - §6 alur mengikuti bentuk nyata (CLI command, request/response, game loop) — browser hanya bila surface-nya web/mobile/desktop.
156
+ - §10/§11 verifikasi mengikuti bentuk (`verificationCommand`, exit code, benchmark) — bukan selalu "cek di browser".
157
+
158
+ ## The 12 canonical sections
159
+
160
+ Use these headings verbatim. The number is what the validator matches on; keep it
161
+ exact.
162
+
163
+ ```markdown
164
+ ## 1. Product Overview
165
+ ## 2. Problem & Opportunity
166
+ ## 3. Goals & Success Criteria
167
+ ## 4. Target Users & Roles
168
+ ## 5. Core Features
169
+ ## 6. User Journeys & Flows
170
+ ## 7. Functional Requirements
171
+ ## 8. Business Rules
172
+ ## 9. Scope & Boundaries
173
+ ## 10. Quality & Constraints
174
+ ## 11. Acceptance & Outcomes
175
+ ## 12. Decisions & Unknowns
@@ -0,0 +1,129 @@
1
+ ---
2
+ id: K-PRD-015
3
+ title: PRD Self-Check
4
+ version: "1"
5
+ authority: standard
6
+ category: prd
7
+ kind: standard
8
+ source: docs/knowledge/library/prd/self-check.md
9
+ ---
10
+
11
+ # Self-check
12
+
13
+ > Sumber: `docs/registered-jioogen-skills/prd-authoring.md`. Diekstrak oleh gap closure (ADR-KNOW-0001).
14
+
15
+ ## Self-check & Auto-Heal sebelum turn selesai
16
+
17
+ Kamu adalah pemilik PRD. Sebelum menutup turn, jalankan siklus yang sama dengan
18
+ skill lain:
19
+
20
+ **INSPECT** — baca `PRD.md` + ledger. **DIAGNOSE** — periksa daftar di bawah.
21
+ **FIX** — perbaiki sendiri di turn ini. **VALIDATE** — baca ulang dan pastikan
22
+ `prdLedgerIssues` + `lintPrd` bersih (12 seksi, seksi kosong/N-A, dekomposisi
23
+ fitur, §7→§11).
24
+
25
+ Kriteria semantik di bawah adalah bagian dari DIAGNOSE. **Penuhi mereka saat
26
+ menulis** — draft yang lolos self-check tidak perlu reviewer terpisah. Sebelum
27
+ menutup turn, periksa draftmu terhadap daftar ini dan perbaiki yang gagal —
28
+ JANGAN menyerahkannya ke tahap berikutnya:
29
+
30
+ 1. **Setiap fitur §5 berakar pada fakta.** Cocokkan tiap fitur dengan Scope yang
31
+ dikonfirmasi (fakta #4 dari ledger keputusan). Fitur yang tidak diminta user
32
+ = temuan. Kalau sebuah fitur benar-benar perlu tapi tidak ada di scope,
33
+ tandai `ASSUMPTION:` di §12 — jangan biarkan reviewer yang menemukannya.
34
+ 2. **Domain Coverage Ledger jujur dan tertutup.** Baris `RESOLVED` yang seksinya
35
+ kosong, minim, atau melebar dari topik = temuan WARNING. Setiap baris [1]–[12]
36
+ harus merefleksikan isi dokumen yang benar-benar ada, memakai nama struktur
37
+ domain kanonik (bukan judul seksi PRD), dan tidak menyisakan `UNTOUCHED` atau
38
+ `IN_PROGRESS` pada PRD hasil Draft/Revisi. Gap non-material ditutup sebagai
39
+ `RESOLVED (ASSUMPTION: <alasan>)`, bukan ditahan atau ditanyakan ke user.
40
+ 3. **Keputusan yang sudah terkonfirmasi diterapkan, bukan dibuka lagi.** Daftar
41
+ keputusan settled ada di instruksi giliran (`CONFIRMED_DECISION` /
42
+ `ASSUMPTION`). Terapkan nilainya di seksi yang relevan; jangan menulis PRD
43
+ yang berperilaku seolah keputusan itu belum ada. `TENTATIVE` (preferensi) boleh
44
+ dipakai sebagai default sementara tapi jangan diklaim sebagai keputusan user;
45
+ `DISMISSED` jangan diangkat lagi; `SUPERSEDED` hanya riwayat.
46
+ 4. **Goals terukur, actors nyata, scope jujur.** §3 memuat metrik + target +
47
+ cara ukur; §4 memuat peran yang benar-benar berinteraksi (jangan menambah
48
+ peran di luar confirmed actors tanpa `ASSUMPTION:`); §9 memisahkan
49
+ termasuk/di luar dengan alasan satu baris.
50
+ 5. **BR-XXX dan REQ-XXX tidak saling bertentangan.** Setiap BR punya efek jelas,
51
+ §11 memverifikasinya, dan setiap AC merujuk REQ yang ada. Kontradiksi ID =
52
+ temuan.
53
+ 6. **§11 observable.** Setiap AC memuat kondisi awal, pemicu, hasil, cara
54
+ verifikasi — bukan klaim ("cepat", "mudah") tanpa angka. Angka waktu hanya
55
+ SLO sistem atau kutipan user; latency UI karangan = temuan.
56
+ 7. **Tidak ada skala/compliance/integrasi/biaya yang dikarang.** Multi-tenancy,
57
+ SOC 2, partner API, cloud cost yang user tidak pernah sebut = temuan. Kalau
58
+ produk ini jelas berimplikasi biaya berulang (cloud, API berbayar, store),
59
+ tulis sendiri sebagai `ASSUMPTION:` di §12 — jangan tunggu reviewer
60
+ mengangkatnya.
61
+ 8. **Unknown berlabel, bukan dihaluskan.** Semua gap materi tersisa hidup di
62
+ §12 sebagai `ASSUMPTION:` atau `OPEN QUESTION:` — tidak ada klaim percaya
63
+ diri yang menyembunyikan keputusan yang belum dibuat.
64
+ 9. **Produk multi-komponen: kontrak antar-komponen eksplisit.** Bila profil
65
+ produk memuat lebih dari satu komponen, §1/§5/§6 menjelaskan siapa punya apa
66
+ dan bagaimana mereka terhubung.
67
+ 10. **Stack teknologi punya jejak ledger bila disebut spesifik.** PRD yang
68
+ menyebut stack spesifik tanpa jejak `CONFIRMED_DECISION`/`ASSUMPTION` di
69
+ ledger = temuan. Prinsip/constraint tanpa stack spesifik tidak butuh jejak.
70
+ 11. **Satu istilah, satu arti.** Konsep yang sama memakai nama yang sama di
71
+ §5/§7/§8 (jangan "kasbon" di §7 lalu "poin" di §5), dan hanya ada satu
72
+ identitas login — username **atau** email, tidak keduanya. Kontradiksi
73
+ istilah = temuan.
74
+ 12. **Keputusan tier-2 terjawab atau ber-default.** Setiap keputusan mahal yang
75
+ tersentuh (kontrak §4 tier 2 — lihat "Parameter minimum") tercatat
76
+ `CONFIRMED_DECISION` atau `ASSUMPTION: default = …` di ledger; `OPEN
77
+ QUESTION` tanpa default = temuan.
78
+ 13. **Batasan kualitas terukur dan konsisten.** Setiap item di §10 punya kolom
79
+ "Cara ukur" yang jelas; angka jumlah AC yang diklaim di §12 (mis.
80
+ "AC-01–AC-18") harus cocok dengan jumlah baris AC di §11; header kolom §11
81
+ memakai satu prefix konsisten (REQ atau QC) sesuai isi, tidak mencampur
82
+ tanpa alasan.
83
+ 14. **Lifecycle lengkap, bukan satu kalimat.** Setiap entity/flow stateful punya
84
+ baris **Lifecycle Matrix** di §6 (states, transitions + event, guards,
85
+ terminal, failure/recovery); produk stateless menulis `N/A — <alasan>`.
86
+ Ledger `[6] Lifecycles & State Machines` harus merujuk matriks itu.
87
+ 15. **User Mental Model lengkap.** Aktor utama punya baris **User Mental Model**
88
+ di §6: tujuan, ekspektasi, langkah mental, kosakata user, titik bingung, dan
89
+ sinyal sukses/trust. Ledger `[1] Actors & Roles` harus merujuk tabel itu —
90
+ daftar persona saja tidak cukup.
91
+ 16. **Flow Coverage lengkap.** Setiap flow punya `FLOW-XXX` dan baris **Flow
92
+ Coverage** di §6 (actor, trigger, preconditions, langkah `STEP-XX`, screens,
93
+ outcome, alternative, failure, exit). Ledger `[7] Workflows & Sequences`
94
+ harus merujuk tabel itu — narasi alur saja tidak cukup.
95
+ 17. **Isolasi akses eksplisit bila relevan.** Produk multi-tenant/multi-proyek
96
+ yang menyimpan data milik pihak berbeda wajib punya `ISOLATION-XXX` di §8/§10
97
+ (batas + penegakan + requirement pasangan), dirujuk ledger `[8] Permissions &
98
+ Boundaries`, dan dicerminkan `specs/` `## Isolation Coverage` + owner task
99
+ `isolationRefs`. Produk single-tenant menulis `N/A — <alasan>`; jangan
100
+ mengarang isolasi yang tidak diminta.
101
+ 18. **Checklist enterprise (bila sinyal berat aktif).** Bila sinyal berat aktif
102
+ (`regulated`/`extensive`, `audienceTier` business/internal, atau penanda
103
+ cabang/audit/SLA/regulasi), keenam dimensi enterprise sudah berstatus konten
104
+ di §10 (dengan "Cara ukur"), `N/A` + alasan, atau `ASSUMPTION:` di §12 —
105
+ tidak ada yang kosong.
106
+ 19. **Subfeature coverage lengkap.** Setiap `#### N. <Fitur Utama>` di §5 punya
107
+ minimal satu deklarasi `SUBFEATURE-\d{3,}`; setiap subfeature punya finish
108
+ line `Selesai bila:` (atau `Done when:`), berakar pada minimal satu
109
+ `REQ`/`BR`, dan ID-nya unik global (tidak dipakai ulang di feature lain).
110
+ 20. **Subfeature = unit turunan.** Setiap `SUBFEATURE-XXX` di §5 dipetakan ke
111
+ Specs (heading atau tabel coverage) dan dimiliki minimal satu task; jangan
112
+ membiarkan subfeature PRD tanpa konsumen di `specs/`/`tasks/`.
113
+ 21. **Business rule terdefinisi, bukan hanya dirujuk.** Setiap `BR-XXX` yang
114
+ disebut di §5 (baris `Aturan:`) atau §7 punya baris definisi di tabel §8
115
+ (`ID | Aturan | Efek bila dilanggar | Fase`). Prosa §8 tanpa ID tidak
116
+ menutupnya; gate `BR_UNDEFINED` memblokir sisa rujukan. Bila produk memang
117
+ tanpa aturan bisnis, tulis `N/A — <alasan>` di §8, bukan aturan karangan.
118
+ 22. **Initial Context dihormati.** Bila `Bahasa produk` = multi-bahasa dan tidak
119
+ dikoreksi, §10/§11 memuat kebutuhan user-facing multi-bahasa + language
120
+ switcher. Nilai `scaleProfile`/`languageStrategy` yang tidak dikonfirmasi user
121
+ dan tidak ditimpa `shape`/ledger/brief ditulis `ASSUMPTION: <nilai> — dari
122
+ Context Awal New Project` di §12; jangan menyajikannya sebagai fakta confirmed.
123
+
124
+ Bila sebuah poin hanya bisa dipenuhi lewat keputusan user, jangan mengarangnya:
125
+ catat sebagai `ASSUMPTION: default = <alasan>` di §12 (aturan "Do not fabricate
126
+ product truth" tetap di atas segalanya — intent fidelity keras; solusi inventif
127
+ yang grounded pada intent user boleh, ditulis `ASSUMPTION: INVENTIVE <isi> —
128
+ grounded pada <intent>`, bukan fabrication). Self-check ini menjaga draft tetap
129
+ rapi sejak awal — review, bila user memintanya, tinggal memverifikasi.
@@ -0,0 +1,74 @@
1
+ ---
2
+ id: K-PRD-013
3
+ title: Writing Style
4
+ version: "1"
5
+ authority: standard
6
+ category: prd
7
+ kind: standard
8
+ source: docs/knowledge/library/prd/writing-style.md
9
+ ---
10
+
11
+ # Writing style
12
+
13
+ > Sumber: `docs/registered-jioogen-skills/prd-authoring.md`. Diekstrak oleh gap closure (ADR-KNOW-0001).
14
+
15
+ ## Gaya Penulisan & Format Naratif
16
+
17
+ **Suara.** Tulis seperti menjelaskan produk ke founder non-teknis: aktif,
18
+ konkret, tanpa jargon. Bahasa mengikuti user (default Indonesia); istilah teknis
19
+ English hanya bila user memakainya. Satu istilah = satu arti di seluruh dokumen.
20
+
21
+ **Batas yang membuat dokumen bisa dipindai:**
22
+
23
+ - Maksimal **20 kata per kalimat**, **3 kalimat per paragraf** (≤ 4 baris).
24
+ - Maksimal **1 kalimat per bullet**; maksimal satu tingkat sub-bullet.
25
+ - Mulai bullet dengan kata kerja: "Pilih tanggal", "Bayar", "Terima".
26
+ - Angka selalu konkret: "≤ 3 menit", "15 foto" — bukan "cepat" atau "banyak".
27
+ - Satu ide, satu tempat. Jangan ulangi isi §7/§8/§11 di badan §1–§6.
28
+ - `ASSUMPTION:`/`OPEN QUESTION:` tinggal di §12. Di badan dokumen maksimal satu
29
+ baris per seksi bila asumsi itu memengaruhi cara pembaca memahami isi.
30
+
31
+ **Dilarang:** "dan sebagainya", "berbagai", "secara wajar", "biasanya",
32
+ "seperti kebanyakan aplikasi", "mudah dan cepat" tanpa angka, serta kalimat
33
+ pasif berantai ("dilakukan oleh sistem terhadap pesanan yang telah dibuat").
34
+
35
+ **Contoh buruk → baik:**
36
+
37
+ - ✗ "Fotografer memiliki batas waktu tertentu untuk menerima pesanan; setelah
38
+ lewat, pesanan berpindah ke tahap berikutnya."
39
+ - ✓ "Pesanan yang tidak diambil dalam [batas waktu] otomatis dilepas ke radius
40
+ berikutnya."
41
+
42
+ - ✗ "Sistem melakukan proses penyiaran pesanan kepada fotografer yang berstatus
43
+ aktif di dalam radius yang telah ditentukan."
44
+ - ✓ "Setelah dibayar, pesanan disiarkan ke fotografer aktif di sekitar lokasi."
45
+
46
+ **Section 6.** Pisahkan **Alur Utama** (dengan target waktu/efisiensi) dan
47
+ **Alur Sampingan** (skenario sekunder/eksepsi). Alur Utama tidak dibatasi angka;
48
+ pecah per flow/komponen bila panjang. Tiap langkah satu baris; tulis sebagai
49
+ rantai `A → B → C`, bukan paragraf.
50
+
51
+ **Lifecycle tidak boleh berupa satu kalimat.** Untuk setiap entity/flow yang state-nya berubah (pesanan, sesi, langganan, pembayaran, tiket, job, dokumen), §6 wajib memuat **Lifecycle Matrix**: states, event + transisi, guard, terminal state, dan failure/recovery. Produk yang benar-benar stateless menulis `N/A — <alasan>`. Ledger `[6] Lifecycles & State Machines` wajib merujuk matriks ini, bukan sekadar menyebut “ada status”.
52
+
53
+ **User Mental Model bukan daftar persona.** §6 wajib memuat heading `### User Mental Model` beserta tabelnya untuk aktor utama: tujuan, ekspektasi saat mulai, langkah mental, kosakata user, titik bingung, dan sinyal sukses/trust. Tujuannya menangkap cara user *berpikir*, bukan hanya apa yang ia klik. Ledger `[1] Actors & Roles` wajib merujuk tabel ini; profil aktor tanpa mental model belum RESOLVED.
54
+
55
+ **Flow Coverage bukan daftar alur prosa.** Setiap flow dalam scope wajib punya ID stabil `FLOW-XXX` dan tabel di bawah heading `### Flow Coverage` pada §6: actor, trigger, precondition, langkah (`STEP-XX`), screen, outcome, alternative, failure, exit. Flow tanpa ID/tabel belum RESOLVED. Langkah detail diturunkan ke `specs/` dan dipetakan ke task; jangan mengarang flow di luar PRD.
56
+
57
+ **WHAT + WHY + HOW (prinsip), lunak.** Prioritas PRD tetap WHAT + WHY — masalah,
58
+ user, alur, requirement, dan aturan bisnis. PRD boleh memuat HOW **sebatas
59
+ prinsip, keputusan, dan constraint**, bukan resep implementasi:
60
+
61
+ - **Prinsip arsitektur** — mis. modular boundary, single source of truth,
62
+ offline-first, API-first, managed-service first.
63
+ - **Constraint yang mengikat** — integrasi wajib, platform, offline/latency,
64
+ kepatuhan, data residency, lock-in sistem existing, atau stack yang sudah
65
+ dikonfirmasi user.
66
+ - **Anti-goal eksplisit** — mis. "tanpa microservices di baseline", "tanpa vendor X".
67
+
68
+ Letakkan HOW (prinsip) di **§10 Quality & Constraints** dan **§12 Decisions &
69
+ Unknowns**; jangan menyebarkannya ke §5/§7 sebagai detail implementasi. Tulis
70
+ satu-dua baris + alasan produknya; jangan menjelaskan mekanismenya. **Resep HOW
71
+ tetap milik `specs/`**: DDL/skema penuh, payload endpoint, tabel stack, diagram,
72
+ struktur folder/modul, dan detail implementasi lain yang tidak mengubah outcome
73
+ user. Keputusan teknis yang belum final ditandai `ASSUMPTION:` di §12, bukan
74
+ disamarkan sebagai fakta.
@@ -0,0 +1,119 @@
1
+ ---
2
+ id: K-QA-010
3
+ title: Gate Reference
4
+ version: "1"
5
+ authority: machine
6
+ category: qa
7
+ kind: reference
8
+ source: docs/knowledge/library/qa/gate-reference.md
9
+ ---
10
+
11
+ # Gate Reference — 79 deterministic checks
12
+
13
+ > Cermin dari `packages/contracts/tests/val/fixtures/gate-inventory.snapshot.json`
14
+ > (sumber otoritatif: union `LintCode` + `FullstackAuditCode`). Sinkronkan daftar
15
+ > ini manual saat daftar gate berubah (`pnpm gates:snapshot` hanya menulis JSON;
16
+ > `gate-reference-sync` di `tests/val/gate-inventory.test.ts` menolak drift).
17
+
18
+ ## Lint gates (59)
19
+
20
+ ### PRD completeness (9)
21
+
22
+ - `MISSING_SECTION`
23
+ - `EMPTY_SECTION`
24
+ - `NA_WITHOUT_JUSTIFICATION`
25
+ - `NO_ARTIFACT`
26
+ - `MISSING_PRD`
27
+ - `FEATURE_TITLES_MISSING`
28
+ - `PHASE_GROUPING_MISSING`
29
+ - `MISSING_DOMAIN_COVERAGE`
30
+ - `BR_UNDEFINED`
31
+
32
+ ### Feature/subfeature coverage (6)
33
+
34
+ - `FEATURE_WITHOUT_TASK`
35
+ - `FEATURE_EXCLUDED`
36
+ - `MISSING_SUBFEATURE_ID`
37
+ - `SUBFEATURE_WITHOUT_DONE`
38
+ - `MISSING_SUBFEATURE_SPEC`
39
+ - `UNCOVERED_SUBFEATURE`
40
+
41
+ ### User journey continuity (2)
42
+
43
+ - `MISSING_USER_MENTAL_MODEL`
44
+ - `MISSING_FLOW_COVERAGE`
45
+
46
+ ### REQ → AC traceability (8)
47
+
48
+ - `ORPHAN_TASK`
49
+ - `DANGLING_REFERENCE`
50
+ - `AC_WITHOUT_OWNER`
51
+ - `UNCOVERED_REQUIREMENT`
52
+ - `REQ_WITHOUT_AC`
53
+ - `AC_WITHOUT_REQ`
54
+ - `MISSING_TRACEABILITY_MATRIX`
55
+ - `SEMANTIC_VERDICT_FAILED`
56
+
57
+ ### Spec coverage (15)
58
+
59
+ - `MISSING_SPECS_INDEX`
60
+ - `MISSING_SPEC_CONTENT`
61
+ - `CAP_WITHOUT_OWNER`
62
+ - `DANGLING_SPEC_REFERENCE`
63
+ - `MISSING_LIFECYCLE_COVERAGE`
64
+ - `MISSING_ENGINE_MENTAL_MODEL`
65
+ - `MODULE_WITHOUT_SPEC`
66
+ - `CONCERN_UNKNOWN`
67
+ - `MODULE_UNUSED`
68
+ - `CONTRACT_WITHOUT_SPEC`
69
+ - `MISSING_ISOLATION_COVERAGE`
70
+ - `ISOLATION_WITHOUT_SPEC`
71
+ - `ISOLATION_WITHOUT_OWNER`
72
+ - `MISSING_ARCHITECTURE`
73
+ - `CAPABILITY_COVERAGE`
74
+
75
+ ### Task completeness (19)
76
+
77
+ - `MISSING_TASKS_INDEX`
78
+ - `DANGLING_DEPENDENCY`
79
+ - `CYCLIC_DEPENDENCY`
80
+ - `PHASE_LAYER_MISMATCH`
81
+ - `FE_DEPENDS_ON_LATER_LAYER`
82
+ - `MISSING_FINAL_VERIFICATION`
83
+ - `CONTRACT_WITHOUT_PAIR`
84
+ - `MISSING_INTEGRATION_TASK`
85
+ - `BACKEND_TASK_IN_CLIENT_ONLY`
86
+ - `CONTRACT_IN_CLIENT_ONLY`
87
+ - `VERIFICATION_FAKE_FLAG`
88
+ - `VERIFICATION_MISSING_AC_COMMAND`
89
+ - `VERIFICATION_COMMAND_TOO_GENERIC`
90
+ - `TARGET_FILES_MISSING_TEST`
91
+ - `MISSING_TARGET_FILES`
92
+ - `MISSING_VERIFICATION_COMMAND`
93
+ - `MISSING_ACCEPTANCE`
94
+ - `MISSING_CAP_FIELD`
95
+ - `MISSING_FE_ENVELOPE`
96
+
97
+
98
+ ## Fullstack audit gates (20)
99
+
100
+ - `ACTOR_WITHOUT_SPEC`
101
+ - `ACTOR_WITHOUT_TASK`
102
+ - `ADMIN_CMS_COVERAGE_MISSING`
103
+ - `ARTIFACT_LEAKAGE`
104
+ - `ASYNC_EVENT_PROPAGATION_MISSING`
105
+ - `AUTH_SURFACE_COVERAGE_MISSING`
106
+ - `BUILD_ARTIFACT_LEAKAGE`
107
+ - `CAPABILITY_COVERAGE_MISSING`
108
+ - `CAPABILITY_MODEL_MISSING`
109
+ - `COMPOSITE_RESOURCE_MODEL_MISSING`
110
+ - `ENTITLEMENT_GRANULARITY_MISSING`
111
+ - `ENTRYPOINT_NOT_RUNNABLE`
112
+ - `FULLSTACK_PLAN_MISSING`
113
+ - `HARNESS_LEAKAGE`
114
+ - `INTERACTION_COVERAGE_MISSING`
115
+ - `PRICE_ADJUSTMENT_MODEL_MISSING`
116
+ - `PRIVILEGED_SURFACE_UNCOVERED`
117
+ - `SIDECAR_LEAKAGE`
118
+ - `UNCOVERED_NFR`
119
+ - `VALUE_RECONCILIATION_MISSING`
@@ -0,0 +1,87 @@
1
+ ---
2
+ id: K-SPEC-010
3
+ title: Specs Standard
4
+ version: "1"
5
+ authority: standard
6
+ category: specs
7
+ kind: template
8
+ source: docs/knowledge/library/specs/specs-standard.md
9
+ ---
10
+
11
+ # Specs Authoring Standard
12
+
13
+ > Sumber: `docker/skills/specs-authoring/SKILL.md`. Diekstrak oleh Phase 5 (ADR-KNOW-0001).
14
+
15
+ ## Target Artifacts
16
+
17
+ All files live inside `specs/` relative to `project-bundle/`.
18
+
19
+ **Adaptive layout (from the turn instruction `Layout specs:`):**
20
+ - **`single`** — write every applicable contract in **`specs/SPECS.md` only**.
21
+ Do not create `functional.md`, `data.md`, or `interfaces.md` as separate files.
22
+ The `specs/SPECS.md` still needs architecture/module map, engine mental model,
23
+ capability model, subfeature/lifecycle/flow coverage, data, and interface
24
+ sections (or `N/A` + justification where not applicable).
25
+ - **`split`** — write `specs/SPECS.md` as the index + the content files below.
26
+ `specRef` may point at `specs/SPECS.md` or a `SPEC-XXX` declared in either
27
+ layout.
28
+
29
+ **Shared Contracts (opsional, terpusat):** kontrak lintas-Feature (`CONTRACT-XXX`,
30
+ 3+ digit) didokumentasikan di `specs/SPECS.md` (atau file `specs/contracts.md`
31
+ bila banyak). Feature spec mereferensikan `CONTRACT-XXX` tanpa menyalin isinya.
32
+ Perubahan kontrak dianalisis dampaknya oleh LLM ke seluruh Feature yang
33
+ mereferensikannya. Setiap `CONTRACT-XXX` wajib cukup konkret untuk diikat oleh
34
+ FE **dan** BE: request/response shape, field + tipe/nullability, status/error,
35
+ auth/permission. Task FE (`frontend_mock`) dan BE memakai ID yang sama dan
36
+ menjalankan contract test terhadap kontrak ini.
37
+
38
+ **Technical Modules (`MODULE-XXX`, 3+ digit):** unit tanggung jawab implementasi
39
+ ( mis. "auth", "payment-gateway", "notification-service"). `MODULE-XXX` di sini
40
+ adalah meta-sintaks: tulis ID nyata seperti `MODULE-AUTH`, jangan literal
41
+ `MODULE-XXX`. Setiap modul
42
+ dideklarasikan di file spec terkait dengan heading `## Modul: <nama> (MODULE-XXX)`.
43
+ Satu modul boleh melayani beberapa Core Feature; satu Core Feature boleh tersebar
44
+ di beberapa modul. Modul bukan Core Feature — jangan menyamakan keduanya.
45
+
46
+ **Concerns (`CONCERN-XXX`, 3+ digit):** aspek teknis lintas fitur
47
+ (authentication, authorization, validation, persistence, notification,
48
+ integration). Setiap concern dideklarasikan di `specs/SPECS.md` atau file spec
49
+ terkait dengan heading `## Concern: <nama> (CONCERN-XXX)`. Concern melintasi
50
+ fitur dan modul; task mendeklarasikan `concernIds` untuk menunjukkan concern
51
+ mana yang disentuh.
52
+
53
+ **Feature ID (opsional):** file spec berbasis Feature menyebut `FEATURE-XXX`
54
+ dari heading §5 terkait (baris referensi singkat di bagian atas atau di
55
+ `specs/SPECS.md`) agar traceability ke tasks/Doctor findings deterministik.
56
+ Bundle lama tanpa ID tetap valid.
57
+
58
+ 1. **`specs/SPECS.md`**: Index and architecture overview linking all specs to PRD requirements. In `single` layout this is also the only content file and must carry every applicable section below.
59
+ - A `mermaid` **`flowchart`** of the system architecture.
60
+ - A `Teknologi | Alasan` **stack rationale** table.
61
+ - **`## Architecture` / `## Module Map`** (wajib): tabel `Module | Responsibility | Depends on` untuk setiap `MODULE-XXX` yang dideklarasikan; plus `Concern | Scope | Applied to` untuk `CONCERN-XXX`.
62
+ - **`## Subfeature Coverage`** (wajib): tabel `SUBFEATURE-XXX | SPEC file/heading | REQ/BR` memetakan setiap `SUBFEATURE-XXX` dari PRD §5 ke spesifikasi yang mengimplementasikannya dan requirement/rule yang didasarkan.
63
+ - **`## Engine Mental Model`** table: `Aspek | Keputusan` covering system boundary, source of truth, state/data ownership, invariants, consistency/transaction boundaries, and failure/recovery.
64
+ - **`## Isolation Coverage`** table (wajib bila `PRD.md` memuat `ISOLATION-XXX`): `Isolation ID | Boundary | Enforcement | Requirement` — satu baris per batas PRD, dengan mekanisme penegakan nyata (row-level/query scoping, permission check, tenant key). Single-tenant: `N/A — <alasan>`.
65
+ - Deklarasi `MODULE-XXX` dan `CONCERN-XXX` yang digunakan bundle ini.
66
+ 2. **`specs/functional.md`** (split only; Mandatory *bila memakai split concern-based*; bila memakai split feature-based, isinya tersebar di `specs/<n>-<slug>.md` dan tetap wajib ada satu file yang memuat state/permission/error/sequenceDiagram):
67
+ - **`## Lifecycle Coverage`** table: `Entity | States | Transitions (event → next) | Guards | Terminal | Failure/Recovery`, plus a `mermaid stateDiagram` for each stateful entity. Stateless products write `N/A — <alasan>`.
68
+ - **`## Flow Coverage`** table: `Flow ID | Step | Actor | Trigger | Action | Screen | Response | Decision | State | Outcome | Alternative | Failure | Exit`. Mirror every PRD `FLOW-XXX` **and every `STEP-XX` the PRD declares**; give each step a stable `STEP-XX`. A flow with 6 PRD steps needs 6 rows — one `STEP-01` row does not mirror the flow.
69
+ - State lifecycles and transitions (must cover every entity/flow listed in the PRD Lifecycle Matrix)
70
+ - Permission matrices and actor roles, termasuk baris yang menegakkan setiap
71
+ `ISOLATION-XXX` (owner/tenant scoping, akses lintas pemilik ditolak)
72
+ - Error handling paths and boundary conditions
73
+ - A `mermaid` **`sequenceDiagram`** of the primary flow
74
+ - Every section traces to a requirement ID (`REQ-XXX` **or** `FR-XXX`, same prefix as `PRD.md`) and `BR-XXX`
75
+ - Setiap modul/concern yang diterapkan disebutkan dengan `MODULE-XXX` / `CONCERN-XXX`
76
+ 3. **`specs/data.md`** (split only; Adaptive):
77
+ - Entity schemas with types and nullability
78
+ - A per-entity `Kolom | Tipe | Kegunaan` table (column, type, purpose)
79
+ - A `mermaid` **`erDiagram`** showing entities, keys, and relationships
80
+ - Relationships, foreign keys, and indexes
81
+ - Persistence rules and retention
82
+ - If product is stateless (e.g. pure CLI tool), mark `N/A` with substantive justification (min 12 chars).
83
+ 4. **`specs/interfaces.md`** (split only; Adaptive):
84
+ - API endpoints, request/response JSON schemas, and HTTP status codes
85
+ - CLI commands, flags, and exit codes (for CLI products)
86
+ - Webhook payloads and event signatures
87
+ - If no external interface exists, mark `N/A` with substantive justification.
@@ -0,0 +1,34 @@
1
+ ---
2
+ id: K-TASK-011
3
+ title: Tasks Conditional Coverage — Fullstack
4
+ version: "1"
5
+ authority: standard
6
+ category: tasks
7
+ kind: standard
8
+ source: docs/knowledge/library/tasks/conditional-coverage-a.md
9
+ ---
10
+
11
+ # Tasks Conditional Coverage — Fullstack
12
+
13
+ > Sumber: `docs/registered-jioogen-skills/tasks-authoring.md`. Diekstrak untuk selective loading.
14
+
15
+ ## Fullstack Completeness (conditional)
16
+
17
+ Prinsip eksekusi: **Phase 1 = frontend lengkap dengan mock/mockup → Phase 2 =
18
+ DB + API → Phase 3 = integrasi → Phase 4 = verifikasi.** "Belum ada backend/DB
19
+ hari ini" pada Phase 1 **bukan gap**; audit menilai kelengkapan rencana, bukan
20
+ progres kode. Yang wajib ada adalah task Phase 2–4 yang jelas.
21
+
22
+ Setiap `CAP-*` yang tersirat (lihat `CAPABILITY-INDEX.md`) wajib punya owner task
23
+ dengan `targetFiles` + `verificationCommand`, atau `N/A — <alasan>`. Tabel ringkas
24
+ per CAP, bukan per fitur:
25
+
26
+ CAP ringkas (index lengkap di `CAPABILITY-INDEX.md`): IDENTITY · TENANCY · ACTORS · ADMIN · DOMAIN · WORKFLOW · MONEY · NOTIFY · STORAGE · INTEGRATION · REPORTING · UX-SHELL · PUBLIC-SURFACE · OPS · COMPLIANCE · AI · MOBILE · TEST.
27
+
28
+ | CAP | Owner task | Bukti verifikasi |
29
+ |---|---|---|
30
+ | CAP-* | TASK-XXX | perintah/AC |
31
+
32
+ Audit deterministik (report-only): `pnpm audit:bundle <dir-bundle>`. Blocker =
33
+ alur inti tidak bisa jalan; warning = gap yang harus diputuskan sebelum coding.
34
+ Jangan menulis ribuan baris fitur di laporan; cukup CAP + jumlah + task owner.