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,384 @@
1
+ ---
2
+ name: prd-authoring
3
+ description: Write or revise the canonical 12-section PRD.md for a JIOO 2 project — narrative, compact, and readable by a non-technical founder first. Use when PRD.md is the artifact being produced or changed this turn: drafting it from scratch on the explicit Draft CTA, or revising an existing PRD the user explicitly asks to change. Enforces the canonical section contract, the compact feature hierarchy, BR-XXX business rules, REQ-XXX traceability, the Domain Coverage Ledger, and the no-fabricated-truth boundary. Do NOT use for specs/, tasks/, artifact review, or a turn where the user is only asking/discussing.
4
+ license: ""
5
+ metadata:
6
+ origin: jioo
7
+ domain: prd
8
+ stage: draft-prd
9
+ artifact: PRD.md
10
+ contract: "Product-Blueprint.md B.2.1 / docs/04-AGENT-CONTRACT.md §5.2 / packages/contracts/src/bundle.ts"
11
+ ---
12
+
13
+ # PRD Authoring — JIOO 2 canonical `PRD.md`
14
+
15
+ **Core Contract:** `IDE → konteks → aktor × resource × lifecycle × money × risk × channel × ops → CAP → fitur domain → PRD`. Wajib semua CAP/aktor/entity/page/NFR material masuk §4/§5/§7/§10/§11 atau `EXPLICIT_NA`; tidak ada kuota; PRD = otoritas intent.
16
+
17
+ Jika produk punya collection/list + pilih/beli, wajib CAP-INTERACTION: thumbnail/preview, detail, select, quantity/unit, action, dan UI states.
18
+
19
+ Jika ada aktor pengelola + konten/commerce, wajib CAP-ADMIN: CMS CRUD, media, orders/users/roles, settings/config, audit, dan publish/preview. Saat `CAP-ADMIN Required=yes`, §5 wajib menyebut keenam surface itu (boleh sebagai satu fitur panel) atau tandai `EXPLICIT_NA (alasan)` per area yang tidak berlaku; area yang hilang tanpa penanda adalah gap, bukan pilihan gaya.
20
+
21
+ Jika ada akun/user, wajib CAP-IDENTITY: signup/signin/signout, session/remember/refresh, profile/avatar/settings, change/reset password; SSO/MFA conditional.
22
+
23
+ PRD menulis **Capability Coverage** (intent + evidence + seksi PRD); Specs menulis
24
+ **Capability Model** (owner spec/task). Jangan menulis tabel owner task di PRD.
25
+
26
+ ## Capability Coverage (ringkas)
27
+
28
+ Wajib bila ada peta discovery: setiap `CAP-*` material harus punya bukti PRD/spec. Detail: `.jioogen/authoring/knowledge/library/prd/capability-coverage.md` (`K-PRD-017`, draft/revise).
29
+
30
+ ## When to use this
31
+
32
+ Use it when `PRD.md` is the artifact this turn produces or changes:
33
+
34
+ - **Draft** — `PRD.md` does not exist yet AND the user explicitly asks to draft it
35
+ (CTA Draft), or the product direction has been confirmed.
36
+ - **Revisi** — `PRD.md` exists AND the user explicitly asks to change it (a new or
37
+ removed feature, a changed `REQ`/`BR`, a changed platform). See "Revisi PRD" below.
38
+
39
+ Do **not** use it when:
40
+
41
+ - The user is only asking a question, advice ("saran"), greeting, or brainstorming in
42
+ chat. Answer in chat; reading `PRD.md` is allowed, writing is not.
43
+ - `PRD.md sudah ada. Turunkan menjadi specs/…` → that is the specs stage.
44
+ - `PRD.md dan specs/ sudah ada. Turunkan menjadi tasks/…` → that is the tasks stage.
45
+ - `Semua artefak sudah ada. Perbarui yang perlu diperbarui…` pada giliran tanpa
46
+ permintaan eksplisit dari user → itu giliran menjawab, bukan menulis ulang.
47
+
48
+ ## How to write it
49
+
50
+ **Write the file, never the chat.** Use `write_file` / `edit_file` against `PRD.md`.
51
+ Displaying the draft in your answer instead of writing the file is a failed turn —
52
+ the file on disk is the single source of truth.
53
+
54
+ **Cascade downstream — never silently mix stages.** If `specs/` or `tasks/`
55
+ already exist when you change the PRD, they no longer match it. Report that they
56
+ are **stale** and stop there: `specs/` is re-derived by its own turn, and `tasks/`
57
+ only after `specs/` exists. The PRD is **auto-confirmed** by the machine once it
58
+ passes the deterministic gate, so there is no human confirmation step to wait
59
+ for — but do **not** compile `specs/` or `tasks/` in the same turn just because
60
+ the PRD changed, since that mixes stages and leaves `UNCOVERED_REQUIREMENT` in
61
+ the L2 gate.
62
+
63
+ **The Domain Coverage Ledger is mandatory.** `PRD.md` must carry the 12-row ledger the
64
+ platform parses — `[n] <Struktur> : RESOLVED|EXPLICIT_NA (alasan)` — whose canonical
65
+ format and honesty rule live in `docker/AGENTS.md` §2 rule 9. The 12 structures are
66
+ `Actors & Roles`, `Intent & Goals`, `Entities & Concepts`, `Relationships`, `Business
67
+ Rules`, `Lifecycles & State Machines`, `Workflows & Sequences`, `Permissions &
68
+ Boundaries`, `Data & Persistence`, `Events & Triggers`, `Exceptions & Failure Paths`,
69
+ `Verification & Outcomes`. They are **not** the 12 PRD section titles. The server
70
+ parses the ledger to compute coverage, so a missing or differently formatted ledger
71
+ reads as `0/12` even when the document itself is complete. The parsed shape is
72
+ strict: the structure name must not contain `:`, and the evidence parentheses must
73
+ not nest another `)` — write `RESOLVED (§7, §8)`, never
74
+ `RESOLVED (§7 tabel AC (AC-01))`.
75
+
76
+ In a **finished Draft/Revisi** every row must be `RESOLVED` with evidence from the
77
+ document, or `EXPLICIT_NA` with a reason. `UNTOUCHED`/`IN_PROGRESS` are discovery
78
+ states only; if a domain has no content yet, add it to the relevant PRD section
79
+ (4/6/7/8/10/11) instead of leaving the ledger open. A **non-material** gap may
80
+ close as `RESOLVED (ASSUMPTION: <alasan>)` — derivation + label, not a silent
81
+ invention. Never ask the user just to close a non-material ledger row; ask only
82
+ when the gap changes product intent, scope, AC, security, cost, or architecture.
83
+ Missing evidence on a `RESOLVED` row is a machine-healable gap: the platform fills
84
+ it from grounded PRD/decision/conversation context before the gate reports it.
85
+ Never ask the user to supply ledger evidence; if no grounded evidence exists, add
86
+ the missing content to the relevant section or mark the row `EXPLICIT_NA` /
87
+ `RESOLVED (ASSUMPTION: …)` as the domain requires.
88
+
89
+ **§6 must carry two parseable tables.** The gate parses real markdown headings, not
90
+ bold text. Write `### User Mental Model` (trailing text on the heading line breaks
91
+ the match) with exactly the 7 columns `Aktor | Tujuan | Entry point | Langkah utama
92
+ | Titik keputusan | Hasil | Exit`, and, in the same section, `### Flow Coverage` with
93
+ the 10 columns `Flow ID | Aktor | Trigger | Langkah | Layar | Aksi | Respons |
94
+ Keputusan | outcome | Alternatif`. Both tables are required once ledger row `[1]`
95
+ (Actors & Roles) and row `[7]` (Workflows & Sequences) are `RESOLVED`; the canonical
96
+ skeletons live in `.jioogen/authoring/knowledge/library/prd/prd-standard.md` (`K-PRD-010`).
97
+
98
+ **Stay inside the working directory.** The agent's working directory *is*
99
+ `project-bundle/`, so the target path is simply `PRD.md`. Do not invent absolute
100
+ paths and do not write outside this directory.
101
+
102
+ ## Parameter minimum — minimum, bukan ceiling
103
+
104
+ **panduan/floor, BUKAN ceiling.** 9 anchor adalah **minimum, bukan ceiling**. Dekomposisi memakai **Capability
105
+ Index** (`docker/skills/CAPABILITY-INDEX.md`): petakan produk ke CAP-* yang
106
+ tersirat, lalu turunkan fitur domain di dalamnya.
107
+
108
+ 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.
109
+
110
+ - CAP wajib bila sinyalnya benar; nyatakan di §4/§5/§7/§10/§11 atau `EXPLICIT_NA`.
111
+ - Fitur domain tetap dari penalaran domain, bukan template produk.
112
+ - Jangan menyalin/enumerasi daftar fitur di prompt atau laporan; laporkan
113
+ ringkasan per CAP (count + gap), bukan per item.
114
+
115
+ Daftar CAP dan sinyalnya ada di `CAPABILITY-INDEX.md`; jangan menyalin daftar
116
+ itu ke prompt. Petakan CAP yang tersirat, turunkan fitur domain, dan laporkan
117
+ gap per CAP.
118
+
119
+ **Pemeriksaan sebelum Draft:** cek ledger discovery. Bila <7 fakta (problem, actors, platform, scope, money, tenancy, payments) tercatat confirmed/assumed, catat sisanya sebagai `ASSUMPTION: default = …` di §12 dan lanjut. Draft tidak ditahan oleh gap — gap menjadi label, bukan gate.
120
+
121
+ **Keputusan mahal tidak didaftar ulang di sini.** Sumber tunggalnya adalah
122
+ kontrak global §4 tier 2 (*decision-block-required*): monetisasi/kanal moneter,
123
+ aturan batal/refund, model tenancy, integrasi eksternal. Ambil
124
+ hanya yang tersentuh ide user, ajukan maksimal 3, sisanya `ASSUMPTION: default
125
+ = …`. Bila tak satu pun tersentuh, **0 pertanyaan itu sah** — langsung tulis.
126
+
127
+ **Integrasi tanpa vendor = default agnostik (Vendor Deferral).** Bila user tidak
128
+ menyebut vendor dan kebutuhan hanya kapabilitas umum, jangan memilih vendor dan
129
+ jangan menulis `OPEN QUESTION` vendor di §12. Tulis kapabilitas yang terlihat
130
+ pengguna (mis. "QRIS dinamis + e-wallet, refund manual") plus batasan *"vendor
131
+ dapat diganti tanpa mengubah perilaku pengguna"*; pilihan vendor pertama hidup
132
+ di `specs/` + ADR. Vendor baru wajib ditanyakan bila kapabilitasnya
133
+ vendor-specific, user sudah punya akun merchant, atau ada kewajiban regulator.
134
+
135
+ **Dilarang menanyakan vendor/DB engine/stack di PRD (deferToSpecs).** Klasifikasi
136
+ teks keputusan hidup di `packages/contracts/src/materiality.ts`
137
+ (`classifyDecisionText`: `material` | `nonMaterial` | `deferToSpecs`). Vendor
138
+ moneter/DB engine/stack terklasifikasi `deferToSpecs` → PRD **tidak menanyakan**
139
+ vendor sebagai pertanyaan; tulis kapabilitas + `ASSUMPTION:` defer. Bila
140
+ keputusan arsitektur/vendor perlu ditampilkan, pakai blok `decision` (2–3 opsi +
141
+ 1 rekomendasi + baris `default | <huruf> | <alasan>`) supaya user tidak buta.
142
+ Di pipeline, keputusan non-material dengan artefak tertulis = soft-offer
143
+ `AI_PROPOSAL` (non-blocking, tidak menghentikan tahap) — bukan blocker.
144
+
145
+ **Stop-rule — uji tukar-AC.** PRD sudah cukup bila setiap keputusan internal
146
+ dapat ditukar tanpa mengubah satu pun acceptance criterion. Menukar mengubah AC
147
+ → keputusan itu terlihat pengguna, tulis di PRD (jawab atau `ASSUMPTION:`); AC
148
+ tetap → biarkan ke `specs/`. Syarat pendamping: 9 anchor terisi atau
149
+ `ASSUMPTION:`; setiap tebakan sisa berlabel dan murah dibatalkan; tidak ada
150
+ angka latency UI karangan (angka waktu hanya SLO sistem atau kutipan user).
151
+
152
+ ## Revisi PRD (`PRD.md` sudah ada)
153
+
154
+ A revision edits the existing file in place; it is not a rewrite.
155
+
156
+ - Change only what the user asked for. Never add requirements the user did not state.
157
+ - **Capture new information beyond the 7 facts.** A revision may add facts the
158
+ original discovery never covered (new actor, platform constraint, pricing rule,
159
+ integration, lifecycle, security boundary, etc.). Do not ignore them just because
160
+ they sit outside `problem/actors/platform/scope/money/tenancy/payments/techstack`: put them in the
161
+ relevant PRD sections, close the affected ledger rows, and record explicit user
162
+ decisions as `CONFIRMED_DECISION` / inferences as `ASSUMPTION` in §12. Do not
163
+ re-ask facts the user already gave.
164
+ - Keep IDs stable: an existing `BR-XXX`/`REQ-XXX` keeps its number even when its
165
+ wording changes. A removed requirement is removed — never renumbered, never reused
166
+ for a different requirement.
167
+ - Update the Domain Coverage Ledger (§2.8) so it still describes the new content
168
+ honestly.
169
+ - Do **not** touch `specs/` or `tasks/` in this turn: they become stale and are
170
+ re-derived by their own stage; the revised PRD is auto-confirmed once clean
171
+ (see "Cascade downstream").
172
+ - A structural revision (new feature family, changed platform) is a decision, not a
173
+ silent edit: say what changed in chat and offer the next step.
174
+ - **Creative/business approach.** If the turn carries `Discovery approach: creative`
175
+ or `business`, apply that overlay: capture the new inputs into the relevant PRD
176
+ sections and ledger, and label derived assumptions `CREATIVE ASSUMPTION:` /
177
+ `BUSINESS ASSUMPTION:` in §12. Do not treat an overlay idea as a confirmed fact.
178
+
179
+ > **Template & bentuk akhir PRD**: lihat `.jioogen/authoring/knowledge/library/prd/prd-standard.md` (knowledge `K-PRD-010`, on-demand — baca bila perlu). Skill ini memuat aturan; template lengkap tidak diduplikasi.
180
+ ```
181
+
182
+ Rules the validator enforces mechanically:
183
+
184
+ 1. **All 12 headings must be present.** A missing heading is a failure.
185
+ 2. **No section may be empty.** Every section needs real content.
186
+ 3. **A non-applicable section is marked `N/A` plus a justification of at least
187
+ 12 characters of prose after the marker.** Deleting a section is never allowed.
188
+ 4. Extra `##` headings that are not numbered (e.g. `## Lampiran`) are ignored by
189
+ the validator. Keep them after section 12 if you need them.
190
+ 5. **Client-only products.** Bila instruksi giliran menyatakan
191
+ `runtime: client-only`, §9 Data & Persistence harus `N/A — <alasan>` atau
192
+ menyebut penyimpanan lokal (localStorage/IndexedDB); jangan mengarang
193
+ endpoint, server auth, atau database. §8 Boundaries menyatakan tidak ada
194
+ boundary lintas-user/server.
195
+
196
+ ## Section 5 — Core Features (ringkas)
197
+
198
+ Format: `### Fase N — <tema>` → `#### N. <Fitur Utama>` 6-field; **minimal satu** sub-fitur per fitur, jumlah & kedalaman di atas itu **ditentukan LLM — tanpa batas kaku**. Detail hierarki: `.jioogen/authoring/knowledge/library/prd/feature-hierarchy.md` (`K-PRD-011`, dimuat saat draft/revise).
199
+
200
+
201
+ ### Unit dekomposisi per bentuk produk
202
+
203
+ `compact` = tanpa paragraf; kedalaman sub-fitur **ditentukan LLM** (tanpa batas kaku); setiap item scope muncul di suatu fase; jangan memaksakan kosakata web pada produk non-UI.
204
+
205
+ | Kind (`Profil produk`) | Fitur Utama = | Sub-fitur = | Contoh sub-fitur |
206
+ |---|---|---|---|
207
+ | `app` (surface web/mobile/desktop) | kemampuan pengguna yang utuh | aksi pengguna → respons sistem | "Pilih Tanggal & Jam", "Kirim Pesanan" |
208
+ | `service` | kapabilitas domain / kelompok endpoint | kontrak request→response, auth, error | "Buat Invoice", "Batalkan Subscription" |
209
+ | `tool` (CLI/headless) | kelompok perintah | command/flag → exit code/output | "Konversi Berkas", "Validasi Skema" |
210
+ | `library` | area public API | tipe/fungsi + contoh pemakaian | "Client Builder", "Middleware Auth" |
211
+ | `game` | loop/mekanik inti | input → state → umpan balik | "Roll Dadu", "Naik Tangga" |
212
+ | `automation` | trigger/integrasi | aksi, guardrail, kegagalan/retry | "Jadwalkan Sync", "Retry Saat Gagal" |
213
+ | `agent` | tujuan agen + tool | tool, guardrail, evaluasi/jejak | "Panggil Tool", "Hentikan Saat Evaluasi Gagal" |
214
+ | `plugin` | titik ekstensi host | hook, kontrak host, kompatibilitas versi | "Daftarkan Hook", "Cek Versi Host" |
215
+ | `data` | tahap pipeline | sumber → transform → output/kualitas | "Ambil Sumber", "Normalisasi Baris" |
216
+ | `embedded` | mode perangkat | hardware/protokol → batasan | "Mode Offline", "Kalibrasi Sensor" |
217
+
218
+ Bila `Profil produk` tidak ada, tetap pakai bentuk paling mungkin dari ide dan
219
+ tandai turunannya sebagai `ASSUMPTION:` — jangan mengarang komponen baru.
220
+ Sub-fitur tetap berupa bullet, tetapi kini wajib ber-ID `SUBFEATURE-XXX` dan
221
+ menjadi unit traceability yang wajib dipetakan Specs → Tasks.
222
+
223
+ ## Ledger & coverage
224
+
225
+ `SUBFEATURE-XXX` adalah **unit cakupan**: setiap subfeature yang dideklarasikan
226
+ di §5 wajib muncul di `specs/` (heading atau tabel coverage) dan dimiliki
227
+ minimal satu task di `tasks/`. Jangan menulis subfeature di PRD yang tidak
228
+ diturunkan ke Specs, dan jangan menambah subfeature di Specs yang tidak ada di
229
+ PRD.
230
+
231
+ ## Decomposition (ringkas)
232
+
233
+ Panduan/floor, BUKAN ceiling. Pertahankan **fitur pembeda eksplisit**; `compact` = tanpa paragraf, bukan sedikit fitur. Detail: `.jioogen/authoring/knowledge/library/prd/decomposition.md` (`K-PRD-012`, draft/revise).
234
+
235
+ ## Enterprise checklist (on-demand)
236
+
237
+ Bila sinyal berat/enterprise aktif, baca `.jioogen/authoring/knowledge/library/prd/enterprise-checklist.md` (`K-PRD-016`). Tidak dimuat default.
238
+
239
+ ## Section 5 — Roadmap Phasing (Fase)
240
+
241
+ Group the Core Features into explicit delivery **Fase** inside Section 5, e.g.:
242
+
243
+ ```markdown
244
+ ### Fase 1 — <tema fase>
245
+ ### Fase 2 — <tema fase>
246
+ ```
247
+
248
+ - Phasing is a **grouping convention only** — it adds no field to the 6-field
249
+ feature contract. Keep the six fields intact at the **Fitur Utama** level.
250
+ - Section 5 must contain **at least one explicit differentiator feature** — the
251
+ bold/unique capability from Idea Sketch, not merely a generic table-stakes
252
+ feature. All user-approved features still enter one of the phases.
253
+ - Phases must stay consistent with the downstream task `phase` in `tasks/`
254
+ (§B.2.4 rule 8). A feature that belongs to no phase is a completeness gap.
255
+
256
+ ## Gaya penulisan (ringkas)
257
+
258
+ Naratif ringkas, satu ide per bullet, `compact` = tanpa paragraf. Detail: `.jioogen/authoring/knowledge/library/prd/writing-style.md` (`K-PRD-013`, draft/revise).
259
+
260
+ ## Stable identifiers
261
+
262
+ | ID | Format | Where |
263
+ |---|---|---|
264
+ | Requirement | `REQ-001`, `REQ-002`, … **or** `FR-001`, `FR-002`, … (3+ digits) | section 7 |
265
+ | Business rule | `BR-001`, `BR-002`, … (3+ digits) | section 8 |
266
+ | Subfeature | `SUBFEATURE-001`, `SUBFEATURE-002`, … (3+ digits) | section 5 |
267
+ | Spec | `SPEC-001`, … | `specs/` — not this skill |
268
+ | Task | `TASK-001`, … | `tasks/` — not this skill |
269
+
270
+ Either prefix is accepted by the gate; use **one prefix consistently** across the
271
+ whole bundle (`REQ-XXX` and `FR-XXX` are both canonical, 3+ digits — a 2-digit
272
+ `FR-01` is rejected). Section 8 must contain at least one `BR-XXX` ID. Section 7
273
+ carries the requirement IDs. IDs are stable: never renumber an existing ID, never
274
+ reuse an ID for a different meaning.
275
+
276
+ **Setiap `BR-XXX` yang dirujuk di §5 atau §7 wajib punya baris definisinya di §8.**
277
+ Gate `BR_UNDEFINED` (blocker) menolak rujukan tanpa definisi. Tulis aturannya di
278
+ tabel §8 (`ID | Aturan | Efek bila dilanggar | Fase`) atau hapus rujukannya; prosa
279
+ §8 tanpa ID tidak menutup rujukan. Bila produk memang tanpa aturan bisnis, tulis
280
+ `N/A — <alasan>` di §8.
281
+
282
+ ## Section 11 — Acceptance (ringkas)
283
+
284
+ Satu tabel AC (`AC | Skenario | Hasil | Tidak boleh | Verifikasi | REQ`); setiap REQ punya AC dan sebaliknya. Detail: `.jioogen/authoring/knowledge/library/prd/acceptance.md` (`K-PRD-014`, validasi).
285
+
286
+ ## Traceability inside this artifact
287
+
288
+ - Every acceptance criterion in section 11 names the `REQ-XXX` it verifies.
289
+ - Every parent feature in section 5 links to its acceptance criteria through its
290
+ `requirementIds`.
291
+ - Every `BR-XXX` is either referenced by at least one acceptance criterion, or
292
+ explicitly marked unused **with a reason**.
293
+ - Setiap `BR-XXX` wajib muncul di kolom Aturan minimal satu fitur §5, atau ditandai
294
+ "tidak digunakan" dengan alasan di §8. Jangan biarkan BR tanpa keterkaitan fitur.
295
+ - `traceability.md` at the bundle root belongs to the Tasks stage, not to PRD
296
+ time: the L2 gate requires it once `tasks/` exists, so do not author it here
297
+ and do not claim that orphan detection has run.
298
+
299
+ ## Do not fabricate product truth
300
+
301
+ This is the hardest rule in this skill. It splits into two distinct rules:
302
+ **intent fidelity** (hard) and **solution inventiveness** (loose). Confusing
303
+ them over-restrains the agent and reads legitimate solution design as
304
+ fabrication.
305
+
306
+ - **Intent fidelity (hard).** Never change the problem, value proposition,
307
+ scope, or acceptance criteria the user actually stated. Never invent facts
308
+ about the user's world, never turn an unknown into a confident claim, never
309
+ bake a silent assumption in. This is what "do not fabricate" protects.
310
+
311
+ - **Solution inventiveness (loose).** Inventing a solution, feature, or
312
+ differentiator that is *grounded in the user's stated intent* is legitimate
313
+ product work, not fabrication. When you do, record it as
314
+ `ASSUMPTION: INVENTIVE <isi> — grounded pada <intent>` in §12 (plus one short
315
+ line in the affected section only if it changes how that section reads). It
316
+ is only fabrication when the invented solution changes the user's intent,
317
+ value, scope, or AC.
318
+
319
+ - **Flag unknowns, never invent them.** Resolve a gap in chat first — ask (at
320
+ most 1–2 questions) or lock a labelled `ASSUMPTION:`. Only a material gap
321
+ that is still unresolved goes to section 12 as an open question, and it must
322
+ have been raised in chat too (FR-03 materiality gate blocks on it) — never
323
+ into the prose as a confident claim, never as homework deferred to the user.
324
+ - **Assumptions are labelled.** Write them as `ASSUMPTION: default = …` with the
325
+ reason, in §12 (plus one short line in the affected section only if it changes
326
+ how that section reads). An assumption that is silently baked in is a defect.
327
+ - **Blockers are staged — writing the PRD is never held hostage**
328
+ (`04-AGENT-CONTRACT.md` §4 Aturan Keras 6). An unknown never halts this skill:
329
+ record it in section 12 as a labelled blocker note (or `ASSUMPTION:`) and keep
330
+ writing — FR-03 blocks **delivery/handoff (CTA `Eksekusi`)**, not the draft.
331
+ Only an *irreversible material conflict* (two stated requirements contradicting
332
+ each other) may pause you: stop and ask — at most 1–2 questions in the whole
333
+ turn, the single most important decision first, with 2–5 clear options or one
334
+ clear recommendation. If the user declines ("terserah", "you pick", "lanjut
335
+ pakai asumsi"), lock your best recommendation explicitly and labelled in chat —
336
+ reviewable in Tahap 2. N/A and irrelevant items never block.
337
+ - **Banned filler phrasing:** "secara wajar", "biasanya", "seperti kebanyakan
338
+ aplikasi", "dan sebagainya". These hide unverified guesses.
339
+ - **Do not invent scale, compliance, or integrations.** If the user never said
340
+ they need multi-tenancy, SOC 2, or a partner API, do not write it in — and if
341
+ you assume it for a non-material section, mark it `ASSUMPTION:`.
342
+
343
+ - **Critical dependency rule.** When a core feature promises value that depends
344
+ on an external integration (a partner API, a publishing/upload target, a
345
+ payment gateway, a third-party service), do **not** silently drop it to §9
346
+ "di luar scope". Evaluate in order: (1) does an alternative solution fulfil
347
+ the promise without that integration? (2) if not, can you reframe the promise
348
+ honestly so the product does not claim capability it cannot deliver? (3) only
349
+ if it is a truly material decision the AI cannot safely make, record it as
350
+ `OPEN_QUESTION`. A feasibility note ("bisa pakai API X") is **not** evidence
351
+ the integration is viable — the PRD must not claim a capability the product
352
+ cannot actually deliver.
353
+ - **If it conflicts with the existing repository, say so plainly.** Do not smooth
354
+ the contradiction over.
355
+
356
+ ## Self-check (ringkas)
357
+
358
+ INSPECT → DIAGNOSE → FIX → VALIDATE sebelum turn selesai: 12 seksi, ledger tertutup, setiap fitur berakar fakta, ID stabil, AC tertutup. Kriteria lengkap: `.jioogen/authoring/knowledge/library/prd/self-check.md` (`K-PRD-015`, validasi/confirm).
359
+
360
+ **Initial Context.** Bila `Bahasa produk` = multi-bahasa dan tidak dikoreksi, §10/§11 wajib memuat kebutuhan user-facing multi-bahasa + language switcher. Nilai `scaleProfile`/`languageStrategy` yang tidak dikonfirmasi user dan tidak ditimpa `shape`/ledger/brief ditulis `ASSUMPTION: <nilai> — dari Context Awal New Project` di §12.
361
+
362
+ ## When the user asks for something the contract forbids
363
+
364
+ If the request would break the 12-section contract (for example: "skip section 8",
365
+ "write it as a one-pager", "don't write the file, just show me"), refuse the
366
+ format change, state which rule it breaks, and offer the compliant path: mark the
367
+ section `N/A` with a justification, or keep the contract and narrow the scope.
368
+
369
+ ## Non-goals
370
+
371
+ This skill does not define: API standards, database standards, frontend or backend
372
+ architecture, security standards, testing frameworks, or deployment procedures.
373
+ It also does not own `specs/`, `tasks/`, or artifact review.
374
+
375
+ ## Verification
376
+
377
+ This skill does not add validation. Verification is JIOO's existing L2 gate and
378
+ pipeline — run them, quote the real result, and never claim a gate passed unless
379
+ the gate actually reported it.
380
+ ## Prinsip Fundamental (JIOOGEN)
381
+
382
+ Wajib: `docker/AGENTS.md` §6 — dimuat sebagai kontrak always-on; tidak diduplikasi di skill.
383
+
384
+ **User Flow First (User Flow First).** Produk ini *user-flow-first*, bukan *feature-first*. §6 (Lifecycle & State Machines) + Flow Coverage wajib menyusun alur aktor yang *diturunkan dari persona + aksi-pertama + platform*, bukan daftar fitur yang lalu dipasangi alur. Setiap fitur §5 menjawab "langkah alur mana yang dia layani, untuk aktor mana?"; fitur tanpa layanan alur = scope creep. Alur ini feeding specs (step→UI/backend) dan tasks (FE-first per step), bukan gate yang menahan Draft (lihat discovery-standard "User Flow First").
@@ -0,0 +1,33 @@
1
+ name: prd-authoring
2
+ displayName: "PRD Authoring"
3
+ description: "Write or revise canonical 12-section PRD.md for JIOO 2"
4
+ version: "1.2.0"
5
+ authority: "standard"
6
+ phase: "prd"
7
+ capability: "requirement-engineering"
8
+ category: "authoring"
9
+ dependencies: []
10
+ provides:
11
+ - "prd-draft"
12
+ - "prd-revise"
13
+ - "prd-self-check"
14
+ - "domain-coverage-ledger"
15
+ requiresKnowledge:
16
+ - "K-INS-001"
17
+ - "K-PRD-001"
18
+ - "K-PRD-002"
19
+ - "K-PRD-004"
20
+ - "K-DOM-001"
21
+ entryPoints:
22
+ draft: "draft"
23
+ revise: "revise_prd"
24
+ validate: "confirm"
25
+ outputArtifacts:
26
+ - "PRD.md"
27
+ gateCodes:
28
+ - "readPrdGateIssues"
29
+ - "lintPrd"
30
+ supportsOverlays:
31
+ - "creative-discovery"
32
+ - "business-discovery"
33
+ tags: ["authoring", "prd", "canonical", "phase-prd"]