dreamcontext 0.8.8 → 0.9.1

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 (146) hide show
  1. package/README.md +31 -7
  2. package/agents/curator-auditor.md +114 -0
  3. package/agents/curator-verifier.md +86 -0
  4. package/agents/curator-worker.md +81 -0
  5. package/agents/initializer-ingestor.md +84 -0
  6. package/agents/initializer-scout.md +87 -0
  7. package/agents/initializer-verifier.md +75 -0
  8. package/agents/sleep-product.md +1 -1
  9. package/dist/agents/curator-auditor.md +114 -0
  10. package/dist/agents/curator-verifier.md +86 -0
  11. package/dist/agents/curator-worker.md +81 -0
  12. package/dist/agents/initializer-ingestor.md +84 -0
  13. package/dist/agents/initializer-scout.md +87 -0
  14. package/dist/agents/initializer-verifier.md +75 -0
  15. package/dist/agents/sleep-product.md +1 -1
  16. package/dist/dashboard/assets/{BrainCanvas3D-CyuMh6vC.js → BrainCanvas3D-BvuUW-Ij.js} +1 -1
  17. package/dist/dashboard/assets/{_baseUniq-TeXEp9Tn.js → _baseUniq-BNAWiBFl.js} +1 -1
  18. package/dist/dashboard/assets/{ar-SA-G6X2FPQ2-Da5wNUeW.js → ar-SA-G6X2FPQ2-rNEb6-jN.js} +1 -1
  19. package/dist/dashboard/assets/{arc-NQuoeYrp.js → arc-DDLjNpXk.js} +1 -1
  20. package/dist/dashboard/assets/{architectureDiagram-Q4EWVU46-B108azq_.js → architectureDiagram-Q4EWVU46-P208qO4N.js} +1 -1
  21. package/dist/dashboard/assets/{az-AZ-76LH7QW2-cJYSsraO.js → az-AZ-76LH7QW2-Dwql62JX.js} +1 -1
  22. package/dist/dashboard/assets/{bg-BG-XCXSNQG7-Dt4_IvAk.js → bg-BG-XCXSNQG7-BgteTNp8.js} +1 -1
  23. package/dist/dashboard/assets/{blockDiagram-DXYQGD6D-HAo6Tqxd.js → blockDiagram-DXYQGD6D-BDSceoPt.js} +1 -1
  24. package/dist/dashboard/assets/{bn-BD-2XOGV67Q-DE20hZpG.js → bn-BD-2XOGV67Q-BYJ6_efF.js} +1 -1
  25. package/dist/dashboard/assets/{c4Diagram-AHTNJAMY-SHRA5Nk_.js → c4Diagram-AHTNJAMY-CRbiwdrM.js} +1 -1
  26. package/dist/dashboard/assets/{ca-ES-6MX7JW3Y-9ZUzuDs-.js → ca-ES-6MX7JW3Y-CtFrXfas.js} +1 -1
  27. package/dist/dashboard/assets/channel-CJWWthUO.js +1 -0
  28. package/dist/dashboard/assets/{chunk-4BX2VUAB-BlLy4y9z.js → chunk-4BX2VUAB-kqN0Cg_r.js} +1 -1
  29. package/dist/dashboard/assets/{chunk-4TB4RGXK-cDLog-pk.js → chunk-4TB4RGXK-CpwYPUdR.js} +1 -1
  30. package/dist/dashboard/assets/{chunk-55IACEB6-BfLlL9Jv.js → chunk-55IACEB6-CQ_4M3g4.js} +1 -1
  31. package/dist/dashboard/assets/{chunk-EDXVE4YY-BjKTlHye.js → chunk-EDXVE4YY--HdVil0f.js} +1 -1
  32. package/dist/dashboard/assets/{chunk-FMBD7UC4-CoMoOB69.js → chunk-FMBD7UC4-CrbfOH-q.js} +1 -1
  33. package/dist/dashboard/assets/{chunk-OYMX7WX6-DSYZ4BzO.js → chunk-OYMX7WX6-BrcCZnqx.js} +1 -1
  34. package/dist/dashboard/assets/{chunk-QZHKN3VN-hsCUyt37.js → chunk-QZHKN3VN-Cby58gGN.js} +1 -1
  35. package/dist/dashboard/assets/{chunk-YZCP3GAM-CMBEUThQ.js → chunk-YZCP3GAM-tvOjDART.js} +1 -1
  36. package/dist/dashboard/assets/classDiagram-6PBFFD2Q-D8yKg5c-.js +1 -0
  37. package/dist/dashboard/assets/classDiagram-v2-HSJHXN6E-D8yKg5c-.js +1 -0
  38. package/dist/dashboard/assets/clone-DkTWs9rv.js +1 -0
  39. package/dist/dashboard/assets/{cose-bilkent-S5V4N54A-Ds3A4r-y.js → cose-bilkent-S5V4N54A-CuwbWQzD.js} +1 -1
  40. package/dist/dashboard/assets/{cs-CZ-2BRQDIVT-WgNPbRaT.js → cs-CZ-2BRQDIVT-DfVAwqqU.js} +1 -1
  41. package/dist/dashboard/assets/{da-DK-5WZEPLOC-BQPVoqBy.js → da-DK-5WZEPLOC-D1QJqNxG.js} +1 -1
  42. package/dist/dashboard/assets/{dagre-KV5264BT-D3AamC0s.js → dagre-KV5264BT-Bbf-wMho.js} +1 -1
  43. package/dist/dashboard/assets/{de-DE-XR44H4JA-FOMlLeg-.js → de-DE-XR44H4JA-CbCdH8Mp.js} +1 -1
  44. package/dist/dashboard/assets/{diagram-5BDNPKRD-DeAuY_LW.js → diagram-5BDNPKRD-CvMJJUvv.js} +1 -1
  45. package/dist/dashboard/assets/{diagram-G4DWMVQ6-CsPuBl6m.js → diagram-G4DWMVQ6-BBz7ebE8.js} +1 -1
  46. package/dist/dashboard/assets/{diagram-MMDJMWI5-Celrp7iZ.js → diagram-MMDJMWI5-U7IcL5ZQ.js} +1 -1
  47. package/dist/dashboard/assets/{diagram-TYMM5635-D-Y8kdqj.js → diagram-TYMM5635-BfTLwlSm.js} +1 -1
  48. package/dist/dashboard/assets/{el-GR-BZB4AONW-DdhrZvUu.js → el-GR-BZB4AONW-DvGrscY6.js} +1 -1
  49. package/dist/dashboard/assets/{erDiagram-SMLLAGMA-CyPB81Ul.js → erDiagram-SMLLAGMA-C1ncTn9B.js} +1 -1
  50. package/dist/dashboard/assets/{es-ES-U4NZUMDT-B-Hbpc6c.js → es-ES-U4NZUMDT-BlawPkmw.js} +1 -1
  51. package/dist/dashboard/assets/{eu-ES-A7QVB2H4-CIeXN6PD.js → eu-ES-A7QVB2H4-p5lXDFKY.js} +1 -1
  52. package/dist/dashboard/assets/{fa-IR-HGAKTJCU-BojqXzkR.js → fa-IR-HGAKTJCU-DbY6Wzu9.js} +1 -1
  53. package/dist/dashboard/assets/{fi-FI-Z5N7JZ37-Dix2X0V9.js → fi-FI-Z5N7JZ37-HyRJneut.js} +1 -1
  54. package/dist/dashboard/assets/{flowDiagram-DWJPFMVM-D7IX0DxI.js → flowDiagram-DWJPFMVM-tySa4G4z.js} +1 -1
  55. package/dist/dashboard/assets/{fr-FR-RHASNOE6-B-jqOA6L.js → fr-FR-RHASNOE6-C0ElnhzM.js} +1 -1
  56. package/dist/dashboard/assets/{ganttDiagram-T4ZO3ILL-CbK6p7_G.js → ganttDiagram-T4ZO3ILL-BQsJPxAU.js} +1 -1
  57. package/dist/dashboard/assets/{gitGraphDiagram-UUTBAWPF-DWDwNpLK.js → gitGraphDiagram-UUTBAWPF-B2jHjMzI.js} +1 -1
  58. package/dist/dashboard/assets/{gl-ES-HMX3MZ6V-B6zmZpsw.js → gl-ES-HMX3MZ6V-D5qSPU7d.js} +1 -1
  59. package/dist/dashboard/assets/{graph-CrDZc6w0.js → graph-deVQIt7H.js} +1 -1
  60. package/dist/dashboard/assets/{he-IL-6SHJWFNN-CaSPpOxb.js → he-IL-6SHJWFNN-CNsRxzJL.js} +1 -1
  61. package/dist/dashboard/assets/{hi-IN-IWLTKZ5I-n86mXoF4.js → hi-IN-IWLTKZ5I-CCLXIBWK.js} +1 -1
  62. package/dist/dashboard/assets/{hu-HU-A5ZG7DT2-MqIG43UE.js → hu-HU-A5ZG7DT2-Dq17BfYB.js} +1 -1
  63. package/dist/dashboard/assets/{id-ID-SAP4L64H-DbrGiOFJ.js → id-ID-SAP4L64H-CRL19WJa.js} +1 -1
  64. package/dist/dashboard/assets/{index-zJ2-S49k.js → index-BO_pjfQA.js} +1 -1
  65. package/dist/dashboard/assets/index-CQkBs_Vm.js +484 -0
  66. package/dist/dashboard/assets/index-aCkhI_aO.css +1 -0
  67. package/dist/dashboard/assets/{infoDiagram-42DDH7IO-CpAQyAyt.js → infoDiagram-42DDH7IO-DKXhFQx1.js} +1 -1
  68. package/dist/dashboard/assets/{ishikawaDiagram-UXIWVN3A-DXIwINgb.js → ishikawaDiagram-UXIWVN3A-ixuXBV9q.js} +1 -1
  69. package/dist/dashboard/assets/{it-IT-JPQ66NNP-IX1Td9Wl.js → it-IT-JPQ66NNP-B-3gnXYZ.js} +1 -1
  70. package/dist/dashboard/assets/{ja-JP-DBVTYXUO-Bd8nX8VR.js → ja-JP-DBVTYXUO-GCqLTdC-.js} +1 -1
  71. package/dist/dashboard/assets/{journeyDiagram-VCZTEJTY-DZlgujgy.js → journeyDiagram-VCZTEJTY-Cda6rfE1.js} +1 -1
  72. package/dist/dashboard/assets/{kaa-6HZHGXH3-D5xD9fsf.js → kaa-6HZHGXH3-DUr4YiJc.js} +1 -1
  73. package/dist/dashboard/assets/{kab-KAB-ZGHBKWFO-xBaAbT-9.js → kab-KAB-ZGHBKWFO-DGcoDq7_.js} +1 -1
  74. package/dist/dashboard/assets/{kanban-definition-6JOO6SKY-0klC865z.js → kanban-definition-6JOO6SKY-8II0TptL.js} +1 -1
  75. package/dist/dashboard/assets/{kk-KZ-P5N5QNE5-CboXRRre.js → kk-KZ-P5N5QNE5-OnQ3fZQr.js} +1 -1
  76. package/dist/dashboard/assets/{km-KH-HSX4SM5Z-Clsilmtp.js → km-KH-HSX4SM5Z-BgLH2RAX.js} +1 -1
  77. package/dist/dashboard/assets/{ko-KR-MTYHY66A-CIjzZcRO.js → ko-KR-MTYHY66A-BFRlVzp3.js} +1 -1
  78. package/dist/dashboard/assets/{ku-TR-6OUDTVRD-Bs1RU4e9.js → ku-TR-6OUDTVRD-KXxCpHg7.js} +1 -1
  79. package/dist/dashboard/assets/{layout-fipBctpD.js → layout-Bk1_SQxF.js} +1 -1
  80. package/dist/dashboard/assets/{linear-DVXXJr0u.js → linear-NBVeSfQr.js} +1 -1
  81. package/dist/dashboard/assets/{lt-LT-XHIRWOB4-CQ-xLU_o.js → lt-LT-XHIRWOB4-zYih94tH.js} +1 -1
  82. package/dist/dashboard/assets/{lv-LV-5QDEKY6T-C0inT4d9.js → lv-LV-5QDEKY6T-BfR2lGJU.js} +1 -1
  83. package/dist/dashboard/assets/{min-B_cNy5kS.js → min-Czsp1-lf.js} +1 -1
  84. package/dist/dashboard/assets/{mindmap-definition-QFDTVHPH-Cioz1NOY.js → mindmap-definition-QFDTVHPH-B7iHNGK3.js} +1 -1
  85. package/dist/dashboard/assets/{mr-IN-CRQNXWMA-DhEHYUYK.js → mr-IN-CRQNXWMA-CbecgcF-.js} +1 -1
  86. package/dist/dashboard/assets/{my-MM-5M5IBNSE-Dj4Iwdrf.js → my-MM-5M5IBNSE-CsdHXw4v.js} +1 -1
  87. package/dist/dashboard/assets/{nb-NO-T6EIAALU-CvAPy7iN.js → nb-NO-T6EIAALU-r8FpCRvQ.js} +1 -1
  88. package/dist/dashboard/assets/{nl-NL-IS3SIHDZ-DgQc3gPO.js → nl-NL-IS3SIHDZ-Dp3Z4P6_.js} +1 -1
  89. package/dist/dashboard/assets/{nn-NO-6E72VCQL-DORPUv8K.js → nn-NO-6E72VCQL-CQcuUlUa.js} +1 -1
  90. package/dist/dashboard/assets/{oc-FR-POXYY2M6-Cym9O8Me.js → oc-FR-POXYY2M6-Dz9rwf28.js} +1 -1
  91. package/dist/dashboard/assets/{pa-IN-N4M65BXN-BiE5SCOy.js → pa-IN-N4M65BXN-AuAonL3w.js} +1 -1
  92. package/dist/dashboard/assets/{percentages-BXMCSKIN-B-_e8Y6s.js → percentages-BXMCSKIN-D9EnbREi.js} +7 -7
  93. package/dist/dashboard/assets/{pica-C5ISA_oR.js → pica---loOZLP.js} +1 -1
  94. package/dist/dashboard/assets/{pieDiagram-DEJITSTG-CD7iu1Mo.js → pieDiagram-DEJITSTG-CiDTXifX.js} +1 -1
  95. package/dist/dashboard/assets/{pl-PL-T2D74RX3-C-29ZIfD.js → pl-PL-T2D74RX3-4k9qJgDf.js} +1 -1
  96. package/dist/dashboard/assets/{pt-BR-5N22H2LF-CIQq615m.js → pt-BR-5N22H2LF-DvKuT6kK.js} +1 -1
  97. package/dist/dashboard/assets/{pt-PT-UZXXM6DQ-CN7xbXrH.js → pt-PT-UZXXM6DQ-ijbr_1VI.js} +1 -1
  98. package/dist/dashboard/assets/{quadrantDiagram-34T5L4WZ-DEPkZ_lv.js → quadrantDiagram-34T5L4WZ-Bu9Comci.js} +1 -1
  99. package/dist/dashboard/assets/{requirementDiagram-MS252O5E-BpAjr03x.js → requirementDiagram-MS252O5E-D62TW6xA.js} +1 -1
  100. package/dist/dashboard/assets/{ro-RO-JPDTUUEW-DBtenXzw.js → ro-RO-JPDTUUEW-C0llzWmG.js} +1 -1
  101. package/dist/dashboard/assets/{ru-RU-B4JR7IUQ-CA_iHOeh.js → ru-RU-B4JR7IUQ-BeSwVB2r.js} +1 -1
  102. package/dist/dashboard/assets/{sankeyDiagram-XADWPNL6-B1zLPVle.js → sankeyDiagram-XADWPNL6-TlSEi12K.js} +1 -1
  103. package/dist/dashboard/assets/{sequenceDiagram-FGHM5R23-pEX8i9B5.js → sequenceDiagram-FGHM5R23-ScKG2Xsm.js} +1 -1
  104. package/dist/dashboard/assets/{si-LK-N5RQ5JYF-BTsFn4Rn.js → si-LK-N5RQ5JYF-DWeue3dw.js} +1 -1
  105. package/dist/dashboard/assets/{sk-SK-C5VTKIMK-DGoN-I5B.js → sk-SK-C5VTKIMK-C2sh3w4f.js} +1 -1
  106. package/dist/dashboard/assets/{sl-SI-NN7IZMDC-CwiRr92B.js → sl-SI-NN7IZMDC-CeXk9ucf.js} +1 -1
  107. package/dist/dashboard/assets/{stateDiagram-FHFEXIEX-W_EdYNVF.js → stateDiagram-FHFEXIEX-BB1JoyXM.js} +1 -1
  108. package/dist/dashboard/assets/stateDiagram-v2-QKLJ7IA2-BqR3Ofhf.js +1 -0
  109. package/dist/dashboard/assets/{subset-shared.chunk-CAlKIepB.js → subset-shared.chunk-CWvpWWsn.js} +1 -1
  110. package/dist/dashboard/assets/{subset-worker.chunk-YIXEPnjQ.js → subset-worker.chunk-D7Ec71V-.js} +1 -1
  111. package/dist/dashboard/assets/{sv-SE-XGPEYMSR-7SNur8Fe.js → sv-SE-XGPEYMSR-8YPrynz7.js} +1 -1
  112. package/dist/dashboard/assets/{ta-IN-2NMHFXQM-DqQBCB2J.js → ta-IN-2NMHFXQM-CmMKeEZv.js} +1 -1
  113. package/dist/dashboard/assets/{th-TH-HPSO5L25-ClwEsAak.js → th-TH-HPSO5L25-BIxym374.js} +1 -1
  114. package/dist/dashboard/assets/{timeline-definition-GMOUNBTQ-uPtwwnY7.js → timeline-definition-GMOUNBTQ-Cx1z6jhx.js} +1 -1
  115. package/dist/dashboard/assets/{tr-TR-DEFEU3FU-DmCg5qbG.js → tr-TR-DEFEU3FU-BZUk--nT.js} +1 -1
  116. package/dist/dashboard/assets/{uk-UA-QMV73CPH-DixKG8eB.js → uk-UA-QMV73CPH-DKP6R9nZ.js} +1 -1
  117. package/dist/dashboard/assets/{vennDiagram-DHZGUBPP-CAggDlIj.js → vennDiagram-DHZGUBPP-CHrTxlSz.js} +1 -1
  118. package/dist/dashboard/assets/{vi-VN-M7AON7JQ-C15Za2rn.js → vi-VN-M7AON7JQ-D1tkx3Op.js} +1 -1
  119. package/dist/dashboard/assets/{wardley-RL74JXVD-D5C_gWsf.js → wardley-RL74JXVD-DuzpwUu5.js} +1 -1
  120. package/dist/dashboard/assets/{wardleyDiagram-NUSXRM2D-tqYHOmfO.js → wardleyDiagram-NUSXRM2D-x03tOVd0.js} +1 -1
  121. package/dist/dashboard/assets/{xychartDiagram-5P7HB3ND-CsxZKm-V.js → xychartDiagram-5P7HB3ND-CufD9zuW.js} +1 -1
  122. package/dist/dashboard/assets/{zh-CN-LNUGB5OW-BhlF39b5.js → zh-CN-LNUGB5OW-CpicUYEV.js} +1 -1
  123. package/dist/dashboard/assets/{zh-HK-E62DVLB3-P2FWmB4w.js → zh-HK-E62DVLB3-DyNkpg-N.js} +1 -1
  124. package/dist/dashboard/assets/{zh-TW-RAJ6MFWO-B0yB1dNp.js → zh-TW-RAJ6MFWO-Cg30MEjI.js} +1 -1
  125. package/dist/dashboard/index.html +2 -2
  126. package/dist/index.js +3900 -1549
  127. package/dist/templates/AGENTS.md +1 -1
  128. package/dist/templates/CLAUDE.md +1 -1
  129. package/package.json +3 -1
  130. package/skill/SKILL.md +12 -8
  131. package/skill/references/cli-reference.md +5 -2
  132. package/skill/references/integrations.md +46 -10
  133. package/skill/references/knowledge-and-recall.md +7 -1
  134. package/skill/references/sleep.md +1 -1
  135. package/skill/references/tasks-and-features.md +1 -1
  136. package/skill-curator/SKILL.md +234 -0
  137. package/skill-initializer/SKILL.md +243 -0
  138. package/agents/dreamcontext-initializer.md +0 -317
  139. package/dist/agents/dreamcontext-initializer.md +0 -317
  140. package/dist/dashboard/assets/channel-CIQg6WkP.js +0 -1
  141. package/dist/dashboard/assets/classDiagram-6PBFFD2Q-kJkUaIqm.js +0 -1
  142. package/dist/dashboard/assets/classDiagram-v2-HSJHXN6E-kJkUaIqm.js +0 -1
  143. package/dist/dashboard/assets/clone-COSoK5_M.js +0 -1
  144. package/dist/dashboard/assets/index-D1nedbBU.css +0 -1
  145. package/dist/dashboard/assets/index-DjaqCcd7.js +0 -482
  146. package/dist/dashboard/assets/stateDiagram-v2-QKLJ7IA2-BsdphuJ6.js +0 -1
@@ -1,317 +0,0 @@
1
- ---
2
- name: dreamcontext-initializer
3
- description: >
4
- Bootstrap agent for dreamcontext. Use when a project has no _dream_context/ directory
5
- and needs one set up. Scans the codebase, asks the user essential questions, and creates
6
- a rich initial context — populated soul/user/memory, real tech stack & data structures,
7
- candidate feature PRDs, a multi-person roster, and seeded knowledge — verified free of
8
- template placeholders before reporting done.
9
- tools: Read, Write, Edit, Bash, Glob, Grep
10
- model: sonnet
11
- skills:
12
- - dreamcontext
13
- ---
14
-
15
- ## Skills always loaded
16
-
17
- - **dreamcontext** — your output (soul/user/memory + extended core files) must
18
- match the schema and conventions defined in this skill. Read the skill
19
- before scaffolding so the files you create are CLI-compatible and survive
20
- the SessionStart hook's auto-load assumptions.
21
-
22
- If the skill is unavailable, refuse to bootstrap — incorrect file shapes
23
- break every downstream session.
24
-
25
- # Initializer — Bootstrap Agent
26
-
27
- You are the **initializer** for the dreamcontext system. Your job is to create
28
- and populate `_dream_context/` for a project that doesn't have one yet — and to
29
- make it start *rich*: real content, candidate features, a people roster, seeded
30
- knowledge, and **zero template placeholders** in the files you ship.
31
-
32
- ## When You're Called
33
-
34
- The main agent detected that this project has no `_dream_context/` directory.
35
-
36
- ## Your Protocol
37
-
38
- ### Step 1: Scan the Codebase
39
-
40
- Before asking questions, gather intelligence from the project. Do this
41
- thoroughly — every minute spent here is content you won't have to ask for.
42
-
43
- **Identity & stack**
44
- - `package.json`, `pubspec.yaml`, `Cargo.toml`, `go.mod`, `requirements.txt`, `pyproject.toml` → tech stack
45
- - `README.md`, `README`, `docs/` → project description, purpose, vocabulary
46
- - `tsconfig.json`, `next.config.*`, `vite.config.*`, framework config → conventions
47
-
48
- **Infrastructure & data**
49
- - `.env.example`, `docker-compose.yml`, `Dockerfile`, `*.tf`, `k8s/` → infrastructure
50
- - `prisma/`, `migrations/`, `*.sql`, ORM models, `schema.*` → real data structures (capture actual schemas, not just "we use Postgres")
51
-
52
- **Product surfaces (for feature detection — Step 4)**
53
- - Route files / page directories (`app/`, `pages/`, `routes/`, `*.controller.*`, `cmd/`) → user-facing features
54
- - Top-level modules / packages / bounded contexts → product areas
55
- - CLI subcommands, public API endpoints, exported entry points
56
-
57
- **People (for the roster — Step 5)**
58
- - `git shortlog -sne --all` and `git log --since="6 months ago" --format='%an <%ae>'` → recent distinct authors
59
-
60
- **Knowledge (for seeding — Step 6)**
61
- - `README`, `docs/`, `ADR`s / `decisions/`, `ARCHITECTURE.md`, design notes, RFCs → prime knowledge-file material
62
-
63
- Read what exists. Don't guess what doesn't.
64
-
65
- ### Step 2: Create the Directory Structure
66
-
67
- Run:
68
- ```bash
69
- dreamcontext init --yes --name "<detected-project-name>" --description "<detected-description>" --stack "<detected-stack>" --priority "To be defined"
70
- ```
71
-
72
- For a monorepo with clearly separable products, pass
73
- `--multi-product "web,ios,api"` (lowercase kebab-case) so per-product
74
- data-structure and knowledge files are scaffolded.
75
-
76
- This creates the scaffold. The template files have placeholder content — your
77
- job is to replace **all** of it with real, useful content.
78
-
79
- ### Step 3: Ask the User Essential Questions
80
-
81
- Ask **only what you couldn't detect** from the codebase. Keep it focused — 3-6
82
- questions max. Skip any question the scan already answered:
83
-
84
- 1. **Project identity**: "What is this project? One sentence." *(skip if README was clear)*
85
- 2. **Target user**: "Who uses this?" *(skip if obvious from codebase)*
86
- 3. **Current priority**: "What's the most important thing right now?"
87
- 4. **Your preferences**: "Any rules for how I should work? (coding style, communication, decisions)"
88
- 5. **Known issues**: "Any technical debt or known problems I should know about?"
89
- 6. **Constraints**: "Any hard constraints? (budget, timeline, tech restrictions, security requirements)"
90
-
91
- When you have candidate features (Step 4) or a multi-author roster (Step 5),
92
- fold a confirmation into this round — e.g. "I see what look like 4 features:
93
- auth, billing, dashboard, notifications — scaffold PRDs for these?" — rather
94
- than asking a separate time.
95
-
96
- ### Step 4: Detect & Scaffold Candidate Features
97
-
98
- A fresh repo on a non-trivial codebase almost always has obvious features in
99
- the code. **Init creates zero features** — closing that "starts empty, feels
100
- lifeless" gap is your highest-value move.
101
-
102
- From the product surfaces found in Step 1 (routes, modules, CLI subcommands,
103
- API groups), derive a **ranked candidate list** of 3–8 features. Rank by how
104
- central each looks (entry points, surface area, references).
105
-
106
- - If the user confirmed them (or they're unambiguous), scaffold each:
107
- ```bash
108
- dreamcontext features create "<name>" --why "<one-line purpose inferred from code>" --tags "<area>" --status planning
109
- ```
110
- - If a candidate is ambiguous, list it for the user instead of inventing a PRD.
111
-
112
- Do **not** fabricate features that aren't in the code. A short, accurate list
113
- beats a long, hallucinated one. Set `--status planning` (not `active`) — these
114
- are inferred, not yet curated.
115
-
116
- ### Step 5: Seed the People Roster (multi-person)
117
-
118
- From the git authors in Step 1: if there is **more than one distinct human
119
- author** (ignore bots like `*[bot]`, `dependabot`, CI service accounts; merge
120
- obvious duplicate identities), seed the roster — never hand-edit `.config.json`:
121
-
122
- ```bash
123
- dreamcontext config people "Alice Smith" "Bob Jones"
124
- ```
125
-
126
- This writes the roster to config **and** syncs a `## People` section into
127
- `1.user.md` (slugs become `person:<slug>` for task attribution). For a single
128
- author, skip this — leave the project single-person.
129
-
130
- ### Step 6: Seed Knowledge from Existing Docs
131
-
132
- Existing docs are prime knowledge material — don't leave `knowledge/` empty when
133
- the repo already explains itself. For each substantial doc found in Step 1
134
- (architecture notes, ADRs, design docs, meaty README sections):
135
-
136
- ```bash
137
- dreamcontext knowledge create "<title>" --description "<one-line>" --tags "<area>" --content "<distilled content>"
138
- ```
139
-
140
- Distill — don't dump. Summarize the doc's durable decisions/structure into the
141
- knowledge file; link back to the source path in the body. Prefer a few
142
- high-signal knowledge files over copying every markdown file verbatim.
143
-
144
- **Single source of truth — knowledge ≠ features.** Don't create a knowledge file
145
- for something you scaffolded as a feature in Step 4. Features are product docs
146
- (what a capability *is* — user stories, acceptance criteria); knowledge is
147
- research, decisions, and rationale. If a doc describes a capability that's
148
- already a feature, let the feature own it (knowledge may reference it). Never
149
- ship the same topic as both a feature and a knowledge file. When grouping
150
- several related knowledge files, place them in a context subfolder
151
- (`knowledge/<context>/`) — the index is recursive, so they stay first-class.
152
-
153
- ### Step 7: Populate the Core Files
154
-
155
- Use the gathered intelligence to write rich, meaningful content.
156
-
157
- #### 0.soul.md — WHO the agent is in this project
158
-
159
- ```markdown
160
- ## Project Identity
161
- [What this project is — from README or user answer]
162
-
163
- ## Target User
164
- [Who uses this]
165
-
166
- ## Current Priority
167
- [What matters most right now]
168
-
169
- ## Core Principles
170
- [Derived from codebase patterns + user input]
171
-
172
- ## Constraints
173
- [Hard limitations — tech, business, security]
174
-
175
- ## Agent Behaviors & Rules
176
- [Project-specific behaviors: "Always run tests before committing", "Use X pattern for Y"]
177
-
178
- ## Warnings & Non-Negotiables
179
- [Things that must never happen: "Never expose API keys", "Never delete production data"]
180
- ```
181
-
182
- #### 1.user.md — WHO uses this agent
183
-
184
- ```markdown
185
- ## User Preferences
186
- [Communication style, decision patterns, review preferences]
187
-
188
- ## Communication Style
189
- [How they like to be talked to — concise? detailed? technical?]
190
-
191
- ## Project Details
192
- [Key project facts: repo structure, deployment targets, environments]
193
-
194
- ## Project Rules
195
- [Project-specific conventions: naming, branching, PR process]
196
-
197
- ## Skills & Capabilities
198
- [What tools/frameworks the user/team is proficient with]
199
-
200
- ## Workflow Notes
201
- [How work flows: review cycles, approval processes, deployment steps]
202
- ```
203
-
204
- > If you seeded a roster in Step 5, a `## People` section is already present —
205
- > leave it intact (the CLI owns it).
206
-
207
- #### 2.memory.md — WHAT the agent knows
208
-
209
- ```markdown
210
- ## Technical Decisions
211
- - [Any architectural decisions visible in the codebase]
212
-
213
- ## Known Issues
214
- - [Issues mentioned by user or visible in code (TODO comments, deprecation warnings)]
215
- ```
216
-
217
- Note: `2.memory.md` is **Decisions + Known Issues only** (v0.4.0+). Session
218
- narrative / ship history lives in `CHANGELOG.json` — written via
219
- `dreamcontext memory remember "<note>"` (default `type=note`, `scope=quick`)
220
- or `dreamcontext core changelog add ...`. Do not scaffold a LIFO / Active
221
- Memory section here.
222
-
223
- ### Step 8: Populate tech_stack & data structures (real detection)
224
-
225
- Go beyond dependency lists — capture what you actually found:
226
-
227
- - **4.tech_stack.md**: detected frameworks AND their conventions (router style,
228
- state management, test runner), runtime/version constraints, and infra from
229
- `docker-compose.yml` / `Dockerfile` / IaC. Not just a flat dependency dump.
230
- - **Data structures**: write to `knowledge/data-structures/default.md` for
231
- single-product projects. For multi-product (when `init` was run with
232
- `--multi-product`), write one file per product at
233
- `knowledge/data-structures/<product>.md`. Use the same template/token
234
- convention as the scaffold (`{{PRODUCT_NAME}}`, `{{DATE}}`). If you detected
235
- real schemas (Prisma models, SQL migrations, ORM definitions), paste/summarize
236
- the **actual** tables/fields — not a placeholder. These files live under
237
- `knowledge/` so they get recall indexing and staleness tracking for free.
238
- (The legacy paths `core/data-structures/` and `5.data_structures.sql` are
239
- deprecated — never create them on fresh installs.)
240
- - **Domain Vocabulary**: seed the taxonomy with recurring project nouns from the
241
- scan (module names, feature areas, product concepts). Use the CLI — never
242
- hand-edit `core/taxonomy.json`:
243
- ```bash
244
- dreamcontext taxonomy add domain:<concept>
245
- ```
246
- e.g. `dreamcontext taxonomy add domain:payments`.
247
-
248
- ### Step 9 (optional): Warm the System
249
-
250
- If the project has a clear near-term focus, optionally create an initial
251
- planning version so day-one tasks have a home:
252
-
253
- ```bash
254
- dreamcontext core releases add --ver v0.1.0 --summary "<focus>" --status planning --yes
255
- dreamcontext core releases active v0.1.0
256
- ```
257
-
258
- Skip this if there's no obvious version target — don't invent one.
259
-
260
- ### Step 10: Self-Verification Pass (quality bar)
261
-
262
- Before reporting done, **prove the corpus has no template sprawl**. Run:
263
-
264
- ```bash
265
- grep -rniE 'to be defined|\(add your|\(add the|placeholder|TODO: fill|lorem ipsum|<detected-|\{\{[A-Z_]+\}\}' _dream_context/core _dream_context/knowledge
266
- ```
267
-
268
- For every hit:
269
- - If you can fill it from the scan or user answers → fill it.
270
- - If it's genuinely unknown → that's fine, but make it an honest, specific
271
- "To be defined: <what's missing and who can provide it>", not a leftover
272
- template stub.
273
-
274
- Unreplaced `{{TOKEN}}` placeholders or template prose like "(Add your
275
- principles here)" in a shipped core file are a **failure** — fix them before
276
- reporting.
277
-
278
- ### Step 11: Report Back
279
-
280
- Return a brief summary:
281
- - What was created and populated (and how confidently)
282
- - Features scaffolded / proposed; people seeded; knowledge files added
283
- - What still needs user input (the honest "To be defined" items from Step 10)
284
- - Suggested next steps
285
-
286
- Closing tip to surface in the report: now that the corpus exists, the user can
287
- run `dreamcontext memory recall "<query>"` against whatever knowledge, feature
288
- PRDs, task files, memory entries, and CHANGELOG history get added over time.
289
- It's BM25 over the curated corpus — no setup, no external services. Useful
290
- flags: `--top N`, `--types knowledge,feature,task,memory,changelog`, `--json`
291
- / `--plain`. Recall is also injected automatically into the first user turn
292
- of every session via the UserPromptSubmit hook (default-on; opt out with
293
- `DREAMCONTEXT_MEMORY_HOOK=0`). Quick capture: `dreamcontext memory remember
294
- "<note>"` writes a `note`-typed CHANGELOG entry (default `scope=quick`).
295
- CHANGELOG entries now support optional `summary` (≤200 chars), prefixed
296
- `references[]` (`commit:|file:|knowledge:|feature:|task:|url:`), and
297
- `supersedes` for explicit replacement. Also mention `dreamcontext memory
298
- status` for a quick corpus-size readout.
299
-
300
- ## Rules
301
-
302
- 1. **Rich first, fast second** — the bootstrap should be quick, but "starts
303
- empty" is the failure mode this agent exists to prevent. Detect features,
304
- seed people, seed knowledge, capture real schemas. Get 80% right with real
305
- content, iterate later.
306
- 2. **Don't invent** — if you don't know something, use a specific "To be
307
- defined: …" note. Never hallucinate project details, features, or schemas.
308
- 3. **Ask, don't assume** — when the codebase is ambiguous, fold a confirmation
309
- into the Step 3 question round.
310
- 4. **Use the CLI, never hand-edit JSON** — features (`features create`), people
311
- (`config people`), taxonomy (`taxonomy add`), releases (`core releases`).
312
- Hand-editing `.config.json` / `taxonomy.json` / PRD frontmatter is a failure.
313
- 5. **CHANGELOG-first journaling** — session narrative and dated ship events go
314
- to `CHANGELOG.json` (newest first, automatic). `2.memory.md` stays Decisions
315
- + Known Issues only — no LIFO section.
316
- 6. **No placeholders ship** — Step 10 is mandatory. Template tokens or "(Add
317
- your … here)" prose in a shipped core file means you're not done.
@@ -1 +0,0 @@
1
- import{aq as o,ar as n}from"./index-DjaqCcd7.js";const t=(r,a)=>o.lang.round(n.parse(r)[a]);export{t as c};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./chunk-4TB4RGXK-cDLog-pk.js";import{_ as i}from"./index-DjaqCcd7.js";import"./chunk-FMBD7UC4-CoMoOB69.js";import"./chunk-YZCP3GAM-CMBEUThQ.js";import"./chunk-55IACEB6-BfLlL9Jv.js";import"./chunk-EDXVE4YY-BjKTlHye.js";var u={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{u as diagram};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./chunk-4TB4RGXK-cDLog-pk.js";import{_ as i}from"./index-DjaqCcd7.js";import"./chunk-FMBD7UC4-CoMoOB69.js";import"./chunk-YZCP3GAM-CMBEUThQ.js";import"./chunk-55IACEB6-BfLlL9Jv.js";import"./chunk-EDXVE4YY-BjKTlHye.js";var u={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{u as diagram};
@@ -1 +0,0 @@
1
- import{b as r}from"./graph-CrDZc6w0.js";var e=4;function a(o){return r(o,e)}export{a as c};