@geminilight/mindos 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/.env.local.example +38 -0
  2. package/LICENSE +21 -0
  3. package/README.md +423 -0
  4. package/README_zh.md +423 -0
  5. package/app/README.md +152 -0
  6. package/app/app/api/ask/route.ts +170 -0
  7. package/app/app/api/ask-sessions/route.ts +90 -0
  8. package/app/app/api/auth/route.ts +37 -0
  9. package/app/app/api/backlinks/route.ts +22 -0
  10. package/app/app/api/bootstrap/route.ts +37 -0
  11. package/app/app/api/extract-pdf/route.ts +82 -0
  12. package/app/app/api/file/route.ts +138 -0
  13. package/app/app/api/files/route.ts +12 -0
  14. package/app/app/api/git/route.ts +42 -0
  15. package/app/app/api/graph/route.ts +113 -0
  16. package/app/app/api/recent-files/route.ts +10 -0
  17. package/app/app/api/search/route.ts +17 -0
  18. package/app/app/api/settings/reset-token/route.ts +21 -0
  19. package/app/app/api/settings/route.ts +123 -0
  20. package/app/app/error.tsx +33 -0
  21. package/app/app/globals.css +368 -0
  22. package/app/app/icon.svg +35 -0
  23. package/app/app/layout.tsx +103 -0
  24. package/app/app/login/page.tsx +120 -0
  25. package/app/app/page.tsx +12 -0
  26. package/app/app/view/[...path]/ViewPageClient.tsx +343 -0
  27. package/app/app/view/[...path]/error.tsx +33 -0
  28. package/app/app/view/[...path]/loading.tsx +15 -0
  29. package/app/app/view/[...path]/page.tsx +93 -0
  30. package/app/components/AskFab.tsx +59 -0
  31. package/app/components/AskModal.tsx +398 -0
  32. package/app/components/Backlinks.tsx +75 -0
  33. package/app/components/Breadcrumb.tsx +31 -0
  34. package/app/components/CsvView.tsx +325 -0
  35. package/app/components/DirView.tsx +138 -0
  36. package/app/components/Editor.tsx +124 -0
  37. package/app/components/EditorWrapper.tsx +17 -0
  38. package/app/components/ErrorBoundary.tsx +53 -0
  39. package/app/components/FileTree.tsx +369 -0
  40. package/app/components/HomeContent.tsx +262 -0
  41. package/app/components/JsonView.tsx +27 -0
  42. package/app/components/MarkdownEditor.tsx +95 -0
  43. package/app/components/MarkdownView.tsx +118 -0
  44. package/app/components/SearchModal.tsx +193 -0
  45. package/app/components/SettingsModal.tsx +237 -0
  46. package/app/components/Sidebar.tsx +136 -0
  47. package/app/components/SidebarLayout.tsx +36 -0
  48. package/app/components/TableOfContents.tsx +150 -0
  49. package/app/components/ThemeToggle.tsx +34 -0
  50. package/app/components/WysiwygEditor.tsx +75 -0
  51. package/app/components/ask/FileChip.tsx +30 -0
  52. package/app/components/ask/MentionPopover.tsx +52 -0
  53. package/app/components/ask/MessageList.tsx +126 -0
  54. package/app/components/ask/SessionHistory.tsx +49 -0
  55. package/app/components/renderers/AgentInspectorRenderer.tsx +277 -0
  56. package/app/components/renderers/BacklinksRenderer.tsx +147 -0
  57. package/app/components/renderers/ConfigRenderer.tsx +236 -0
  58. package/app/components/renderers/CsvRenderer.tsx +77 -0
  59. package/app/components/renderers/DiffRenderer.tsx +310 -0
  60. package/app/components/renderers/GraphRenderer.tsx +428 -0
  61. package/app/components/renderers/SummaryRenderer.tsx +251 -0
  62. package/app/components/renderers/TimelineRenderer.tsx +213 -0
  63. package/app/components/renderers/TodoRenderer.tsx +474 -0
  64. package/app/components/renderers/WorkflowRenderer.tsx +404 -0
  65. package/app/components/renderers/csv/BoardView.tsx +146 -0
  66. package/app/components/renderers/csv/ConfigPanel.tsx +117 -0
  67. package/app/components/renderers/csv/EditableCell.tsx +43 -0
  68. package/app/components/renderers/csv/GalleryView.tsx +40 -0
  69. package/app/components/renderers/csv/TableView.tsx +164 -0
  70. package/app/components/renderers/csv/types.ts +87 -0
  71. package/app/components/settings/AiTab.tsx +111 -0
  72. package/app/components/settings/AppearanceTab.tsx +101 -0
  73. package/app/components/settings/KnowledgeTab.tsx +157 -0
  74. package/app/components/settings/PluginsTab.tsx +82 -0
  75. package/app/components/settings/Primitives.tsx +60 -0
  76. package/app/components/settings/ShortcutsTab.tsx +22 -0
  77. package/app/components/settings/types.ts +41 -0
  78. package/app/components/ui/button.tsx +60 -0
  79. package/app/components/ui/dialog.tsx +157 -0
  80. package/app/components/ui/input.tsx +20 -0
  81. package/app/components/ui/scroll-area.tsx +55 -0
  82. package/app/components/ui/toggle.tsx +44 -0
  83. package/app/components/ui/tooltip.tsx +66 -0
  84. package/app/components.json +25 -0
  85. package/app/data/pages/home-dark.png +0 -0
  86. package/app/data/pages/home-mobile-crop.png +0 -0
  87. package/app/data/pages/home-mobile.png +0 -0
  88. package/app/data/pages/home.png +0 -0
  89. package/app/data/pages/view-dir.png +0 -0
  90. package/app/data/pages/view-file-bot.png +0 -0
  91. package/app/data/pages/view-file-dark-crop.png +0 -0
  92. package/app/data/pages/view-file-dark.png +0 -0
  93. package/app/data/pages/view-file-mobile.png +0 -0
  94. package/app/data/pages/view-file-sm.png +0 -0
  95. package/app/data/pages/view-file-top.png +0 -0
  96. package/app/data/pages/view-file.png +0 -0
  97. package/app/eslint.config.mjs +18 -0
  98. package/app/hooks/useAskSession.ts +181 -0
  99. package/app/hooks/useFileUpload.ts +126 -0
  100. package/app/hooks/useMention.ts +65 -0
  101. package/app/lib/LocaleContext.tsx +40 -0
  102. package/app/lib/actions.ts +40 -0
  103. package/app/lib/agent/index.ts +3 -0
  104. package/app/lib/agent/model.ts +18 -0
  105. package/app/lib/agent/prompt.ts +32 -0
  106. package/app/lib/agent/tools.ts +151 -0
  107. package/app/lib/api.ts +55 -0
  108. package/app/lib/core/backlinks.ts +40 -0
  109. package/app/lib/core/csv.ts +28 -0
  110. package/app/lib/core/fs-ops.ts +118 -0
  111. package/app/lib/core/git.ts +50 -0
  112. package/app/lib/core/index.ts +58 -0
  113. package/app/lib/core/lines.ts +89 -0
  114. package/app/lib/core/search.ts +79 -0
  115. package/app/lib/core/security.ts +43 -0
  116. package/app/lib/core/tree.ts +113 -0
  117. package/app/lib/core/types.ts +40 -0
  118. package/app/lib/fs.ts +467 -0
  119. package/app/lib/i18n.ts +300 -0
  120. package/app/lib/jwt.ts +58 -0
  121. package/app/lib/renderers/index.ts +79 -0
  122. package/app/lib/renderers/registry.ts +70 -0
  123. package/app/lib/settings.ts +150 -0
  124. package/app/lib/types.ts +32 -0
  125. package/app/lib/utils.ts +34 -0
  126. package/app/next-env.d.ts +6 -0
  127. package/app/next.config.ts +10 -0
  128. package/app/package-lock.json +15306 -0
  129. package/app/package.json +71 -0
  130. package/app/postcss.config.mjs +7 -0
  131. package/app/proxy.ts +64 -0
  132. package/app/public/file.svg +1 -0
  133. package/app/public/globe.svg +1 -0
  134. package/app/public/landing/index.html +353 -0
  135. package/app/public/landing/style.css +216 -0
  136. package/app/public/logo-square.svg +37 -0
  137. package/app/public/logo.svg +37 -0
  138. package/app/public/next.svg +1 -0
  139. package/app/public/vercel.svg +1 -0
  140. package/app/public/window.svg +1 -0
  141. package/app/scripts/extract-pdf.cjs +56 -0
  142. package/app/tsconfig.json +34 -0
  143. package/app/vitest.config.ts +14 -0
  144. package/assets/demo-flow-zh.html +622 -0
  145. package/assets/images/demo-flow-dark.png +0 -0
  146. package/assets/images/demo-flow-light.png +0 -0
  147. package/assets/images/demo-flow-zh-dark.png +0 -0
  148. package/assets/images/demo-flow-zh-light.png +0 -0
  149. package/assets/images/gui-sync-cv.png +0 -0
  150. package/assets/logo-square.svg +37 -0
  151. package/bin/cli.js +894 -0
  152. package/mcp/README.md +113 -0
  153. package/mcp/package-lock.json +1717 -0
  154. package/mcp/package.json +18 -0
  155. package/mcp/src/index.ts +494 -0
  156. package/mcp/tsconfig.json +13 -0
  157. package/package.json +49 -0
  158. package/scripts/setup.js +675 -0
  159. package/scripts/upgrade-prompt.md +147 -0
  160. package/skills/mindos/SKILL.md +319 -0
  161. package/skills/mindos-zh/SKILL.md +318 -0
  162. package/templates/README.md +31 -0
  163. package/templates/empty/CHANGELOG.md +9 -0
  164. package/templates/empty/CONFIG.json +197 -0
  165. package/templates/empty/CONFIG.md +73 -0
  166. package/templates/empty/INSTRUCTION.md +177 -0
  167. package/templates/empty/README.md +27 -0
  168. package/templates/en/CHANGELOG.md +9 -0
  169. package/templates/en/CONFIG.json +197 -0
  170. package/templates/en/CONFIG.md +73 -0
  171. package/templates/en/INSTRUCTION.md +177 -0
  172. package/templates/en/README.md +27 -0
  173. package/templates/en/TODO.md +13 -0
  174. package/templates/en//360/237/221/244 Profile/INSTRUCTION.md" +21 -0
  175. package/templates/en//360/237/221/244 Profile/README.md" +15 -0
  176. package/templates/en//360/237/221/244 Profile//342/232/231/357/270/217 Preferences.md" +21 -0
  177. package/templates/en//360/237/221/244 Profile//360/237/216/257 Focus.md" +31 -0
  178. package/templates/en//360/237/221/244 Profile//360/237/221/244 Identity.md" +22 -0
  179. package/templates/en//360/237/223/232 Resources/INSTRUCTION.md" +29 -0
  180. package/templates/en//360/237/223/232 Resources/README.md" +21 -0
  181. package/templates/en//360/237/223/232 Resources//360/237/247/276 AI Influencers.csv" +1 -0
  182. package/templates/en//360/237/223/232 Resources//360/237/247/276 AI Products.csv" +1 -0
  183. package/templates/en//360/237/223/232 Resources//360/237/247/276 AI Scholars.csv" +1 -0
  184. package/templates/en//360/237/223/232 Resources//360/237/247/276 AI Tools.csv" +1 -0
  185. package/templates/en//360/237/223/235 Notes/INSTRUCTION.md" +31 -0
  186. package/templates/en//360/237/223/235 Notes/Ideas/README.md" +8 -0
  187. package/templates/en//360/237/223/235 Notes/Ideas//360/237/247/252_example_product_idea.md" +16 -0
  188. package/templates/en//360/237/223/235 Notes/Inbox/README.md" +8 -0
  189. package/templates/en//360/237/223/235 Notes/Inbox//360/237/247/252_example_quick_capture.md" +14 -0
  190. package/templates/en//360/237/223/235 Notes/Meetings/README.md" +8 -0
  191. package/templates/en//360/237/223/235 Notes/Meetings//360/237/247/252_example_meeting_note.md" +17 -0
  192. package/templates/en//360/237/223/235 Notes/README.md" +24 -0
  193. package/templates/en//360/237/223/235 Notes/Waiting/README.md" +8 -0
  194. package/templates/en//360/237/223/235 Notes/Waiting//360/237/247/252_example_blocked_item.md" +16 -0
  195. package/templates/en//360/237/224/204 Workflows/Configurations/README.md" +3 -0
  196. package/templates/en//360/237/224/204 Workflows/Configurations//360/237/247/252_example_config_update_sop.md" +14 -0
  197. package/templates/en//360/237/224/204 Workflows/INSTRUCTION.md" +21 -0
  198. package/templates/en//360/237/224/204 Workflows/Information/README.md" +16 -0
  199. package/templates/en//360/237/224/204 Workflows/Information//360/237/247/252_example_info_capture_sop.md" +13 -0
  200. package/templates/en//360/237/224/204 Workflows/Media/README.md" +16 -0
  201. package/templates/en//360/237/224/204 Workflows/Media//360/237/247/252_example_content_publish_sop.md" +13 -0
  202. package/templates/en//360/237/224/204 Workflows/README.md" +22 -0
  203. package/templates/en//360/237/224/204 Workflows/Research/README.md" +16 -0
  204. package/templates/en//360/237/224/204 Workflows/Research//360/237/247/252_example_lit_review_sop.md" +16 -0
  205. package/templates/en//360/237/224/204 Workflows/Startup/README.md" +3 -0
  206. package/templates/en//360/237/224/204 Workflows/Startup//360/237/247/252_example_weekly_founder_ops.md" +22 -0
  207. package/templates/en//360/237/224/227 Connections/Classmates/README.md" +11 -0
  208. package/templates/en//360/237/224/227 Connections/Classmates//360/237/247/252_example_leo_chen.md" +16 -0
  209. package/templates/en//360/237/224/227 Connections/Colleagues/README.md" +11 -0
  210. package/templates/en//360/237/224/227 Connections/Colleagues//360/237/247/252_example_ethan_zhao.md" +16 -0
  211. package/templates/en//360/237/224/227 Connections/Connections Overview.csv" +5 -0
  212. package/templates/en//360/237/224/227 Connections/Family/README.md" +11 -0
  213. package/templates/en//360/237/224/227 Connections/Family//360/237/247/252_example_james_wang.md" +16 -0
  214. package/templates/en//360/237/224/227 Connections/Friends/README.md" +11 -0
  215. package/templates/en//360/237/224/227 Connections/Friends//360/237/247/252_example_lily_lin.md" +16 -0
  216. package/templates/en//360/237/224/227 Connections/INSTRUCTION.md" +56 -0
  217. package/templates/en//360/237/224/227 Connections/README.md" +20 -0
  218. package/templates/en//360/237/232/200 Projects/Archived/README.md" +9 -0
  219. package/templates/en//360/237/232/200 Projects/Archived//360/237/247/252_example_archived_project_note.md" +14 -0
  220. package/templates/en//360/237/232/200 Projects/INSTRUCTION.md" +29 -0
  221. package/templates/en//360/237/232/200 Projects/Products/README.md" +16 -0
  222. package/templates/en//360/237/232/200 Projects/Products//360/237/247/252_example_product_project_brief.md" +20 -0
  223. package/templates/en//360/237/232/200 Projects/README.md" +21 -0
  224. package/templates/en//360/237/232/200 Projects/Research/README.md" +16 -0
  225. package/templates/en//360/237/232/200 Projects/Research//360/237/247/252_example_research_project_brief.md" +16 -0
  226. package/templates/template-generation-skill.md +79 -0
  227. package/templates/zh/CHANGELOG.md +9 -0
  228. package/templates/zh/CONFIG.json +197 -0
  229. package/templates/zh/CONFIG.md +66 -0
  230. package/templates/zh/INSTRUCTION.md +177 -0
  231. package/templates/zh/README.md +27 -0
  232. package/templates/zh/TODO.md +13 -0
  233. package/templates/zh//360/237/221/244 /347/224/273/345/203/217/INSTRUCTION.md" +28 -0
  234. package/templates/zh//360/237/221/244 /347/224/273/345/203/217/README.md" +20 -0
  235. package/templates/zh//360/237/221/244 /347/224/273/345/203/217//342/232/231/357/270/217 Preferences.md" +21 -0
  236. package/templates/zh//360/237/221/244 /347/224/273/345/203/217//360/237/216/257 Focus.md" +31 -0
  237. package/templates/zh//360/237/221/244 /347/224/273/345/203/217//360/237/221/244 Identity.md" +22 -0
  238. package/templates/zh//360/237/223/232 /350/265/204/346/272/220/INSTRUCTION.md" +29 -0
  239. package/templates/zh//360/237/223/232 /350/265/204/346/272/220/README.md" +21 -0
  240. package/templates/zh//360/237/223/232 /350/265/204/346/272/220//360/237/247/276 AI Inferencers.csv" +1 -0
  241. package/templates/zh//360/237/223/232 /350/265/204/346/272/220//360/237/247/276 AI /344/272/247/345/223/201.csv" +1 -0
  242. package/templates/zh//360/237/223/232 /350/265/204/346/272/220//360/237/247/276 AI /345/255/246/350/200/205/346/270/205/345/215/225.csv" +1 -0
  243. package/templates/zh//360/237/223/232 /350/265/204/346/272/220//360/237/247/276 AI /345/267/245/345/205/267/346/270/205/345/215/225.csv" +1 -0
  244. package/templates/zh//360/237/223/235 /347/254/224/350/256/260/INSTRUCTION.md" +31 -0
  245. package/templates/zh//360/237/223/235 /347/254/224/350/256/260/README.md" +24 -0
  246. package/templates/zh//360/237/223/235 /347/254/224/350/256/260//344/274/232/350/256/256/README.md" +8 -0
  247. package/templates/zh//360/237/223/235 /347/254/224/350/256/260//344/274/232/350/256/256//360/237/247/252_example_/344/274/232/350/256/256/347/272/252/350/246/201.md" +17 -0
  248. package/templates/zh//360/237/223/235 /347/254/224/350/256/260//345/276/205/345/217/215/351/246/210/README.md" +8 -0
  249. package/templates/zh//360/237/223/235 /347/254/224/350/256/260//345/276/205/345/217/215/351/246/210//360/237/247/252_example_/345/276/205/345/217/215/351/246/210/344/272/213/351/241/271.md" +16 -0
  250. package/templates/zh//360/237/223/235 /347/254/224/350/256/260//346/203/263/346/263/225/README.md" +8 -0
  251. package/templates/zh//360/237/223/235 /347/254/224/350/256/260//346/203/263/346/263/225//360/237/247/252_example_/344/272/247/345/223/201/346/203/263/346/263/225.md" +16 -0
  252. package/templates/zh//360/237/223/235 /347/254/224/350/256/260//346/224/266/344/273/266/347/256/261/README.md" +8 -0
  253. package/templates/zh//360/237/223/235 /347/254/224/350/256/260//346/224/266/344/273/266/347/256/261//360/237/247/252_example_/344/270/264/346/227/266/351/200/237/350/256/260.md" +13 -0
  254. package/templates/zh//360/237/224/204 /346/265/201/347/250/213/INSTRUCTION.md" +29 -0
  255. package/templates/zh//360/237/224/204 /346/265/201/347/250/213/README.md" +21 -0
  256. package/templates/zh//360/237/224/204 /346/265/201/347/250/213//344/277/241/346/201/257/README.md" +16 -0
  257. package/templates/zh//360/237/224/204 /346/265/201/347/250/213//344/277/241/346/201/257//360/237/247/252_example_/344/277/241/346/201/257/351/207/207/351/233/206/346/265/201/347/250/213.md" +13 -0
  258. package/templates/zh//360/237/224/204 /346/265/201/347/250/213//345/252/222/344/275/223/README.md" +16 -0
  259. package/templates/zh//360/237/224/204 /346/265/201/347/250/213//345/252/222/344/275/223//360/237/247/252_example_/345/206/205/345/256/271/345/217/221/345/270/203/346/265/201/347/250/213.md" +13 -0
  260. package/templates/zh//360/237/224/204 /346/265/201/347/250/213//347/247/221/347/240/224/README.md" +16 -0
  261. package/templates/zh//360/237/224/204 /346/265/201/347/250/213//347/247/221/347/240/224//360/237/247/252_example_/346/226/207/347/214/256/347/273/274/350/277/260/346/265/201/347/250/213.md" +16 -0
  262. package/templates/zh//360/237/224/204 /346/265/201/347/250/213//351/205/215/347/275/256/README.md" +3 -0
  263. package/templates/zh//360/237/224/204 /346/265/201/347/250/213//351/205/215/347/275/256//360/237/247/252_example_/351/205/215/347/275/256/346/233/264/346/226/260/346/265/201/347/250/213.md" +26 -0
  264. package/templates/zh//360/237/224/227 /345/205/263/347/263/273/INSTRUCTION.md" +62 -0
  265. package/templates/zh//360/237/224/227 /345/205/263/347/263/273/README.md" +20 -0
  266. package/templates/zh//360/237/224/227 /345/205/263/347/263/273//345/205/263/347/263/273/346/200/273/350/247/210.csv" +5 -0
  267. package/templates/zh//360/237/224/227 /345/205/263/347/263/273//345/220/214/344/272/213/README.md" +11 -0
  268. package/templates/zh//360/237/224/227 /345/205/263/347/263/273//345/220/214/344/272/213//360/237/247/252_example_/345/220/214/344/272/213/350/265/265/344/270/200/350/276/260.md" +16 -0
  269. package/templates/zh//360/237/224/227 /345/205/263/347/263/273//345/220/214/345/255/246/README.md" +11 -0
  270. package/templates/zh//360/237/224/227 /345/205/263/347/263/273//345/220/214/345/255/246//360/237/247/252_example_/345/220/214/345/255/246/351/231/210/347/253/213/346/254/247.md" +16 -0
  271. package/templates/zh//360/237/224/227 /345/205/263/347/263/273//345/256/266/344/272/272/README.md" +11 -0
  272. package/templates/zh//360/237/224/227 /345/205/263/347/263/273//345/256/266/344/272/272//360/237/247/252_example_/345/256/266/344/272/272/347/216/213/345/273/272/345/233/275.md" +16 -0
  273. package/templates/zh//360/237/224/227 /345/205/263/347/263/273//346/234/213/345/217/213/README.md" +11 -0
  274. package/templates/zh//360/237/224/227 /345/205/263/347/263/273//346/234/213/345/217/213//360/237/247/252_example_/346/234/213/345/217/213/346/236/227/345/260/217/344/270/275.md" +16 -0
  275. package/templates/zh//360/237/232/200 /351/241/271/347/233/256/INSTRUCTION.md" +31 -0
  276. package/templates/zh//360/237/232/200 /351/241/271/347/233/256/README.md" +21 -0
  277. package/templates/zh//360/237/232/200 /351/241/271/347/233/256//344/272/247/345/223/201/README.md" +16 -0
  278. package/templates/zh//360/237/232/200 /351/241/271/347/233/256//344/272/247/345/223/201//360/237/247/252_example_/344/272/247/345/223/201/351/241/271/347/233/256/347/256/200/346/212/245.md" +20 -0
  279. package/templates/zh//360/237/232/200 /351/241/271/347/233/256//345/267/262/345/275/222/346/241/243/README.md" +9 -0
  280. package/templates/zh//360/237/232/200 /351/241/271/347/233/256//345/267/262/345/275/222/346/241/243//360/237/247/252_example_/345/275/222/346/241/243/351/241/271/347/233/256/350/256/260/345/275/225.md" +15 -0
  281. package/templates/zh//360/237/232/200 /351/241/271/347/233/256//347/247/221/347/240/224/README.md" +16 -0
  282. package/templates/zh//360/237/232/200 /351/241/271/347/233/256//347/247/221/347/240/224//360/237/247/252_example_/347/247/221/347/240/224/351/241/271/347/233/256/347/256/200/346/212/245.md" +16 -0
@@ -0,0 +1,16 @@
1
+ # Lily Lin
2
+
3
+ ## Relationship
4
+ - College friend
5
+
6
+ ## Current Role
7
+ - Product Manager
8
+
9
+ ## MindOS Relevance
10
+ - Strong product narrative sense and pricing intuition.
11
+
12
+ ## Collaboration Potential
13
+ - Can stress-test landing page copy and onboarding message clarity.
14
+
15
+ ## Next Action
16
+ - Request feedback on "promise-to-proof" homepage structure.
@@ -0,0 +1,56 @@
1
+ # Connections Instruction Set
2
+
3
+ This directory stores reusable relationship context for agent collaboration.
4
+
5
+ ## Authority and Priority
6
+
7
+ - Rule precedence in this directory:
8
+ `root INSTRUCTION.md` > `this INSTRUCTION.md` > `README.md` > content files.
9
+ - If any conflict appears, root rules win.
10
+
11
+ ## Local Rules
12
+
13
+ - Maintain overview index at root: `Connections Overview.csv`.
14
+ - Each person must have one markdown file under a category folder:
15
+ `Family/`, `Friends/`, `Classmates/`, `Colleagues/`.
16
+ - `MdPath` in overview CSV must be relative and point to an existing file.
17
+ - Example content is reference-only and not production user data.
18
+
19
+ ## Execution Order
20
+
21
+ 1. Read root `INSTRUCTION.md`
22
+ 2. Read this file (`🔗 Connections/INSTRUCTION.md`)
23
+ 3. Read `🔗 Connections/README.md` and `Connections Overview.csv`
24
+ 4. Read target person `*.md` files under category folders
25
+ 5. Execute
26
+
27
+ ## CSV Schema
28
+
29
+ `Connections Overview.csv` header:
30
+
31
+ - `Name`
32
+ - `Category`
33
+ - `Relationship`
34
+ - `CurrentRole`
35
+ - `Location`
36
+ - `Status`
37
+ - `LastInteraction`
38
+ - `MdPath`
39
+ - `UpdatedAt`
40
+
41
+ Rules:
42
+
43
+ - `Category` values: `Family|Friends|Classmates|Colleagues`
44
+ - `MdPath` must be relative (for example, `Friends/Jane_Doe.md`)
45
+ - `UpdatedAt` must use `YYYY-MM-DD`
46
+
47
+ ## Consistency Rules
48
+
49
+ - On add: create person `*.md` and append one row to `Connections Overview.csv`.
50
+ - On rename/move/delete: update `MdPath` and all affected references.
51
+ - On category move: update folder location, `Category`, and `MdPath`.
52
+
53
+ ## Example Naming Rules
54
+
55
+ - Example files must be placed in category folders, named `🧪_example_xxx.md`.
56
+ - Any file/folder containing `_example` or `_examples` is not user production data.
@@ -0,0 +1,20 @@
1
+ # Connections
2
+
3
+ Reusable relationship context to help agents collaborate in your real-world context.
4
+
5
+ ## Structure
6
+
7
+ - `Connections Overview.csv` (overview index)
8
+ - `Family/`
9
+ - `Friends/`
10
+ - `Classmates/`
11
+ - `Colleagues/`
12
+
13
+ Example files are kept in each category folder and named `🧪_example_xxx.md`.
14
+
15
+ ## Usage
16
+
17
+ - Read `Connections Overview.csv` first, then open files by `MdPath`.
18
+ - Category examples are demo-only and must not be treated as user facts.
19
+ - When adding a person, create a person `*.md` and sync overview CSV.
20
+ - Field standards and execution details are defined in `INSTRUCTION.md`.
@@ -0,0 +1,9 @@
1
+ # Archived
2
+
3
+ Storage for completed, paused, or inactive projects.
4
+
5
+ ## Usage
6
+
7
+ - Archive projects after completion/pause/termination.
8
+ - Keep core artifacts (summary, decisions, retrospective).
9
+ - Move back to `Products/` or `Research/` if reactivated.
@@ -0,0 +1,14 @@
1
+ # 🗂️ Archived Project Example: Creator Toolkit v0
2
+
3
+ ## Status
4
+ - Paused after pilot.
5
+
6
+ ## Why Archived
7
+ - User demand favored execution reliability over template variety.
8
+
9
+ ## Key Learnings
10
+ - Simpler positioning converted better.
11
+ - Users cared more about continuity than customization depth.
12
+
13
+ ## Reuse Value
14
+ - Reusable components: onboarding checklist and sample prompts.
@@ -0,0 +1,29 @@
1
+ # Directory Instruction Set
2
+
3
+ ## Goal
4
+
5
+ - Define local execution rules for this first-level directory.
6
+
7
+ ## Local Rules
8
+
9
+ - Read root `INSTRUCTION.md` first.
10
+ - Then read this directory `README.md` for navigation.
11
+ - Keep edits minimal, structured, and traceable.
12
+ - Keep product projects in `Products/`, research projects in `Research/`, and inactive projects in `Archived/`.
13
+
14
+ ## Execution Order
15
+
16
+ 1. Root `INSTRUCTION.md`
17
+ 2. This directory `INSTRUCTION.md`
18
+ 3. This directory `README.md` and target files
19
+
20
+ ## Boundary
21
+
22
+ - Root rules win on conflict.
23
+
24
+ ## Sync Rules (Projects)
25
+
26
+ - On new product project: create one folder under `Products/`.
27
+ - On new research project: create one folder under `Research/`.
28
+ - On archive: move project to `Archived/` and sync affected references.
29
+ - On rename/delete/move: update this directory `README.md` and all path references.
@@ -0,0 +1,16 @@
1
+ # Products
2
+
3
+ Workspace for product project documents.
4
+
5
+ ## Structure
6
+
7
+ ```bash
8
+ Products/
9
+ └── <project-name>/
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ - Create one folder per product project.
15
+ - Keep project-level plans, PRD, and review docs inside.
16
+ - Follow parent rules in `🚀 Projects/INSTRUCTION.md`.
@@ -0,0 +1,20 @@
1
+ # 📌 Product Project Brief Example: MindOS Public Launch
2
+
3
+ ## Vision
4
+ - Build the most trusted personal operating system for AI-assisted execution.
5
+
6
+ ## Core Promise
7
+ - "From scattered notes to consistent outcomes, every week."
8
+
9
+ ## Target Users
10
+ - Builders, creators, and operators who feel fragmented across tools.
11
+
12
+ ## Key Deliverables
13
+ - Positioning-led landing page
14
+ - 60-second product demo
15
+ - Case-based onboarding template
16
+
17
+ ## Success Metrics
18
+ - Activation rate
19
+ - Week-2 retention
20
+ - Demo-to-signup conversion
@@ -0,0 +1,21 @@
1
+ # Projects
2
+
3
+ Overview for product and research project workspaces.
4
+
5
+ ## Structure
6
+
7
+ ```bash
8
+ 🚀 Projects/
9
+ ├── README.md
10
+ ├── INSTRUCTION.md
11
+ ├── Products/
12
+ ├── Research/
13
+ └── Archived/
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ - `Products/`: product project docs and ongoing artifacts.
19
+ - `Research/`: research project docs and experiment notes.
20
+ - `Archived/`: completed, paused, or inactive projects.
21
+ - Put sync and execution rules in `INSTRUCTION.md`.
@@ -0,0 +1,16 @@
1
+ # Research
2
+
3
+ Workspace for research project documents.
4
+
5
+ ## Structure
6
+
7
+ ```bash
8
+ Research/
9
+ └── <project-name>/
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ - Create one folder per research project.
15
+ - Keep proposal, experiments, and writing docs inside.
16
+ - Follow parent rules in `🚀 Projects/INSTRUCTION.md`.
@@ -0,0 +1,16 @@
1
+ # 🧪 Research Project Brief Example: Reliability and Trust
2
+
3
+ ## Hypothesis
4
+ - Transparent memory references increase user trust and completion quality.
5
+
6
+ ## Study Design
7
+ - Compare baseline assistant vs trace-enabled assistant.
8
+ - Measure trust score, correction frequency, and task completion.
9
+
10
+ ## Product Link
11
+ - Findings directly inform marketing claims and onboarding explanations.
12
+
13
+ ## Deliverables
14
+ - Experiment report
15
+ - Messaging-safe evidence statements
16
+ - Product requirements update
@@ -0,0 +1,79 @@
1
+ # Template Generation Skill
2
+
3
+ 用于在 `templates/` 下持续生成与重构中英文模板(`zh/`、`en/`)的执行技能。
4
+
5
+ ## 1. 目标
6
+
7
+ - 快速搭建可初始化的模板骨架。
8
+ - 保持中英文模板语义一致、结构同构。
9
+ - 降低规则漂移与文档返工成本。
10
+
11
+ ## 2. 触发条件
12
+
13
+ - 新增或重构模板目录/文件。
14
+ - 处理中英文模板对齐。
15
+ - 新增示例数据与示例文件。
16
+ - 修复模板规则冲突(`INSTRUCTION.md` vs `README.md`)。
17
+ - 更新配置协议(`CONFIG.json` / `CONFIG.md`)。
18
+
19
+ ## 3. 全局约束(必须)
20
+
21
+ - 规则优先级:`根 INSTRUCTION.md` > `子目录 INSTRUCTION.md` > `README.md` > 内容文件。
22
+ - `README.md` 只做导航与使用说明,不定义规则优先级与执行边界。
23
+ - 中英文模板保持语义一致,文风可以不同。
24
+ - 结构改动必须同步到 `templates/zh` 与 `templates/en`。
25
+ - 一级目录结构变更后,必须同步检查根 `README.md`、`SETUP.md` 及相关目录 `README.md` 的路径示例是否有效。
26
+ - 一级目录应默认同时提供 `README.md` 与轻量 `INSTRUCTION.md`。
27
+ - 二级目录至少提供 `README.md`;仅在出现可复用局部规则时再新增 `INSTRUCTION.md`。
28
+
29
+ ## 4. 命名策略(当前)
30
+
31
+ - 仅一级目录加 emoji 前缀(如 `👤 Profile/`、`🔗 关系/`)。
32
+ - 二级及更深目录不加 emoji(保持路径稳定与可读)。
33
+ - 非系统文件默认使用 emoji 前缀命名。
34
+ - 命名语言跟随 `languagePreference.folderNamingLanguage`:中文模板默认中文,英文模板默认英文。
35
+ - 中文模板中的示例文件名在 `🧪_example_` 前缀之后应使用中文命名。
36
+
37
+ ### 4.1 系统文件白名单(不强制 emoji)
38
+
39
+ - `README.md`
40
+ - `INSTRUCTION.md`
41
+ - `TODO.md`
42
+ - `CHANGELOG.md`
43
+ - `CONFIG.json`
44
+ - `CONFIG.md`
45
+
46
+ ## 5. 示例文件规则
47
+
48
+ - 示例文件命名:`🧪_example_xxx.md`。
49
+ - 示例索引命名:`🧪 ..._examples.csv`。
50
+ - 示例文件就近放在对应分类目录下,不集中到 `_examples/` 目录。
51
+ - 名称包含 `_example` 或 `_examples` 的内容一律视为示例数据。
52
+ - 示例 CSV 的 `MdPath` 必须指向真实存在的示例文件。
53
+ - 对于关系类目录,采用“根目录总览 CSV + 每人一个独立 MD”的模式。
54
+
55
+ ## 6. CONFIG 协议
56
+
57
+ - `CONFIG.json` 与 `CONFIG.md` 必须同时读取。
58
+ - 两者互补,不分优先级。
59
+ - 目录命名与层级命名等语义协议优先沉淀在 `CONFIG.md`;`CONFIG.json` 保持结构化键值表达。
60
+
61
+ ## 7. 配置设计约束
62
+
63
+ - 配置项尽量通用,不绑定具体业务子目录。
64
+ - 避免重复控制项(同一语义仅保留一个主键)。
65
+ - 语言配置至少包含:
66
+ - `languagePreference.preferredLanguage`
67
+ - `languagePreference.folderNamingLanguage`
68
+ - `languagePreference.contentWritingLanguage`
69
+ - `languagePreference.enforceLocalizedNaming`
70
+
71
+ ## 8. 交付检查清单
72
+
73
+ - `templates/zh` 与 `templates/en` 是否同构。
74
+ - 一级目录是否带 emoji,二级目录是否不带 emoji。
75
+ - 一级目录 `README.md` 是否移除了“更新规则”类内容(已迁移至 `INSTRUCTION.md`)。
76
+ - 示例命名是否符合 `_example` / `_examples` 约束。
77
+ - 中文模板示例文件名是否满足“前缀后中文命名”约束。
78
+ - CSV 的 `MdPath` 是否与真实路径一致。
79
+ - 是否已执行一次全量字符串巡检(如 `rg`)清理旧目录名、旧路径与失效引用。
@@ -0,0 +1,9 @@
1
+ # 📋 CHANGELOG
2
+
3
+ > 按日期倒序记录已完成的事项。
4
+
5
+ ## YYYY-MM-DD
6
+
7
+ ### 分类标题
8
+
9
+ - 完成事项描述
@@ -0,0 +1,197 @@
1
+ {
2
+ "schemaVersion": "1.1",
3
+ "locale": "zh",
4
+ "languagePreference": {
5
+ "preferredLanguage": "zh",
6
+ "supportedLanguages": [
7
+ {
8
+ "value": "zh",
9
+ "label": "中文"
10
+ },
11
+ {
12
+ "value": "en",
13
+ "label": "英文"
14
+ }
15
+ ],
16
+ "folderNamingLanguage": "zh",
17
+ "contentWritingLanguage": "zh",
18
+ "enforceLocalizedNaming": true
19
+ },
20
+ "filename": {
21
+ "emojiPrefixDefault": true,
22
+ "allowEmojiPrefix": true,
23
+ "exampleSuffixSingle": "_example",
24
+ "exampleSuffixCollection": "_examples"
25
+ },
26
+ "structure": {
27
+ "requireFirstLevelReadme": true,
28
+ "recommendFirstLevelInstruction": true
29
+ },
30
+ "document": {
31
+ "title": {
32
+ "emojiEnabled": true,
33
+ "defaultHeadingLevel": 2
34
+ }
35
+ },
36
+ "protocol": {
37
+ "readMode": "config_and_doc",
38
+ "priorityBetweenConfigAndDoc": "none",
39
+ "notes": [
40
+ "CONFIG.json 与 CONFIG.md 需同时读取",
41
+ "两者是互补关系,不分优先级"
42
+ ]
43
+ },
44
+ "uiSchema": {
45
+ "version": "1.0",
46
+ "sections": [
47
+ {
48
+ "id": "filename",
49
+ "title": "文件命名",
50
+ "description": "控制模板生成时的文件命名规则",
51
+ "fields": [
52
+ "filename.emojiPrefixDefault",
53
+ "filename.allowEmojiPrefix",
54
+ "filename.exampleSuffixSingle",
55
+ "filename.exampleSuffixCollection"
56
+ ]
57
+ },
58
+ {
59
+ "id": "structure",
60
+ "title": "结构约束",
61
+ "description": "控制目录结构与中英文同步要求",
62
+ "fields": [
63
+ "structure.requireFirstLevelReadme",
64
+ "structure.recommendFirstLevelInstruction"
65
+ ]
66
+ },
67
+ {
68
+ "id": "document_title",
69
+ "title": "标题生成",
70
+ "description": "控制文档标题的默认生成方式",
71
+ "fields": [
72
+ "document.title.emojiEnabled",
73
+ "document.title.defaultHeadingLevel"
74
+ ]
75
+ },
76
+ {
77
+ "id": "language_preference",
78
+ "title": "语言偏好",
79
+ "description": "控制生成时的目录命名语言与内容写作语言",
80
+ "fields": [
81
+ "languagePreference.preferredLanguage",
82
+ "languagePreference.folderNamingLanguage",
83
+ "languagePreference.contentWritingLanguage",
84
+ "languagePreference.enforceLocalizedNaming"
85
+ ]
86
+ }
87
+ ]
88
+ },
89
+ "keySpecs": {
90
+ "filename.emojiPrefixDefault": {
91
+ "type": "boolean",
92
+ "control": "switch",
93
+ "label": "文件名默认 emoji 前缀",
94
+ "description": "新建文件时是否默认以 emoji 开头"
95
+ },
96
+ "filename.allowEmojiPrefix": {
97
+ "type": "boolean",
98
+ "control": "switch",
99
+ "label": "允许 emoji 前缀",
100
+ "description": "是否允许文件名包含 emoji 前缀"
101
+ },
102
+ "filename.exampleSuffixSingle": {
103
+ "type": "string",
104
+ "control": "text",
105
+ "label": "单文件示例后缀",
106
+ "description": "单个示例文件命名后缀,默认 _example"
107
+ },
108
+ "filename.exampleSuffixCollection": {
109
+ "type": "string",
110
+ "control": "text",
111
+ "label": "示例集合后缀",
112
+ "description": "示例目录命名后缀,默认 _examples"
113
+ },
114
+ "structure.requireFirstLevelReadme": {
115
+ "type": "boolean",
116
+ "control": "switch",
117
+ "label": "一级目录必须有 README",
118
+ "description": "项目根目录下每个一级目录都需包含 README.md"
119
+ },
120
+ "structure.recommendFirstLevelInstruction": {
121
+ "type": "boolean",
122
+ "control": "switch",
123
+ "label": "建议一级目录有 INSTRUCTION",
124
+ "description": "是否建议一级目录提供局部规则文件"
125
+ },
126
+ "document.title.emojiEnabled": {
127
+ "type": "boolean",
128
+ "control": "switch",
129
+ "label": "标题允许 emoji",
130
+ "description": "生成标题时是否默认允许 emoji"
131
+ },
132
+ "document.title.defaultHeadingLevel": {
133
+ "type": "integer",
134
+ "control": "number",
135
+ "label": "默认标题层级",
136
+ "description": "生成文档标题时的默认 Markdown 标题层级",
137
+ "constraints": {
138
+ "min": 1,
139
+ "max": 6
140
+ }
141
+ },
142
+ "languagePreference.preferredLanguage": {
143
+ "type": "enum",
144
+ "control": "select",
145
+ "options": [
146
+ {
147
+ "value": "zh",
148
+ "label": "中文"
149
+ },
150
+ {
151
+ "value": "en",
152
+ "label": "英文"
153
+ }
154
+ ],
155
+ "label": "首选语言",
156
+ "description": "总体语言偏好,用于默认生成策略"
157
+ },
158
+ "languagePreference.folderNamingLanguage": {
159
+ "type": "enum",
160
+ "control": "select",
161
+ "options": [
162
+ {
163
+ "value": "zh",
164
+ "label": "中文"
165
+ },
166
+ {
167
+ "value": "en",
168
+ "label": "英文"
169
+ }
170
+ ],
171
+ "label": "目录与文件命名语言",
172
+ "description": "控制新建目录名与文件名使用的语言"
173
+ },
174
+ "languagePreference.contentWritingLanguage": {
175
+ "type": "enum",
176
+ "control": "select",
177
+ "options": [
178
+ {
179
+ "value": "zh",
180
+ "label": "中文"
181
+ },
182
+ {
183
+ "value": "en",
184
+ "label": "英文"
185
+ }
186
+ ],
187
+ "label": "内容写作语言",
188
+ "description": "控制生成文档正文时使用的语言"
189
+ },
190
+ "languagePreference.enforceLocalizedNaming": {
191
+ "type": "boolean",
192
+ "control": "switch",
193
+ "label": "强制本地化命名",
194
+ "description": "开启后,中文模板要求目录/文件名使用中文;英文模板要求使用英文"
195
+ }
196
+ }
197
+ }
@@ -0,0 +1,66 @@
1
+ # CONFIG 说明
2
+
3
+ 本文件用于解释模板配置,供人类快速阅读。
4
+
5
+ ## 范围
6
+
7
+ - 语言范围:`templates/zh/`。
8
+ - 对应机器可读文件:`templates/zh/CONFIG.json`。
9
+
10
+ ## 读取规则
11
+
12
+ - `CONFIG.json` 与 `CONFIG.md` 需要同时读取。
13
+ - 二者是互补关系,不设优先级。
14
+ - JSON 提供结构化配置值,MD 提供语义说明与使用意图。
15
+
16
+ ## 当前关键配置
17
+
18
+ ### `languagePreference`
19
+
20
+ - `preferredLanguage`: 总体语言偏好
21
+ - `supportedLanguages`: 可选语言列表(中文、英文)
22
+ - `folderNamingLanguage`: 目录与文件命名语言
23
+ - `contentWritingLanguage`: 内容写作语言
24
+ - `enforceLocalizedNaming`: 是否强制本地化命名(中文模板默认中文命名)
25
+
26
+ ### `filename`
27
+
28
+ - `emojiPrefixDefault`: 新文件名是否默认使用 emoji 前缀
29
+ - `allowEmojiPrefix`: 是否允许文件名使用 emoji 前缀
30
+ - `exampleSuffixSingle`: 单个示例文件后缀(默认 `_example`)
31
+ - `exampleSuffixCollection`: 示例集合目录后缀(默认 `_examples`)
32
+
33
+ ### `structure`
34
+
35
+ - `requireFirstLevelReadme`: 一级目录是否必须有 `README.md`
36
+ - `recommendFirstLevelInstruction`: 是否建议一级目录提供 `INSTRUCTION.md`
37
+
38
+ ### `document.title`
39
+
40
+ - `emojiEnabled`: 生成标题是否默认允许 emoji
41
+ - `defaultHeadingLevel`: 生成标题默认层级(当前为 `2`)
42
+
43
+ ### `protocol`
44
+
45
+ - `readMode`: 配置读取模式
46
+ - `priorityBetweenConfigAndDoc`: 配置值与文档说明关系(当前 `none`,不分优先级)
47
+ - `notes`: 配置协议说明
48
+
49
+ ## 目录命名与层级规则(放在 CONFIG.md 的语义层)
50
+
51
+ 以下规则作为目录命名语义协议,由 `CONFIG.md` 负责解释并约束执行:
52
+
53
+ - 一级目录(项目根目录的子目录)默认使用 `emoji + 名称`。
54
+ - 二级及以下目录默认不加 emoji。
55
+ - 目录命名语言由 `languagePreference.folderNamingLanguage` 决定。
56
+ - 内容文件是否使用 emoji 前缀由 `filename.*` 控制。
57
+
58
+ 当前模板约定(zh):
59
+
60
+ - 一级目录示例:`👤 画像/`、`📝 笔记/`、`🔗 关系/`、`🔄 流程/`、`📚 资源/`、`🚀 项目/`
61
+ - 二级目录示例:`家人/`、`朋友/`、`同学/`、`同事/`(不加 emoji)
62
+
63
+ 当目录命名策略有调整时:
64
+
65
+ - 先更新 `CONFIG.md` 的语义规则。
66
+ - 再同步更新 `README.md`、`INSTRUCTION.md` 与实际目录结构。