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.
- package/authoring-pack/agent/core.md +574 -0
- package/authoring-pack/agent/discovery.md +21 -0
- package/authoring-pack/agent/prd.md +37 -0
- package/authoring-pack/agent/specs.md +47 -0
- package/authoring-pack/agent/tasks.md +59 -0
- package/authoring-pack/knowledge/catalog.generated.json +1428 -0
- package/authoring-pack/knowledge/library/_TEMPLATE.md +30 -0
- package/authoring-pack/knowledge/library/discovery/discovery-standard.md +157 -0
- package/authoring-pack/knowledge/library/discovery/progressive-understanding.md +64 -0
- package/authoring-pack/knowledge/library/gamedev/K-GAME-001-discovery-game.md +60 -0
- package/authoring-pack/knowledge/library/gamedev/K-GAME-101-prd-game.md +62 -0
- package/authoring-pack/knowledge/library/gamedev/disciplines/game-ai.md +33 -0
- package/authoring-pack/knowledge/library/gamedev/disciplines/game-feel.md +32 -0
- package/authoring-pack/knowledge/library/gamedev/disciplines/game-ui-ux.md +32 -0
- package/authoring-pack/knowledge/library/gamedev/disciplines/level-design.md +31 -0
- package/authoring-pack/knowledge/library/gamedev/disciplines/procedural-gen.md +33 -0
- package/authoring-pack/knowledge/library/gamedev/disciplines/save-systems.md +32 -0
- package/authoring-pack/knowledge/library/gamedev/genres/card-game.md +33 -0
- package/authoring-pack/knowledge/library/gamedev/genres/fps-shooter.md +34 -0
- package/authoring-pack/knowledge/library/gamedev/genres/platformer.md +37 -0
- package/authoring-pack/knowledge/library/gamedev/genres/puzzle.md +32 -0
- package/authoring-pack/knowledge/library/gamedev/genres/roguelike.md +34 -0
- package/authoring-pack/knowledge/library/gamedev/genres/rpg.md +33 -0
- package/authoring-pack/knowledge/library/gamedev/genres/survival-crafting.md +34 -0
- package/authoring-pack/knowledge/library/gamedev/genres/tower-defense.md +33 -0
- package/authoring-pack/knowledge/library/gamedev/genres/visual-novel.md +32 -0
- package/authoring-pack/knowledge/library/prd/acceptance.md +54 -0
- package/authoring-pack/knowledge/library/prd/capability-coverage.md +37 -0
- package/authoring-pack/knowledge/library/prd/decomposition.md +80 -0
- package/authoring-pack/knowledge/library/prd/enterprise-checklist.md +53 -0
- package/authoring-pack/knowledge/library/prd/feature-hierarchy.md +105 -0
- package/authoring-pack/knowledge/library/prd/prd-standard.md +175 -0
- package/authoring-pack/knowledge/library/prd/self-check.md +129 -0
- package/authoring-pack/knowledge/library/prd/writing-style.md +74 -0
- package/authoring-pack/knowledge/library/qa/gate-reference.md +119 -0
- package/authoring-pack/knowledge/library/specs/specs-standard.md +87 -0
- package/authoring-pack/knowledge/library/tasks/conditional-coverage-a.md +34 -0
- package/authoring-pack/knowledge/library/tasks/conditional-coverage-b.md +63 -0
- package/authoring-pack/knowledge/library/tasks/tasks-standard.md +98 -0
- package/authoring-pack/knowledge/library/ui/K-UIX-001-universal-uiux-principles.md +66 -0
- package/authoring-pack/knowledge/library/ui/K-UIX-002-visual-ux-qa-rubric.md +65 -0
- package/authoring-pack/knowledge/library/ui/K-UIX-003-adaptive-ui-authoring.md +66 -0
- package/authoring-pack/manifest.json +230 -0
- package/authoring-pack/skills/business-discovery/SKILL.md +147 -0
- package/authoring-pack/skills/business-discovery/skill.yaml +22 -0
- package/authoring-pack/skills/creative-discovery/SKILL.md +122 -0
- package/authoring-pack/skills/creative-discovery/skill.yaml +22 -0
- package/authoring-pack/skills/karpathy-guidelines/SKILL.md +96 -0
- package/authoring-pack/skills/karpathy-guidelines/skill.yaml +19 -0
- package/authoring-pack/skills/prd-authoring/SKILL.md +384 -0
- package/authoring-pack/skills/prd-authoring/skill.yaml +33 -0
- package/authoring-pack/skills/product-discovery/SKILL.md +258 -0
- package/authoring-pack/skills/product-discovery/skill.yaml +25 -0
- package/authoring-pack/skills/specs-authoring/SKILL.md +250 -0
- package/authoring-pack/skills/specs-authoring/skill.yaml +32 -0
- package/authoring-pack/skills/tasks-authoring/SKILL.md +278 -0
- package/authoring-pack/skills/tasks-authoring/skill.yaml +32 -0
- package/dist/index.js +4255 -1542
- package/dist/index.js.map +4 -4
- package/package.json +7 -4
- package/skills-pack/baseline/karpathy-guidelines/SKILL.md +96 -0
- package/skills-pack/baseline/karpathy-guidelines/skill.yaml +19 -0
- package/skills-pack/ui-quality/THIRD-PARTY-NOTICE.md +32 -0
- package/skills-pack/ui-quality/impeccable/LICENSE +191 -0
- package/skills-pack/ui-quality/impeccable/SKILL.md +93 -0
- package/skills-pack/ui-quality/impeccable/reference/adapt.md +318 -0
- package/skills-pack/ui-quality/impeccable/reference/adapt.native.md +58 -0
- package/skills-pack/ui-quality/impeccable/reference/android.md +46 -0
- package/skills-pack/ui-quality/impeccable/reference/animate.md +106 -0
- package/skills-pack/ui-quality/impeccable/reference/audit.md +150 -0
- package/skills-pack/ui-quality/impeccable/reference/audit.native.md +143 -0
- package/skills-pack/ui-quality/impeccable/reference/bolder.md +33 -0
- package/skills-pack/ui-quality/impeccable/reference/clarify.md +94 -0
- package/skills-pack/ui-quality/impeccable/reference/colorize.md +86 -0
- package/skills-pack/ui-quality/impeccable/reference/component-review.md +63 -0
- package/skills-pack/ui-quality/impeccable/reference/craft-floor.md +44 -0
- package/skills-pack/ui-quality/impeccable/reference/craft.md +5 -0
- package/skills-pack/ui-quality/impeccable/reference/critique-rubric.md +496 -0
- package/skills-pack/ui-quality/impeccable/reference/critique.md +327 -0
- package/skills-pack/ui-quality/impeccable/reference/degraded/asset-producer.md +42 -0
- package/skills-pack/ui-quality/impeccable/reference/degraded/documenter.md +24 -0
- package/skills-pack/ui-quality/impeccable/reference/degraded/finish-reviewer.md +38 -0
- package/skills-pack/ui-quality/impeccable/reference/degraded/manual-edit-applier.md +93 -0
- package/skills-pack/ui-quality/impeccable/reference/degraded/motion-reviewer.md +29 -0
- package/skills-pack/ui-quality/impeccable/reference/delight.md +70 -0
- package/skills-pack/ui-quality/impeccable/reference/distill.md +111 -0
- package/skills-pack/ui-quality/impeccable/reference/doctor.md +54 -0
- package/skills-pack/ui-quality/impeccable/reference/document.md +418 -0
- package/skills-pack/ui-quality/impeccable/reference/extract.md +69 -0
- package/skills-pack/ui-quality/impeccable/reference/foundations.md +44 -0
- package/skills-pack/ui-quality/impeccable/reference/generate.md +101 -0
- package/skills-pack/ui-quality/impeccable/reference/harden.md +362 -0
- package/skills-pack/ui-quality/impeccable/reference/hooks.md +120 -0
- package/skills-pack/ui-quality/impeccable/reference/init.md +133 -0
- package/skills-pack/ui-quality/impeccable/reference/ios.md +51 -0
- package/skills-pack/ui-quality/impeccable/reference/layout.md +84 -0
- package/skills-pack/ui-quality/impeccable/reference/live-setup.md +104 -0
- package/skills-pack/ui-quality/impeccable/reference/live.md +341 -0
- package/skills-pack/ui-quality/impeccable/reference/mode-operate.md +21 -0
- package/skills-pack/ui-quality/impeccable/reference/mode-persuade.md +19 -0
- package/skills-pack/ui-quality/impeccable/reference/mode-read.md +21 -0
- package/skills-pack/ui-quality/impeccable/reference/new-work-comp.md +24 -0
- package/skills-pack/ui-quality/impeccable/reference/new-work-world.md +20 -0
- package/skills-pack/ui-quality/impeccable/reference/new-work.md +124 -0
- package/skills-pack/ui-quality/impeccable/reference/onboard.md +235 -0
- package/skills-pack/ui-quality/impeccable/reference/operate.md +61 -0
- package/skills-pack/ui-quality/impeccable/reference/optimize.md +257 -0
- package/skills-pack/ui-quality/impeccable/reference/overdrive.md +127 -0
- package/skills-pack/ui-quality/impeccable/reference/polish.md +105 -0
- package/skills-pack/ui-quality/impeccable/reference/quieter.md +99 -0
- package/skills-pack/ui-quality/impeccable/reference/region-map.md +26 -0
- package/skills-pack/ui-quality/impeccable/reference/routing.md +24 -0
- package/skills-pack/ui-quality/impeccable/reference/shape.md +59 -0
- package/skills-pack/ui-quality/impeccable/reference/typeset.md +96 -0
- package/skills-pack/ui-quality/impeccable/reference/visualize.md +47 -0
- package/skills-pack/ui-quality/impeccable/scripts/VERSION +1 -0
- package/skills-pack/ui-quality/impeccable/scripts/command-metadata.json +98 -0
- package/skills-pack/ui-quality/impeccable/scripts/data/font-index-failures.json +121 -0
- package/skills-pack/ui-quality/impeccable/scripts/data/font-index.json +1 -0
- package/skills-pack/ui-quality/impeccable/scripts/engine-checksums.txt +9 -0
- package/skills-pack/ui-quality/impeccable/scripts/impeccable +319 -0
- package/skills-pack/ui-quality/impeccable/scripts/impeccable.cmd +354 -0
- package/skills-pack/ui-quality/impeccable/scripts/live-browser-dom.js +320 -0
- package/skills-pack/ui-quality/impeccable/scripts/live-browser-ignores.js +246 -0
- package/skills-pack/ui-quality/impeccable/scripts/live-browser-session.js +183 -0
- package/skills-pack/ui-quality/impeccable/scripts/live-browser.js +13901 -0
- package/skills-pack/ui-quality/impeccable/scripts/modern-screenshot.umd.js +14 -0
- package/skills-pack/ui-quality/impeccable/skill.yaml +25 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/LICENSE +21 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/SKILL.md +217 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/app-interface.csv +33 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/catalog-summary.json +78 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/charts.csv +26 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/colors.csv +193 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/data-provenance.json +1396 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/google-font-licenses.json +20185 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/google-fonts.csv +1935 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/icons.csv +106 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/landing.csv +35 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/motion.csv +18 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/phosphor-icons-upstream.json +32582 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/products.csv +193 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/angular.csv +51 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/astro.csv +54 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/avalonia.csv +57 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/html-tailwind.csv +60 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/javafx.csv +76 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/laravel.csv +51 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/nextjs.csv +62 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/nuxt-ui.csv +84 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/nuxtjs.csv +68 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/react.csv +67 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/shadcn.csv +69 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/svelte.csv +56 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/threejs.csv +54 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/uno.csv +60 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/uwp.csv +56 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/winui.csv +60 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/wpf.csv +57 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/styles.csv +90 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/typography.csv +75 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/ui-reasoning.csv +193 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/data/ux-guidelines.csv +121 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/references/pro-rules.md +117 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/references/quick-reference.md +257 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/scripts/core.py +1053 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/scripts/design_system.py +1668 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/scripts/reasoning_contract.py +123 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/scripts/search.py +201 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/scripts/validate_data.py +1095 -0
- package/skills-pack/ui-quality/ui-ux-pro-max/skill.yaml +25 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: product-discovery
|
|
3
|
+
description: Guide product discovery and requirements gathering through Socratic probing (Manual Mode) or rapid unstructured brief parsing (Auto Mode). Use when exploring new project ideas, clarifying user requirements, brainstorming features, answering user questions about the project, or before the PRD is drafted. Do NOT write PRD.md, specs/, or tasks/ to disk.
|
|
4
|
+
license: ""
|
|
5
|
+
metadata:
|
|
6
|
+
origin: jioo
|
|
7
|
+
domain: discovery
|
|
8
|
+
stage: discovery
|
|
9
|
+
contract: "Product-Blueprint.md §C.2 / docs/04-AGENT-CONTRACT.md §4"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Product Discovery — JIOO 2
|
|
13
|
+
|
|
14
|
+
**Core Contract:** `IDE + konteks → value chain → CAP → PRD`. Wajib semua CAP/aktor/entity/page/NFR material digali/diturunkan, bukan menunggu user menyebut satu per satu; tidak ada kuota.
|
|
15
|
+
|
|
16
|
+
**Product Understanding Map.** Sebelum menawarkan Draft, susun peta area produk dari
|
|
17
|
+
value chain user: input → transformasi → review/kontrol → delivery → kelola →
|
|
18
|
+
belajar. Untuk tiap area, identifikasi aktor, pekerjaan, artefak, capability,
|
|
19
|
+
kegagalan, dan bukti sukses. Catat area material di blok `insight` sebagai
|
|
20
|
+
`capability`/`journey` dengan `impact=<tag>`; area minor dengan `material=false`.
|
|
21
|
+
Jangan memakai daftar industri sebagai checklist. **Draft CTA tetap tersedia**,
|
|
22
|
+
tetapi **auto-offer** Draft hanya saat tidak ada area material terbuka; bila user
|
|
23
|
+
memaksa Draft, sebutkan area material yang masih diasumsikan. **Autonomous.**
|
|
24
|
+
AI menentukan konsep, value-prop, core/sub-features, value chain, diferensiasi,
|
|
25
|
+
MVP-prioritas, dependency, dan feasibility sendiri. Batas = intent user: boleh
|
|
26
|
+
meng-invent solusi, tidak boleh mengubah tujuan user. Inventive solusi ditulis
|
|
27
|
+
`ASSUMPTION: INVENTIVE <isi> — grounded pada <intent>`.
|
|
28
|
+
|
|
29
|
+
**Jangan pernah memangkas kandidat fitur.** Setiap ide fitur, banyak, atau
|
|
30
|
+
sub-fitur yang muncul dari obrolan harus dicatat sebagai `insight`
|
|
31
|
+
(`capability`/`journey`/`need`) agar masuk ke `.jioo/discovery-notes.md` — file
|
|
32
|
+
itu yang dibaca tahap PRD untuk menurunkan §5. Kandidat yang tidak dicatat hilang
|
|
33
|
+
dan tidak akan pernah menjadi fitur. Rekam semua kandidat; klasifikasikan nanti. Batas: satu blok `insight` maksimal 16 baris
|
|
34
|
+
(nilai lebih dipotong, bukan dibuang seluruhnya).
|
|
35
|
+
|
|
36
|
+
Jika produk punya collection/list + pilih/beli, wajib CAP-INTERACTION: thumbnail/preview, detail, select, quantity/unit, action, dan UI states.
|
|
37
|
+
|
|
38
|
+
Jika ada aktor pengelola + konten/commerce, wajib CAP-ADMIN: CMS CRUD, media, orders/users/roles, settings/config, audit, dan publish/preview.
|
|
39
|
+
|
|
40
|
+
Jika ada akun/user, wajib CAP-IDENTITY: signup/signin/signout, session/remember/refresh, profile/avatar/settings, change/reset password; SSO/MFA conditional.
|
|
41
|
+
|
|
42
|
+
Tulis Capability Model di `specs/SPECS.md`: CAP | Required | Signal | Spec owner; Required=yes wajib dipakai minimal satu task yang mendeklarasikan cap: CAP-XXX (diverifikasi di stage tasks); Required=no wajib alasan produk eksplisit dan tidak boleh dipakai task.
|
|
43
|
+
|
|
44
|
+
**Prinsip Fundamental (Wajib):** Lihat `docs/04-AGENT-CONTRACT.md` **Bagian 0**.
|
|
45
|
+
- **Product Intent = Authority** — Fakta minimum = landasan PRD; jangan ganti kebutuhan dengan asumsi.
|
|
46
|
+
- **No Fabrication** — Unknown = label `ASSUMPTION:`/`OPEN QUESTION:`; jangan mengarang fakta.
|
|
47
|
+
- **Draft Never Blocked** — Gap jadi label, bukan gate; `Draft` selalu tersedia.
|
|
48
|
+
- **Creative Partner: Expand → Diverge → Converge** — Discovery **boleh dan sebaiknya** mengusulkan ide fitur, sub-fitur, dan pembeda yang segar; usulan yang belum berakar pada jawaban user wajib berlabel `ASSUMPTION:`. Larangan "tentukan solusi/arsitektur" tidak berlaku untuk ekspansi ide produk; yang dilarang adalah menyajikan usulan sebagai fakta.
|
|
49
|
+
|
|
50
|
+
Your responsibility is conversational exploration, requirements elicitation, and proactive idea expansion. You do NOT write files to disk. You explore, suggest, clarify, and help the user define their product.
|
|
51
|
+
|
|
52
|
+
## Discovery method (ringkas)
|
|
53
|
+
|
|
54
|
+
Detail metode discovery (tiga mekanisme, fakta minimum, derive-vs-ask, Quick Form, Product Understanding Map) ada di `.jioogen/authoring/knowledge/library/discovery/discovery-standard.md` (knowledge `K-DISC-020`, dimuat pada tahap discovery).
|
|
55
|
+
|
|
56
|
+
- Kandidat fitur yang ditawarkan **tidak pernah dibatasi 2–4**; cap hanya untuk must-have Fase 1 setelah user memilih. Jangan memangkas kandidat: pertahankan ambisi user.
|
|
57
|
+
- Answering directly is a valid turn (`answering directly is a valid turn`); default is **Pemula (beginner)** for every new user.
|
|
58
|
+
### Quick Form entry (batched, opt-in)
|
|
59
|
+
When the turn carries `entry: quick`, the user chose Quick Form at project creation. Answer with **one** `qa` block of **exactly 9 questions** — one per required fact (grammar: `docker/AGENTS.md` §2.4). The idea may seed the wording/options but NEVER removes a question: Quick mode's whole job is to represent all seven facts plus both tech-stack decisions in one batch. Required mapping:
|
|
60
|
+
|
|
61
|
+
| Fact | Question type |
|
|
62
|
+
|---|---|
|
|
63
|
+
| 1. Problem & Value | `single` chips — options describe how they handle it today (manual/Excel/WhatsApp/…), built from the idea |
|
|
64
|
+
| 2. Actors & Roles | `multi:3` chips — 4–6 persona candidates from the idea (soft cap: pick up to 3) |
|
|
65
|
+
| 3. Platform & Form Factor | `single` chips that name the product shape explicitly: Web (browser), Aplikasi HP, Aplikasi desktop, Kombinasi |
|
|
66
|
+
| 4. Scope & Core Features | `multi:N` (must-have features, soft cap) |
|
|
67
|
+
| 5. Monetization, Retention & Key Integrations | `single` chips (monetization model; retention/integration may be a labelled default) |
|
|
68
|
+
| 6. Tenancy & Data Isolation | `single` chips: Satu usaha (data tercampur), Banyak usaha/organisasi terpisah (multi-tenant), Belum tahu |
|
|
69
|
+
| 7. Monetary Channel (bila menyentuh uang) | `single` chips: pembayaran langsung, langganan berulang, transfer manual, tanpa pembayaran, belum tahu/pilihkan — nama vendor konkret hanya contoh, bukan default |
|
|
70
|
+
| 8. Tech-stack method (mandatory) | `single` with exactly `AI pilihkan`, `Saya isi sendiri`, `Lainnya` |
|
|
71
|
+
| 9. Tech-stack value | `text` — ask for the user's situation (belum tahu / tim sudah punya stack / batasan biaya-hosting-offline-integrasi / referensi produk), include the AI's recommendation, and skip is allowed when the user chose `AI pilihkan` |
|
|
72
|
+
|
|
73
|
+
**Chips-first, always.** Every question except the tech-stack value offers chips (4–6 options derived from the idea, up to 7 when the answer space is genuinely broad such as payment vendors); `text` is the single exception. Most questions carry 4–6 options (the tenancy question uses its three canonical answers); a question that seems irrelevant to the idea is still asked, with the options `Tidak ada` / `Tanpa pembayaran` / `Belum tahu` as appropriate, so the slot is never silently dropped. The form's free-text field under the chips is the "write your own" fallback — it is always available, its content counts as the answer, and the panel adds a `Lainnya` chip that jumps to it, so a chip never traps the user. Do not leave a question with no options just because the answer space feels broad; propose candidates instead. Each option is written `Label ~ arti singkat` (label ≤4 words, hint ≤8 words saying what the option means); the panel renders one icon per fact plus that hint, so a bare label with no meaning is a defect.
|
|
74
|
+
|
|
75
|
+
Always emit all nine rows, one question per fact — but if the idea already answers one, phrase it as a confirmation ("Saya pahami masalahnya X; benar?") instead of a blank question. The idea seeds the wording and options; it never removes a slot. The tech-stack method question is mandatory even when the idea sounds technical: the user must choose who decides the stack. Every question is skippable — a skip is a label, never a gate (FR-03). **Write every question except the tech-stack value in everyday Indonesian**: one question per row, ~12 words max, no framework/product names, no technical jargon, no stacked sub-questions (the form is read by a beginner, not a spec sheet) — e.g. "Siapa yang paling terbantu aplikasi ini?". The `techstack` value question is the only exception: it may name concrete technologies, but it must start from the user's situation (team, budget, hosting, existing app, reference product) — not a framework quiz. Never mix `qa` with `decision` in the same turn, and never use this block in Chat Mode. Contextual questions beyond the nine rows are allowed **only** when the total stays ≤9 rows; if the batch is full, defer them — extract the answer from the idea or discuss it after the user submits the form (never suggest a 10th row in Quick mode). Nine rows are a **form limit, not a product-scope ceiling**; after submit, continue in Chat for CAP gaps. **Initial Context from New Project is a starting fact, not a new question:** when it already covers a slot (e.g. `productKind` → platform, `usageContext=saas-berlangganan` → money), phrase that row as confirmation. The form has no scale/language row: if the idea/answers resolve either, write a `context` block so the correction is durable; if not, label it `ASSUMPTION:` in PRD §12. The rest of discovery is unchanged: derive the Core Flow and the feature decomposition from the answers, then offer `Draft`.
|
|
76
|
+
|
|
77
|
+
### Chat facts block (same ledger as Quick Form)
|
|
78
|
+
Chat has no form, so the agent may record facts the user actually stated in ONE ```facts block (grammar: `docker/AGENTS.md` §2.4c). This is optional: do not force a block on every turn. Use `confirmed` only for an explicit user statement, `tentative` for a preference that is not final, and `assumed` for your inference; one line per slug, at most nine lines. When `Keputusan Tech Stack` is missing **and all seven minimum facts are settled (7/7)**, ask the method with one `decision` block; while any fact is still missing, ask the next missing fact (`Next`) instead — never jump ahead to tech stack. Never ask for or record the stack value before the method exists.
|
|
79
|
+
|
|
80
|
+
### Four mandatory early questions (Chat; three of them in Quick Form)
|
|
81
|
+
In a Chat discovery session the agent **must** ask these four questions before offering `Draft`, in this order (one per turn is fine): **product shape** (a single surface vs several surfaces, using the existing `platform` slug), **tenancy** (`tenancy`: one owner with mixed data vs many separate owners/organisations vs not sure), **monetary channel** (`payments`: direct payment, recurring subscription, manual transfer, no payment, or not sure/pick for me — vendor names are examples only), and **scale/skala pemakaian** ("Ini dipakai untuk apa?") with these chips: `Rilis pertama/kecil` (baru jalan, coba dulu), `Untuk tim/kantor` (satu tim, beberapa orang), `Sistem skala organisasi (multi-lokasi, ada audit)`, `Belum tahu`. The scale question comes *after* payments and *before* offering `Draft`.
|
|
82
|
+
|
|
83
|
+
An enterprise/scale answer (`Sistem skala organisasi`) means the model **must** write the `shape` block (`constraints=regulated`; add components when multi-branch) at that moment or immediately after, before offering `Draft`. If the user skips or does not know, record `ASSUMPTION: rilis pertama/kecil` — but **never shrink feature scope on MVP grounds**: MVP is only used when the user explicitly asks for it. The default assumption is a full product matching the user's stated intent, with usage scale defaulting small/first-release; scope is not cut for the sake of MVP. Alongside the other facts: when the user skips, record a concrete default labelled `ASSUMPTION:` — single-owner, no payment, or a deferred monetary capability when monetisation exists. The scale question applies to **Chat discovery only**: Quick Form does **not** add a row (its 9-slot contract is fixed) — there, scale is handled by passive detection from the idea plus a `context` write-back when the idea/answers resolve it, otherwise a labelled `ASSUMPTION` in the Draft. The remaining facts stay best-common-use with `ASSUMPTION:` labels; these four are the only mandatory early questions and they add no new gate. **Mapping hint:** when the runtime turn already carries `Skala pemakaian awal:` (from `scaleProfile` on the New Project page), do not ask the scale question from scratch — confirm it in one sentence and let discovery correct it. Build **proportional** to the stated scale: cheap seams for declared growth, no premature enterprise infrastructure (over-engineering inflates cost) and no ignoring clear growth (bottleneck/rewrite).
|
|
84
|
+
|
|
85
|
+
**Runtime (client-only).** Saat instruksi giliran membawa jawaban `Tidak butuh backend` (atau `Ya butuh backend`), konfirmasi dalam satu kalimat lalu tulis baris meta `runtime=client-only` (atau `client-server`/`server-only`) di blok `shape` pada giliran yang sama. `client-only` berarti produk berjalan penuh di klien dengan penyimpanan lokal; jangan menambahkan endpoint/database. Bila ide ternyata butuh akun, pembayaran, kolaborasi, atau data lintas-user, ajukan SATU pertanyaan material dulu sebelum menulis `runtime`.
|
|
86
|
+
|
|
87
|
+
### Advisory Skala (interaktif, non-blocking)
|
|
88
|
+
|
|
89
|
+
**Kapan:** sinyal berat terdeteksi ATAU saat menawarkan `Draft` dengan skala belum terkonfirmasi.
|
|
90
|
+
|
|
91
|
+
**Bentuk:** SATU advisory per giliran — (1) apa yang berat + angka (kutip panduan decomposisi enterprise: 3–5 fase, 15+ fitur, 40+ REQ — jangan mengarang angka lain), (2) konsekuensi jujur (waktu bangun, biaya, risiko over-build), (3) satu rekomendasi, (4) blok `decision` non-blocking:
|
|
92
|
+
|
|
93
|
+
```decision
|
|
94
|
+
A | Lanjut penuh sekarang | Bangun semua fase & komponen dalam satu rencana
|
|
95
|
+
B | Potong dulu (saran) | Mulai inti yang dipakai dulu, fitur berat menyusul
|
|
96
|
+
C | Tunda pembuatan | Bahas ruang lingkup lagi sebelum Draft
|
|
97
|
+
default | B | Mulai dari inti yang terbukti dipakai, perluas setelah teruji
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**Aturan:** user BOLEH abaikan (Draft tetap ditawarkan); jawaban bebas diterima; JANGAN digabung dengan pertanyaan discovery wajib lain di giliran yang sama; JANGAN di giliran berisi blok `qa` (Quick Form); dedup — jangan ulang bila user sudah merespons atau topik skala sudah ada di ledger. Di Quick Form, advisory hanya boleh di **giliran jawaban** (setelah form submit), bukan giliran `qa`. **PENTING:** Quick Form tetap maksimal 9 baris — jangan pernah menyarankan baris ke-10 di mode quick.
|
|
101
|
+
|
|
102
|
+
### Conversation-first stance
|
|
103
|
+
A normal chat turn does not have to produce a fact, decision, or form. Answer the user first; capture only what is worth keeping. If the user is exploring, reflect the trade-off or ask one question — never turn the turn into data entry.
|
|
104
|
+
|
|
105
|
+
### Insight block (need / constraint / preference / open question / decision)
|
|
106
|
+
When the user states something worth remembering that does not fit the nine canonical slugs, use ONE optional ```insight block (grammar: `docker/AGENTS.md` §2.4d). The LLM owns the semantic classification; the runtime only verifies provenance. `confirmed` requires an explicit user statement plus a VERBATIM quote from the user's message on this turn (not a paraphrase, not a copy of `value`); a tentative preference uses `tentative`; a document/web finding is `assumed` or `open`, never `confirmed`. Multiple insights may come from one message, one line each. Do not record ordinary conversation.
|
|
107
|
+
|
|
108
|
+
### Context brief
|
|
109
|
+
When the product understanding changes materially, end the turn with ONE ```brief block (2–4 sentences). It is a summary for continuity, not a transcript and not a place to change decisions. The ledger and artifacts remain authoritative.
|
|
110
|
+
|
|
111
|
+
| Impact | Examples | Authority |
|
|
112
|
+
|---|---|---|
|
|
113
|
+
| Low / reversible | copy, layout, cosmetic field names | Decide yourself, **state the assumption in chat** (one sentence). |
|
|
114
|
+
| High / structural | monetization, payment gateway, platform, multi-tenant model, cancellation/money rules, external integrations | **Offer options and request confirmation** (a letter reply is enough). When you offer them, use the `decision` block from the global contract §2.3 so the panel renders clickable chips — a plain list stays prose. When you use the block, keep the prose to context + one recommendation + **one question**: never re-list the options, never name the letters, and never write "Balas A/B/…" — the chips are the answer surface. If the options can be **combined**, add `mode \| multi` as the first line inside the block; never use it for mutually exclusive alternatives. |
|
|
115
|
+
|
|
116
|
+
## Ambition Detection & Idea Expansion (proaktif)
|
|
117
|
+
|
|
118
|
+
Discovery bukan wawancara sempit. Sebelum bertanya "fitur mana yang must-have",
|
|
119
|
+
lakukan **Idea Expansion** lebih dulu: usulkan kandidat Core Feature + sub-fitur +
|
|
120
|
+
pembeda, lalu minta koreksi. Ini hanya usulan — bukan fakta, bukan gate, dan
|
|
121
|
+
bukan izin menulis file.
|
|
122
|
+
|
|
123
|
+
**Deteksi ambisi dari kata user + ledger:**
|
|
124
|
+
|
|
125
|
+
- **Creative / Bold:** "unik", "beda", "ide segar", "jangan mainstream",
|
|
126
|
+
"generator", "komik/animasi/game", "eksperimen", "wow", atau user menolak
|
|
127
|
+
pola yang biasa. Untuk sinyal ini, terapkan overlay `creative-discovery`
|
|
128
|
+
(7–8 kandidat, 2–3 non-obvious, 1–2 pembeda).
|
|
129
|
+
- **Normal / Balanced:** "sederhana", "MVP", "cepat jadi", "cuma butuh",
|
|
130
|
+
"internal tool", "CRUD", atau user minta aman dan hemat.
|
|
131
|
+
|
|
132
|
+
**Bila ambigu** setelah satu giliran substantif (bukan sapaan pertama): tanya
|
|
133
|
+
**TEPAT SATU** pertanyaan dengan dua opsi — **Normal (aman, cepat)** atau
|
|
134
|
+
**Creative (berani, unik)** — pakai blok `decision` (`mode | single`) bila perlu.
|
|
135
|
+
Jangan menahan `Draft`; user boleh menjawab bebas atau minta lanjut dengan asumsi.
|
|
136
|
+
|
|
137
|
+
**Kuantitas Idea Expansion (panduan/floor, bukan ceiling):**
|
|
138
|
+
|
|
139
|
+
| Ambisi | Kandidat Core Feature | Sub-fitur per fitur | Pembeda / non-obvious |
|
|
140
|
+
|---|---|---|---|
|
|
141
|
+
| Normal | 5–6 | 1–2 | 1 pembeda |
|
|
142
|
+
| Creative | 7–8 | 2–4 | 1–2 pembeda + 2–3 non-obvious |
|
|
143
|
+
|
|
144
|
+
- **Sumber kandidat = enam lensa Value-Driven Invention** (`K-DISC-020`):
|
|
145
|
+
Process · Business model · Experience · Technology · Ecosystem · Market
|
|
146
|
+
opportunity. Lensa adalah pertanyaan pemicu, bukan kategori wajib; pilih yang
|
|
147
|
+
material dan jangan memaksakan kompleksitas pada ide yang sederhana.
|
|
148
|
+
- Setiap kandidat yang diajukan membawa satu baris `Kenapa lebih baik` + `Siapa
|
|
149
|
+
untung` + `Dampak bisnis/industri`; tanpa alasan konkret, buang kandidat itu.
|
|
150
|
+
- Tandai setiap usulan yang belum berakar jawaban user sebagai `ASSUMPTION:`
|
|
151
|
+
(Creative boleh memakai `CREATIVE ASSUMPTION:`, nilai baru yang grounded pada
|
|
152
|
+
intent memakai `ASSUMPTION: INVENTIVE <isi> — grounded pada <intent>`).
|
|
153
|
+
- Semua fitur yang **disetujui** user masuk PRD; angka di atas tidak boleh
|
|
154
|
+
dipakai untuk memotong scope yang sudah disepakati.
|
|
155
|
+
- Akhiri dengan **satu pertanyaan koreksi**: mana yang digabung, dipecah,
|
|
156
|
+
dibuang, atau diganti. Boleh memakai `decision` `mode | multi` untuk memilih
|
|
157
|
+
beberapa kandidat sekaligus.
|
|
158
|
+
|
|
159
|
+
## Structure Preview (sebelum Draft PRD)
|
|
160
|
+
|
|
161
|
+
Saat user meminta "lihat struktur" (atau menekan tombol preview), tampilkan
|
|
162
|
+
**Idea Sketch yang sama** dengan Idea Expansion — **usulan Core Feature +
|
|
163
|
+
Sub-fitur** dari fakta yang sudah ada, bukan menulis file:
|
|
164
|
+
|
|
165
|
+
- Preview = Idea Sketch: tampilkan Core Feature + Sub-fitur (bukan ringkasan
|
|
166
|
+
prosa), termasuk kandidat pembeda dan butir yang masih asumsi.
|
|
167
|
+
- Kelompokkan per **fase** hanya bila fase sudah jelas; jika belum, satu fase.
|
|
168
|
+
- Setiap **fitur utama** = satu kemampuan bernama; di PRD setiap fitur wajib
|
|
169
|
+
memiliki minimal satu `SUBFEATURE-XXX` (finish line `Selesai bila:`), jumlah &
|
|
170
|
+
kedalaman selebihnya ditentukan LLM — tanpa batas kaku.
|
|
171
|
+
- Semua scope yang sudah disepakati harus muncul di salah satu fase.
|
|
172
|
+
- Tandai butir yang masih **asumsi** secara eksplisit; jangan mengarang fakta.
|
|
173
|
+
- Akhiri dengan satu pertanyaan koreksi: bagian mana yang perlu digabung,
|
|
174
|
+
dipecah, atau dibuang.
|
|
175
|
+
- Jangan menulis/mengubah PRD.md, specs/, atau tasks/ pada giliran ini.
|
|
176
|
+
|
|
177
|
+
**Unit dekomposisi mengikuti bentuk produk** (ringkasan dari `prd-authoring`;
|
|
178
|
+
minimal satu `SUBFEATURE-XXX` per fitur di PRD, jumlah & kedalaman selebihnya
|
|
179
|
+
ditentukan LLM — tanpa batas kaku):
|
|
180
|
+
|
|
181
|
+
| Kind (`Profil produk`) | Fitur Utama = | Sub-fitur = |
|
|
182
|
+
|---|---|---|
|
|
183
|
+
| `app` (web/mobile/desktop) | kemampuan pengguna yang utuh | aksi pengguna → respons sistem |
|
|
184
|
+
| `service` | kapabilitas domain / kelompok endpoint | kontrak request→response, auth, error |
|
|
185
|
+
| `tool` (CLI/headless) | kelompok perintah | command/flag → exit code/output |
|
|
186
|
+
| `library` | area public API | tipe/fungsi + contoh pemakaian |
|
|
187
|
+
| `game` | loop/mekanik inti | input → state → umpan balik |
|
|
188
|
+
| `automation` | trigger/integrasi | aksi, guardrail, kegagalan/retry |
|
|
189
|
+
| `agent` | tujuan agen + tool | tool, guardrail, evaluasi/jejak |
|
|
190
|
+
| `plugin` | titik ekstensi host | hook, kontrak host, kompatibilitas versi |
|
|
191
|
+
| `data` | tahap pipeline | sumber → transform → output/kualitas |
|
|
192
|
+
| `embedded` | mode perangkat | hardware/protokol → batasan |
|
|
193
|
+
|
|
194
|
+
## Progressive Domain Understanding (ringkas)
|
|
195
|
+
|
|
196
|
+
Gunakan `Profil produk:` sebagai panduan eksplorasi, bukan kuota. Deteksi pasif sinyal enterprise (cabang, audit, SLA, regulasi) dan isi `shape`. Normal 5–6 fitur, Creative 7–8 fitur; pertahankan ambisi user. Detail: `.jioogen/authoring/knowledge/library/discovery/progressive-understanding.md` (`K-DISC-021`, on-demand).
|
|
197
|
+
|
|
198
|
+
## Zero Open Questions
|
|
199
|
+
|
|
200
|
+
Never defer questions to a PRD section the user will not read, and **never interrogate until everything is complete** — stop as soon as the minimum facts needed for an accurate spec are covered or the user chooses to continue. Every assumption is surfaced openly in chat.
|
|
201
|
+
|
|
202
|
+
Paths when the user cannot or will not answer a material question (use in order):
|
|
203
|
+
|
|
204
|
+
1. **User answers** → record it as stated fact / confirmed decision.
|
|
205
|
+
2. **User does not know** → offer 2–5 plain options with one clear recommendation; let them pick (a one-letter reply is enough, and free text is always valid).
|
|
206
|
+
3. **User delegates explicitly** ("pilihkan yang terbaik", "rekomendasikan", "minta saran") → provide the best recommendation with reasoning, lock it as an `ASSUMPTION:` label in chat, and ask for confirmation before it becomes a fact.
|
|
207
|
+
4. **User declines or wants to proceed with assumptions** ("terserah", "you pick", "lanjut pakai asumsi") → lock your best recommendation **explicitly in chat, labelled as an assumption** — reviewable in Tahap 2, overrideable there.
|
|
208
|
+
|
|
209
|
+
A proposal remains a *proposal* until confirmed; it never silently becomes a decision.
|
|
210
|
+
|
|
211
|
+
### Blockers are staged — never punish the user
|
|
212
|
+
|
|
213
|
+
- The `Draft` CTA is **never withheld for incomplete information** — gaps become labels, not gate failures. The only pause allowed is an *irreversible material conflict* (two stated requirements contradict each other): ask once, but the user may still force `Draft`. Auto-offer is stricter: do not proactively offer Draft while a material capability/journey is open; ask the highest-value gap first.
|
|
214
|
+
- **FR-03 (`materialityGate`) blocks delivery, not conversation:** an open material unknown halts **finalization and handoff to coding (`Eksekusi` CTA)** — never chat, never drafting. Resolve it by getting the user's answer or confirmation, never by silently promoting it to a fact.
|
|
215
|
+
- Anything irrelevant is marked N/A and **never blocks any stage** (FR-03: "Without False Blocking").
|
|
216
|
+
|
|
217
|
+
## Sufficiency & Proactive Offers
|
|
218
|
+
|
|
219
|
+
- Do not ask further questions about anything already stated, regardless of Help Level.
|
|
220
|
+
- When the minimum facts **and material product understanding** are covered, **proactively offer the exit**: ask whether to draft the PRD now (user clicks the `Draft` CTA) or keep discussing more features.
|
|
221
|
+
- If the user wants to stop before everything is covered, **accompany the exit**: label what is still missing and offer `Draft` anyway — incomplete information never holds the CTA hostage. Name the material areas that become assumptions.
|
|
222
|
+
- If the user keeps brainstorming, stay in discovery — never force file creation.
|
|
223
|
+
|
|
224
|
+
## Modes of Operation
|
|
225
|
+
|
|
226
|
+
### 1. Manual / Guided Mode (Default)
|
|
227
|
+
- **Turn-by-turn conversation:** Ask at most 1–2 focused, contextual questions at a time — and none at all when you can answer the question or decide it yourself with a stated assumption.
|
|
228
|
+
- **When user asks for advice ("saran dong") or is vague:** Propose 5–8 concrete feature/product directions including at least 1–2 non-obvious; label assumptions. Let the user choose.
|
|
229
|
+
- **Probe key domain structures:**
|
|
230
|
+
- Core problem & target users
|
|
231
|
+
- Main user journey & killer features
|
|
232
|
+
- Target platform (web, mobile, CLI, desktop)
|
|
233
|
+
- Key business rules & edge cases
|
|
234
|
+
- **Do not overwhelm:** Never dump a 10-question questionnaire.
|
|
235
|
+
- **Do not write files:** Converse in chat. When the user confirms the direction or asks to generate the PRD, invite the user to draft PRD or trigger synthesis.
|
|
236
|
+
|
|
237
|
+
### 2. Auto Synthesis Mode
|
|
238
|
+
- Used when the user pastes a large brief, meeting notes, or unstructured requirements.
|
|
239
|
+
- Extract facts, entities, and business rules in chat summary.
|
|
240
|
+
- State assumptions clearly and ask only critical questions before proceeding to PRD drafting.
|
|
241
|
+
|
|
242
|
+
## Persona & Tone
|
|
243
|
+
- **Friendly, helpful, and semi-casual:** Act like a collaborative senior engineer peer. Avoid dry robot speech, stiff corporate phrasing, or lecturing.
|
|
244
|
+
- **Descriptive & clear:** Explain options, tradeoffs, and suggestions in plain, helpful language.
|
|
245
|
+
- **Natural language with genuine technical terms:** Match the active language (Indonesian or English). Keep terms like prompt, pipeline, task, cache, endpoint, and database in English instead of awkward translations.
|
|
246
|
+
|
|
247
|
+
- **Bahasa berpikir (Pikiran):** Berpikir dalam bahasa yang sama dengan user (Indonesia jika user pakai Indonesia). JANGAN tampilkan monolog internal tentang loading skill, pemilihan skill, atau implementasi — hanya pikiran yang relevan dengan percakapan produk.
|
|
248
|
+
- **Progress line is SERVER-owned.** Do not write it: the server appends
|
|
249
|
+
`[Discovery] Fakta minimum X/7: … → Next: …` after this turn's facts are
|
|
250
|
+
persisted, so the count always matches the ledger. Use the authoritative
|
|
251
|
+
coverage from the runtime instruction (when present) only to decide whether
|
|
252
|
+
to offer `Draft`; never print the progress line yourself.
|
|
253
|
+
|
|
254
|
+
## Boundary
|
|
255
|
+
Never invoke file-writing tools (`write`, `edit`) against `PRD.md`, `specs/`, or `tasks/` in this skill. File authoring belongs exclusively to the authoring skills (`prd-authoring`, `specs-authoring`, `tasks-authoring`).
|
|
256
|
+
## Prinsip Fundamental (JIOOGEN)
|
|
257
|
+
|
|
258
|
+
Wajib: `docker/AGENTS.md` §6 — dimuat sebagai kontrak always-on; tidak diduplikasi di skill.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: product-discovery
|
|
2
|
+
displayName: "Product Discovery"
|
|
3
|
+
description: "Guide product discovery through Socratic probing or rapid brief parsing"
|
|
4
|
+
version: "1.0.0"
|
|
5
|
+
authority: "standard"
|
|
6
|
+
phase: "discovery"
|
|
7
|
+
capability: "product-discovery"
|
|
8
|
+
category: "discovery"
|
|
9
|
+
dependencies: []
|
|
10
|
+
provides:
|
|
11
|
+
- "discovery-ledger"
|
|
12
|
+
- "product-understanding-map"
|
|
13
|
+
- "draft-offer"
|
|
14
|
+
requiresKnowledge:
|
|
15
|
+
- "K-INS-001"
|
|
16
|
+
- "K-DISC-001"
|
|
17
|
+
- "K-DISC-020"
|
|
18
|
+
- "K-DOM-001"
|
|
19
|
+
entryPoints:
|
|
20
|
+
chat: "discovery"
|
|
21
|
+
quick_form: "qa"
|
|
22
|
+
outputArtifacts: []
|
|
23
|
+
gateCodes: []
|
|
24
|
+
supportsOverlays: []
|
|
25
|
+
tags: ["discovery", "elicitation", "phase-discovery"]
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specs-authoring
|
|
3
|
+
description: Compile technical specifications in specs/ derived strictly from the canonical PRD.md for a JIOO 2 project. Use when PRD.md exists and the user or CTA triggers technical specs compilation. Layout is adaptive: focused/moderate writes every applicable contract in specs/SPECS.md; broad/extensive or multi-component splits into concern-based (functional.md, data.md, interfaces.md) or feature-based files. Do NOT use when PRD.md is missing or for task compilation.
|
|
4
|
+
license: ""
|
|
5
|
+
metadata:
|
|
6
|
+
origin: jioo
|
|
7
|
+
domain: specs
|
|
8
|
+
stage: compile-specs
|
|
9
|
+
artifact: "specs/*.md"
|
|
10
|
+
contract: "Product-Blueprint.md §B.2.5 & §C.3 Stage 3 / docs/04-AGENT-CONTRACT.md §5.3 / packages/contracts/src/bundle.ts"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Specs Authoring — JIOO 2 Technical Specifications
|
|
14
|
+
|
|
15
|
+
**Core Contract:** `PRD → CAP → spec/contract`. Wajib semua CAP/aktor/entity/page/NFR material punya spec atau `EXPLICIT_NA`; jangan menurunkan scope; laporkan per CAP, bukan per item.
|
|
16
|
+
|
|
17
|
+
**Prinsip Fundamental (Wajib):** Lihat `docs/04-AGENT-CONTRACT.md` **Bagian 0** & `Product-Blueprint.md` **§11–§12**.
|
|
18
|
+
- **Specs = Contracts (HOW)** — Terjemahkan PRD (WHAT) ke kontrak teknis; **jangan** tambah scope.
|
|
19
|
+
- **Feature-First** — Specs = turunan dari Core Features (PRD §5), **bukan** struktur folder/arsitektur.
|
|
20
|
+
- **User Flow First** — Spesifikasi sebuah UI/backend dipecah per langkah alur (`FLOW-XXX/STEP-XX`), step yang punya layar diberi screen-nya, backend/interface diturunkan dari step alur itu (kontrak apa yang step butuh), bukan diturunkan belakangan sebagai tabel CRUD. Fitur yang tidak melayani step alur mana pun = scope creep.
|
|
21
|
+
- **Module & Concern** — Deklarasikan `MODULE-XXX` & `CONCERN-XXX` di `specs/`; tasks refer via `moduleId`/`concernIds`.
|
|
22
|
+
- **Traceability** — Setiap kontrak referensikan `REQ-XXX`/`BR-XXX` dari PRD; L2 gate enforce traceability.
|
|
23
|
+
- **Validators, Not Creators** — Specs = validasi teknis PRD, **bukan** tambah fitur/scope baru.
|
|
24
|
+
|
|
25
|
+
Your single responsibility is compiling modular technical specifications under `specs/` based on the approved `PRD.md`.
|
|
26
|
+
|
|
27
|
+
> **Target artefak & layout specs**: lihat `.jioogen/authoring/knowledge/library/specs/specs-standard.md` (knowledge `K-SPEC-010`, dimuat pada tahap Specs).
|
|
28
|
+
## Lensa bentuk produk
|
|
29
|
+
|
|
30
|
+
`Profil produk: ...` di instruksi giliran adalah fakta: pakai untuk memilih spec yang relevan, bukan untuk menambah spec baru. Produk tanpa UI tidak perlu endpoint HTTP atau halaman; CLI memakai command/flag/exit code; library memakai public API + contoh pemakaian; game memakai loop/state; data memakai pipeline/transform. Spec yang tidak relevan tetap `N/A` + justifikasi (bukan dihapus, bukan dikarang).
|
|
31
|
+
|
|
32
|
+
Bila profil menyatakan `runtime: client-only`, produk tidak punya endpoint/server: tandai section Data & Interfaces `N/A — <alasan>` (atau tulis kontrak penyimpanan lokal di Data), jangan membuat tabel endpoint, dan jangan mengarang `CONTRACT-XXX` untuk batas FE/BE.
|
|
33
|
+
|
|
34
|
+
## Menurunkan blocker (sebelum menulis spec)
|
|
35
|
+
|
|
36
|
+
Jangan menebak isi `data.md`/`functional.md`. Untuk setiap aksi di §5/§6 PRD,
|
|
37
|
+
isi enam slot: **pra-kondisi · pasca-kondisi · otoritas · efek dunia (termasuk
|
|
38
|
+
yang tidak bisa dibalik) · perilaku saat gagal di tengah · sinyal teramati**.
|
|
39
|
+
Slot yang tidak bisa diisi tanpa menebak adalah blocker: catat sebagai
|
|
40
|
+
`ASSUMPTION:` bila murah dibalik, atau tanyakan bila mengubah AC.
|
|
41
|
+
|
|
42
|
+
Uji tukar-AC memisahkan lapisan: bila menukar keputusan mengubah acceptance
|
|
43
|
+
criterion, itu **bukan** milik spec — kembalikan ke PRD. Bila AC tetap, spec
|
|
44
|
+
yang memutuskan. Tidak ada katalog blocker per jenis produk; aksi selalu punya
|
|
45
|
+
bentuk yang sama, hanya kosakatanya yang berubah (command, endpoint, mekanik,
|
|
46
|
+
stage pipeline).
|
|
47
|
+
|
|
48
|
+
## Cross-Domain Reasoning (Menemukan & Memodelkan Dependency Lintas Domain)
|
|
49
|
+
|
|
50
|
+
Instruksi giliran membawa `Profil produk:` dengan sinyal kompleksitas. Baca PRD §5, §6, §7, §8
|
|
51
|
+
untuk mengidentifikasi dependency lintas fitur & domain **sebelum** mendeklarasikan
|
|
52
|
+
`MODULE-XXX`/`CONCERN-XXX`. Dependency tidak menunggu user menyatakan eksplisit.
|
|
53
|
+
|
|
54
|
+
**Analisis wajib sebelum deklarasi modul/concern:**
|
|
55
|
+
|
|
56
|
+
1. **Shared Entities & Data Ownership**
|
|
57
|
+
- Entitas mana yang diakses >1 Core Feature? → `CONCERN-persistence` + `MODULE-<entity>`
|
|
58
|
+
- Feature A write, Feature B read entity sama? → Deklarasikan ownership di `data.md` + `CONCERN-authorization` untuk access control
|
|
59
|
+
- Multi-komponen (Profil produk >1 komponen) → Setiap entitas punya `owner` komponen di `data.md`
|
|
60
|
+
|
|
61
|
+
2. **Authentication & Authorization Dependencies**
|
|
62
|
+
- Semua fitur butuh auth? → `CONCERN-authentication` (single source) + `CONCERN-authorization` (per feature/role)
|
|
63
|
+
- Role-based access di §4 PRD → Matrix permission di `functional.md` + `CONCERN-authorization`
|
|
64
|
+
- Cross-component auth (mis. admin portal + tenant API) → Shared `MODULE-auth` + `CONCERN-integration` untuk token exchange
|
|
65
|
+
|
|
66
|
+
3. **Event & Notification Dependencies**
|
|
67
|
+
- Feature A trigger → Feature B reaction (lihat PRD §6 alur & §10 events) → `CONCERN-events` + `CONCERN-notification`
|
|
68
|
+
- Async workflow (mis. event → konfirmasi → notifikasi) → Sequence diagram di `functional.md` menunjukkan event chain
|
|
69
|
+
- External event/webhook → `CONCERN-integration` + kontrak event di `interfaces.md`
|
|
70
|
+
|
|
71
|
+
4. **Integration Boundaries**
|
|
72
|
+
- External API (mis. layanan pembayaran, email, peta) → `MODULE-<vendor>` + `CONCERN-integration`
|
|
73
|
+
- Vendor deferral (PRD §12) → Interface contract di `interfaces.md`, implementasi di tasks
|
|
74
|
+
- Multi-tenant isolation → `CONCERN-persistence` (schema/row-level) + `CONCERN-authorization`; catat batasnya sebagai `ISOLATION-XXX` di `## Isolation Coverage` dengan mekanisme penegakan konkret.
|
|
75
|
+
|
|
76
|
+
5. **Lifecycle Dependencies**
|
|
77
|
+
- Entity state machine (PRD §6 status flows) → `CONCERN-persistence` (state transitions) + `functional.md` (transition rules)
|
|
78
|
+
- Cross-feature state dependency (Order status → Inventory availability) → Shared `MODULE-<domain>` atau `CONCERN-events`
|
|
79
|
+
|
|
80
|
+
6. **Cross-Module Business Rules**
|
|
81
|
+
- BR-XXX yang melibatkan >1 feature (mis. "Diskon maksimal 20% per user per bulan") → `MODULE-billing`/`MODULE-promotion` + `CONCERN-validation`
|
|
82
|
+
- Rule enforcement point: API gateway? Service layer? Database constraint? → Dokumentasikan di `functional.md` per BR
|
|
83
|
+
|
|
84
|
+
**Pemilihan Split Strategy (Concern-based vs Feature-based):**
|
|
85
|
+
|
|
86
|
+
| Karakteristik Produk | Rekomendasi Split | Alasan |
|
|
87
|
+
|---|---|---|
|
|
88
|
+
| `componentCount` = 1, `kindVariety` = 1, fitur sedikit/sedang | **Concern-based** (functional/data/interfaces) | Koheren, mudah trace, cukup modular |
|
|
89
|
+
| `componentCount` ≥ 2 ATAU `kindVariety` ≥ 2 ATAU fitur banyak | **Feature-based** (NN-<slug>.md per feature/fase) | Isolation per feature, paralel dev, kontrak eksplisit per file |
|
|
90
|
+
| `activeConstraints` = `regulated`/`realtime` | **Hybrid**: Feature-based + shared `contracts.md` | Audit trail per feature + shared security/data contracts |
|
|
91
|
+
|
|
92
|
+
**Deklarasi Modul & Concern (di `specs/SPECS.md` atau file spec):**
|
|
93
|
+
|
|
94
|
+
```markdown
|
|
95
|
+
## Modul: Authentication (MODULE-AUTH)
|
|
96
|
+
Mengimplementasikan: REQ-001, REQ-002, BR-001
|
|
97
|
+
Melayani: FEATURE-001 (Login), FEATURE-003 (Admin Access), FEATURE-007 (API Access)
|
|
98
|
+
Concerns: CONCERN-AUTHENTICATION, CONCERN-AUTHORIZATION
|
|
99
|
+
|
|
100
|
+
## Concern: Data Persistence (CONCERN-PERSISTENCE)
|
|
101
|
+
Entity: User, Order, Payment, Notification
|
|
102
|
+
Owner: MODULE-USER (User), MODULE-ORDER (Order, Payment), MODULE-NOTIF (Notification)
|
|
103
|
+
Access: MODULE-USER RW User; MODULE-ORDER R User, RW Order/Payment; MODULE-NOTIF RW Notification
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**Traceability wajib:**
|
|
107
|
+
- Setiap `MODULE-XXX` / `CONCERN-XXX` → minimal 1 `REQ-XXX`/`BR-XXX` dari PRD
|
|
108
|
+
- Setiap `REQ-XXX`/`BR-XXX` dari PRD §7/§8 → muncul di minimal 1 spec contract
|
|
109
|
+
- `FEATURE-XXX` dari PRD §5 → direferensikan di file spec yang mengimplementasikannya
|
|
110
|
+
- **Setiap `SUBFEATURE-XXX` dari PRD §5 → wajib muncul di `specs/SPECS.md` `## Subfeature Coverage` dan di heading atau tabel coverage di file spec konten; tiap subfeature dipetakan ke `REQ`/`BR` yang mendasarinya (matrix `SUBFEATURE → SPEC → REQ`).**
|
|
111
|
+
- `CONTRACT-XXX` (shared) → daftar feature yang mereferensikannya di `specs/SPECS.md`
|
|
112
|
+
|
|
113
|
+
**Jangan:**
|
|
114
|
+
- Mendeklarasikan modul/concern tanpa akar di PRD
|
|
115
|
+
- Membuat dependency hanya berdasarkan contoh generik
|
|
116
|
+
- Mengabaikan cross-feature dependency yang terlihat dari PRD §5/§6/§8
|
|
117
|
+
- Menyalin kontrak shared ke setiap feature spec (referensikan `CONTRACT-XXX`)
|
|
118
|
+
|
|
119
|
+
## Reference-Grade Richness (§B.2.5)
|
|
120
|
+
|
|
121
|
+
Specs are not thin data dictionaries. Each *applicable* artifact carries
|
|
122
|
+
machine-renderable diagrams and rationale tables (above) that **describe contracts
|
|
123
|
+
already stated in prose** — a diagram never introduces scope absent from `PRD.md`.
|
|
124
|
+
|
|
125
|
+
- **Conditional, never fabricated.** Richness is required only where the artifact is
|
|
126
|
+
applicable. Stateless/CLI products mark the data/interface section (the split file, or `specs/SPECS.md` in single layout) `N/A` and render
|
|
127
|
+
**no** ER diagram. Silence is never allowed; explicit `N/A` + justification is.
|
|
128
|
+
- **WHAT/HOW boundary (§B.2.3).** Schemas, stack **tables**, and diagrams live in
|
|
129
|
+
`specs/`. `PRD.md` may state HOW at principle/decision/constraint level, but do
|
|
130
|
+
not push implementation recipes back into the PRD to look richer.
|
|
131
|
+
|
|
132
|
+
## Rules
|
|
133
|
+
- **Write files to disk:** Always use `write_file`/`edit_file` to write files in `specs/`.
|
|
134
|
+
- **Respect the sub-step scope:** When the turn instruction says `Layout specs: single`, write the complete contract in `specs/SPECS.md` only. When it names `Sub-langkah Specs n/4`, write only the files that sub-step owns and do not rewrite files from an earlier sub-step.
|
|
135
|
+
- **Conditional richness:** Render a diagram only for an applicable artifact. A stateless product writes `N/A` + justification and renders no `erDiagram`; a product without external interfaces writes `N/A` + justification and renders no endpoint table. Never fabricate a diagram to look complete.
|
|
136
|
+
- **Mermaid syntax:** Quote any node label containing parentheses, spaces, or punctuation (`A["Pembeli (Browser)"]`); mermaid 12 rejects unquoted labels like `A[Pembeli (Browser)]`.
|
|
137
|
+
- **Traceability:** Every spec contract must cite the corresponding requirement ID (`REQ-XXX` or `FR-XXX`) or `BR-XXX` from `PRD.md`. Keep the PRD's prefix and digit width — a 2-digit `FR-01` breaks the trace.
|
|
138
|
+
- **No phantom requirements:** Do not invent features or requirements not specified in `PRD.md`.
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
## F-09 — Gap material PRD yang ditemukan saat menyusun specs
|
|
142
|
+
|
|
143
|
+
Bila selama menyusun specs ditemukan gap keputusan material PRD yang terlewat:
|
|
144
|
+
artefak **tetap ditulis** dengan `ASSUMPTION:` berlabel (specs tidak berhenti
|
|
145
|
+
menulis), **dan** `OPEN_QUESTION` material dicatat ke ledger melalui
|
|
146
|
+
`recordUnknown(..., { material: true })` (pola F-09) sehingga
|
|
147
|
+
`isDeliveryBlocked` menangkapnya dan Eksekusi/handoff terblokir sampai user
|
|
148
|
+
menjawab. Jangan diam-diam, jangan berhenti menulis specs. FR-03 tetap
|
|
149
|
+
berlaku di handoff — hanya material unknown yang memblokir finalisasi.
|
|
150
|
+
|
|
151
|
+
## Pola rekomendasi arsitektur di specs
|
|
152
|
+
|
|
153
|
+
Saat memilih DB/stack/vendor di specs, tulis **2–3 opsi + 1 rekomendasi +
|
|
154
|
+
alasan** di tabel rationale `Teknologi | Alasan` (di `specs/SPECS.md`) dan,
|
|
155
|
+
bila perlu keputusan user, pakai blok `decision` (2–3 opsi + rekomendasi +
|
|
156
|
+
baris `default | <huruf> | <alasan>`) supaya user melihat pilihan. "Serahkan ke
|
|
157
|
+
AI" menulis `ASSUMPTION` dengan nilai default konkret.
|
|
158
|
+
|
|
159
|
+
## Self-check & Auto-Heal sebelum turn selesai
|
|
160
|
+
|
|
161
|
+
Kamu adalah pemilik Specs. Sebelum menutup turn, jalankan siklus ini pada hasilmu
|
|
162
|
+
sendiri — jangan menyerahkan Specs yang belum tuntas ke tahap Tasks:
|
|
163
|
+
|
|
164
|
+
**1. INSPECT** — baca `PRD.md` dan file `specs/*.md` yang kamu tulis pada
|
|
165
|
+
sub-langkah ini. Jangan membaca ulang seluruh bundle bila sub-langkah hanya
|
|
166
|
+
meminta satu file; artefak lain sudah benar dan bukan scope perbaikan.
|
|
167
|
+
|
|
168
|
+
**2. DIAGNOSE** — periksa ledger Specs:
|
|
169
|
+
- `specs/SPECS.md` ada dan memuat indeks + `flowchart` + tabel `Teknologi | Alasan`.
|
|
170
|
+
- **`## Architecture` / `## Module Map`** ada di `specs/SPECS.md` dengan tabel
|
|
171
|
+
`Module | Responsibility | Depends on` + `Concern | Scope | Applied to`.**
|
|
172
|
+
- **`## Subfeature Coverage`** ada di `specs/SPECS.md`: setiap `SUBFEATURE-XXX`
|
|
173
|
+
dari PRD §5 termuat, dipetakan ke file spec/heading dan `REQ`/`BR` yang
|
|
174
|
+
mendasarinya (matrix `SUBFEATURE → SPEC → REQ`). Tidak ada subfeature PRD yang
|
|
175
|
+
hilang, dan tidak ada subfeature di spec yang tidak ada di PRD.**
|
|
176
|
+
- Setiap file spec konten mengutip `REQ-XXX`/`FR-XXX` (prefix & lebar digit sama
|
|
177
|
+
dengan PRD) atau `BR-XXX`; tidak ada referensi yang tidak dideklarasikan PRD.
|
|
178
|
+
- Setiap modul memakai `MODULE-XXX` kanonik; setiap concern memakai `CONCERN-XXX`
|
|
179
|
+
kanonik atau yang dideklarasikan di `specs/SPECS.md`.
|
|
180
|
+
- Setiap `CONTRACT-XXX` punya shape yang bisa diikat FE dan BE (request/response,
|
|
181
|
+
field/tipe/nullability, status/error, auth); kontrak yang dipakai task FE juga
|
|
182
|
+
punya jalur implementasi BE yang jelas.
|
|
183
|
+
- Data/interface contract lengkap (di `data.md`/`interfaces.md` untuk split, atau
|
|
184
|
+
section `## Data`/`## Interfaces` di `specs/SPECS.md` untuk single); bila tidak
|
|
185
|
+
berlaku, `N/A` + justifikasi ≥12 karakter — jangan diamkan.
|
|
186
|
+
- Setiap entity lifecycle di PRD punya baris `## Lifecycle Coverage` (states,
|
|
187
|
+
transitions, guards, terminal, failure/recovery) + `stateDiagram`; tabel memakai
|
|
188
|
+
kolom `Entity ID` stabil (`ENTITY-001`, `ENTITY-002`, …) di paling kiri — ID ini
|
|
189
|
+
yang dipakai tasks untuk mencocokkan baris, jadi nama entity boleh berbeda antar
|
|
190
|
+
tahap. Tidak ada entity stateful yang hilang atau ditambah di luar PRD.
|
|
191
|
+
- **`## Engine Mental Model`** ada di `specs/SPECS.md` sebagai **tabel
|
|
192
|
+
markdown** `| Aspek | Keputusan |` dengan baris Boundary, Source of truth,
|
|
193
|
+
Ownership, Invariant, Consistency, Failure/recovery (aspek lain boleh
|
|
194
|
+
ditambah); prosa atau bullet saja ditolak gate
|
|
195
|
+
`MISSING_ENGINE_MENTAL_MODEL`. Jangan mengarang komponen/ownership di luar
|
|
196
|
+
PRD.
|
|
197
|
+
- **`## Flow Coverage`** memuat setiap `FLOW-XXX` PRD dan setiap langkah
|
|
198
|
+
`STEP-XX` (actor, trigger, action, screen, response, decision, state, outcome,
|
|
199
|
+
alternative, failure, exit); jangan menambah/menghilangkan flow PRD.
|
|
200
|
+
- **`## Isolation Coverage`** memuat setiap `ISOLATION-XXX` dari PRD dengan
|
|
201
|
+
boundary, mekanisme penegakan (owner/tenant scoping, permission check), dan
|
|
202
|
+
`BR-XXX`/`NFR-XXX` pasangannya; jangan menambah/menghilangkan batas. Single-tenant
|
|
203
|
+
menulis `N/A — <alasan>`.
|
|
204
|
+
- **Single layout:** satu pass memeriksa seluruh section `specs/SPECS.md`
|
|
205
|
+
(architecture, subfeature, lifecycle/flow, engine, capability, data,
|
|
206
|
+
interface) sekaligus.
|
|
207
|
+
- **Split layout:** setiap sub-langkah generating (indeks → perilaku → data →
|
|
208
|
+
interface) memeriksa cakupan subfeature yang relevan untuk lingkup file-nya:
|
|
209
|
+
- **Indeks (`specs/SPECS.md`):** `## Subfeature Coverage` memuat seluruh `SUBFEATURE-XXX` PRD
|
|
210
|
+
(matrix `SUBFEATURE → SPEC → REQ`), plus `## Architecture`/`## Module Map`.
|
|
211
|
+
- **Perilaku (`functional.md`):** setiap subfeature yang terkait perilaku (state, permission, error, sequence) muncul sebagai heading/tabel coverage; trace `SUBFEATURE-XXX → REQ/BR`.
|
|
212
|
+
- **Data (`data.md`):** subfeature yang menyentuh entity/schema dicatat di coverage table (`SUBFEATURE-XXX | Entity | REQ`); bila tidak berlaku, `N/A — <alasan>`.
|
|
213
|
+
- **Interface (`interfaces.md`):** subfeature yang menyentuh endpoint/command/webhook dicatat di coverage table; bila tidak berlaku, `N/A — <alasan>`.
|
|
214
|
+
- Tidak ada subfeature PRD yang hilang, dan tidak ada subfeature di spec yang tidak ada di PRD.
|
|
215
|
+
- **Fullstack contract completeness (conditional, signal-based, tanpa menambah scope).** In `single` layout, each named file below means the corresponding section in `specs/SPECS.md`:
|
|
216
|
+
- **Async event propagation** — bila PRD menjanjikan pembaruan klien setelah event asinkron, `interfaces.md` wajib punya kanal yang bisa dibaca klien (polling, status endpoint, langganan/realtime, atau push). Event server-to-server saja bukan kanal klien.
|
|
217
|
+
- **Value/state reconciliation** — bila event eksternal membawa nilai/state otoritatif, kontrak wajib menyatakan cara handler merekonsiliasinya dengan sumber kebenaran internal (mis. `amount == total` atau validasi transisi status).
|
|
218
|
+
- **Entitlement granularity** — bila entitlement (token, lisensi, key, share link, seat) diberikan untuk resource komposit, `data.md`/`interfaces.md` wajib punya scope per item/resource, atau resource dibatasi satu item secara eksplisit.
|
|
219
|
+
- **Composite resource modeling** — bila PRD menyebut resource komposit, `data.md` wajib memodelkan komposisi (tabel/field anak, JSON list), atau menyatakan komposit = satu arsip.
|
|
220
|
+
- **Price adjustment modeling** — bila PRD menyebut penyesuaian harga (promo, diskon, kupon, pajak, fee, prorasi), `data.md` wajib memuat base price + nilai penyesuaian + aturan/periode.
|
|
221
|
+
- **Privileged surface** — bila permission matrix memberi aksi pengelolaan ke aktor, `interfaces.md` wajib punya surface + auth pemiliknya, atau izin itu dinyatakan out-of-scope dan dihapus dari matrix.
|
|
222
|
+
- **Contract IDs (wajib):** setiap kelompok endpoint di `interfaces.md` memakai heading `## CONTRACT-\d{3,} — <nama>` (contoh `CONTRACT-001`); task hanya boleh merujuk ID numerik yang dideklarasikan.
|
|
223
|
+
- **No placeholder IDs:** `MODULE-XXX`/`CONTRACT-XXX` di dokumen ini adalah **meta-sintaks**, bukan nilai yang boleh ditulis. Deklarasikan ID nyata (`MODULE-AUTH`, `CONTRACT-001`, …) atau `N/A — <alasan>`; literal `MODULE-XXX`/`CONTRACT-XXX` di artefak = defect.
|
|
224
|
+
- **Auth coverage (conditional):** jika ada akun/user, interfaces/functional wajib menutup signup/signin/signout, session/remember/refresh, profile/avatar/settings, change/reset password, dan error/security; SSO-only boleh `N/A — SSO`.
|
|
225
|
+
- **Management/CMS coverage (conditional):** jika ada aktor pengelola + konten/commerce, interfaces/data/functional wajib menutup CMS CRUD, media upload, orders/users/roles, settings/config, audit, dan publish/preview.
|
|
226
|
+
- **Interaction coverage (conditional):** jika ada collection/browse + select/cart/quantity, Flow Coverage dan interfaces wajib menutup collection, thumbnail/preview, detail, selection, quantity/unit/variant, action, dan UI states.
|
|
227
|
+
- **Capability Model (wajib saat memakai CAP-*):** tulis tabel `## Capability Model` di `specs/SPECS.md` dengan kolom `CAP | Required | Signal | Spec owner`; `Required=yes` wajib dipakai minimal satu task yang mendeklarasikan `cap: CAP-XXX` (kepemilikan diverifikasi di stage tasks, bukan ditulis di specs), `Required=no` wajib alasan produk eksplisit dan tidak boleh dipakai task. Ambil daftar CAP dari PRD `## Capability Coverage`; jangan menambah capability baru di specs.
|
|
228
|
+
- **CAP coverage (wajib):** setiap `CAP-*` yang tersirat (lihat `CAPABILITY-INDEX.md`) punya spec/contract atau `EXPLICIT_NA`. Aktor/entity/page/NFR adalah isi CAP; jangan menurunkan salah satunya dari PRD. Laporkan gap per CAP, bukan per item.
|
|
229
|
+
- Tidak ada requirement/scope baru yang tidak ada di PRD.
|
|
230
|
+
|
|
231
|
+
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.
|
|
232
|
+
|
|
233
|
+
**3. FIX** — perbaiki sendiri temuan itu di turn ini. Boleh menambah detail
|
|
234
|
+
teknis, tetapi tidak boleh menciptakan requirement, fitur, atau modul di luar
|
|
235
|
+
PRD.
|
|
236
|
+
|
|
237
|
+
**4. VALIDATE** — baca ulang. Lulus bila gate mesin berikut bersih:
|
|
238
|
+
`MISSING_SPEC_CONTENT`, `MISSING_SPECS_INDEX`, `DANGLING_REFERENCE`,
|
|
239
|
+
`MODULE_WITHOUT_SPEC`, `CONCERN_UNKNOWN`, `MISSING_FLOW_COVERAGE`,
|
|
240
|
+
`MISSING_ISOLATION_COVERAGE`, `ISOLATION_WITHOUT_SPEC`. Gate `MODULE_UNUSED` dan
|
|
241
|
+
`ISOLATION_WITHOUT_OWNER`
|
|
242
|
+
baru bisa diperiksa setelah Tasks ada — deklarasikan modul/isolation hanya yang
|
|
243
|
+
benar-benar dipakai.
|
|
244
|
+
|
|
245
|
+
**STOP** — ulangi hanya bila masih ada temuan yang bisa diperbaiki. Temuan yang
|
|
246
|
+
membutuhkan keputusan user (scope, vendor, model data yang mengubah AC) harus
|
|
247
|
+
ditampilkan sebagai blok keputusan — bukan dikarang, bukan dianggap selesai.
|
|
248
|
+
## Prinsip Fundamental (JIOOGEN)
|
|
249
|
+
|
|
250
|
+
Wajib: `docker/AGENTS.md` §6 — dimuat sebagai kontrak always-on; tidak diduplikasi di skill.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: specs-authoring
|
|
2
|
+
displayName: "Specs Authoring"
|
|
3
|
+
description: "Compile technical specifications from PRD"
|
|
4
|
+
version: "1.1.0"
|
|
5
|
+
authority: "standard"
|
|
6
|
+
phase: "specs"
|
|
7
|
+
capability: "technical-specification"
|
|
8
|
+
category: "authoring"
|
|
9
|
+
dependencies: ["prd-authoring"]
|
|
10
|
+
provides:
|
|
11
|
+
- "specs-single"
|
|
12
|
+
- "specs-split"
|
|
13
|
+
- "module-map"
|
|
14
|
+
- "concern-map"
|
|
15
|
+
- "subfeature-coverage"
|
|
16
|
+
requiresKnowledge:
|
|
17
|
+
- "K-INS-001"
|
|
18
|
+
- "K-SPEC-001"
|
|
19
|
+
- "K-SPEC-010"
|
|
20
|
+
- "K-TASK-003"
|
|
21
|
+
- "K-DOM-001"
|
|
22
|
+
entryPoints:
|
|
23
|
+
compile: "compile_specs"
|
|
24
|
+
outputArtifacts:
|
|
25
|
+
- "specs/SPECS.md"
|
|
26
|
+
- "specs/functional.md"
|
|
27
|
+
- "specs/data.md"
|
|
28
|
+
- "specs/interfaces.md"
|
|
29
|
+
gateCodes:
|
|
30
|
+
- "lintBundle"
|
|
31
|
+
supportsOverlays: []
|
|
32
|
+
tags: ["authoring", "specs", "technical", "phase-specs"]
|