@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.
- package/.env.local.example +38 -0
- package/LICENSE +21 -0
- package/README.md +423 -0
- package/README_zh.md +423 -0
- package/app/README.md +152 -0
- package/app/app/api/ask/route.ts +170 -0
- package/app/app/api/ask-sessions/route.ts +90 -0
- package/app/app/api/auth/route.ts +37 -0
- package/app/app/api/backlinks/route.ts +22 -0
- package/app/app/api/bootstrap/route.ts +37 -0
- package/app/app/api/extract-pdf/route.ts +82 -0
- package/app/app/api/file/route.ts +138 -0
- package/app/app/api/files/route.ts +12 -0
- package/app/app/api/git/route.ts +42 -0
- package/app/app/api/graph/route.ts +113 -0
- package/app/app/api/recent-files/route.ts +10 -0
- package/app/app/api/search/route.ts +17 -0
- package/app/app/api/settings/reset-token/route.ts +21 -0
- package/app/app/api/settings/route.ts +123 -0
- package/app/app/error.tsx +33 -0
- package/app/app/globals.css +368 -0
- package/app/app/icon.svg +35 -0
- package/app/app/layout.tsx +103 -0
- package/app/app/login/page.tsx +120 -0
- package/app/app/page.tsx +12 -0
- package/app/app/view/[...path]/ViewPageClient.tsx +343 -0
- package/app/app/view/[...path]/error.tsx +33 -0
- package/app/app/view/[...path]/loading.tsx +15 -0
- package/app/app/view/[...path]/page.tsx +93 -0
- package/app/components/AskFab.tsx +59 -0
- package/app/components/AskModal.tsx +398 -0
- package/app/components/Backlinks.tsx +75 -0
- package/app/components/Breadcrumb.tsx +31 -0
- package/app/components/CsvView.tsx +325 -0
- package/app/components/DirView.tsx +138 -0
- package/app/components/Editor.tsx +124 -0
- package/app/components/EditorWrapper.tsx +17 -0
- package/app/components/ErrorBoundary.tsx +53 -0
- package/app/components/FileTree.tsx +369 -0
- package/app/components/HomeContent.tsx +262 -0
- package/app/components/JsonView.tsx +27 -0
- package/app/components/MarkdownEditor.tsx +95 -0
- package/app/components/MarkdownView.tsx +118 -0
- package/app/components/SearchModal.tsx +193 -0
- package/app/components/SettingsModal.tsx +237 -0
- package/app/components/Sidebar.tsx +136 -0
- package/app/components/SidebarLayout.tsx +36 -0
- package/app/components/TableOfContents.tsx +150 -0
- package/app/components/ThemeToggle.tsx +34 -0
- package/app/components/WysiwygEditor.tsx +75 -0
- package/app/components/ask/FileChip.tsx +30 -0
- package/app/components/ask/MentionPopover.tsx +52 -0
- package/app/components/ask/MessageList.tsx +126 -0
- package/app/components/ask/SessionHistory.tsx +49 -0
- package/app/components/renderers/AgentInspectorRenderer.tsx +277 -0
- package/app/components/renderers/BacklinksRenderer.tsx +147 -0
- package/app/components/renderers/ConfigRenderer.tsx +236 -0
- package/app/components/renderers/CsvRenderer.tsx +77 -0
- package/app/components/renderers/DiffRenderer.tsx +310 -0
- package/app/components/renderers/GraphRenderer.tsx +428 -0
- package/app/components/renderers/SummaryRenderer.tsx +251 -0
- package/app/components/renderers/TimelineRenderer.tsx +213 -0
- package/app/components/renderers/TodoRenderer.tsx +474 -0
- package/app/components/renderers/WorkflowRenderer.tsx +404 -0
- package/app/components/renderers/csv/BoardView.tsx +146 -0
- package/app/components/renderers/csv/ConfigPanel.tsx +117 -0
- package/app/components/renderers/csv/EditableCell.tsx +43 -0
- package/app/components/renderers/csv/GalleryView.tsx +40 -0
- package/app/components/renderers/csv/TableView.tsx +164 -0
- package/app/components/renderers/csv/types.ts +87 -0
- package/app/components/settings/AiTab.tsx +111 -0
- package/app/components/settings/AppearanceTab.tsx +101 -0
- package/app/components/settings/KnowledgeTab.tsx +157 -0
- package/app/components/settings/PluginsTab.tsx +82 -0
- package/app/components/settings/Primitives.tsx +60 -0
- package/app/components/settings/ShortcutsTab.tsx +22 -0
- package/app/components/settings/types.ts +41 -0
- package/app/components/ui/button.tsx +60 -0
- package/app/components/ui/dialog.tsx +157 -0
- package/app/components/ui/input.tsx +20 -0
- package/app/components/ui/scroll-area.tsx +55 -0
- package/app/components/ui/toggle.tsx +44 -0
- package/app/components/ui/tooltip.tsx +66 -0
- package/app/components.json +25 -0
- package/app/data/pages/home-dark.png +0 -0
- package/app/data/pages/home-mobile-crop.png +0 -0
- package/app/data/pages/home-mobile.png +0 -0
- package/app/data/pages/home.png +0 -0
- package/app/data/pages/view-dir.png +0 -0
- package/app/data/pages/view-file-bot.png +0 -0
- package/app/data/pages/view-file-dark-crop.png +0 -0
- package/app/data/pages/view-file-dark.png +0 -0
- package/app/data/pages/view-file-mobile.png +0 -0
- package/app/data/pages/view-file-sm.png +0 -0
- package/app/data/pages/view-file-top.png +0 -0
- package/app/data/pages/view-file.png +0 -0
- package/app/eslint.config.mjs +18 -0
- package/app/hooks/useAskSession.ts +181 -0
- package/app/hooks/useFileUpload.ts +126 -0
- package/app/hooks/useMention.ts +65 -0
- package/app/lib/LocaleContext.tsx +40 -0
- package/app/lib/actions.ts +40 -0
- package/app/lib/agent/index.ts +3 -0
- package/app/lib/agent/model.ts +18 -0
- package/app/lib/agent/prompt.ts +32 -0
- package/app/lib/agent/tools.ts +151 -0
- package/app/lib/api.ts +55 -0
- package/app/lib/core/backlinks.ts +40 -0
- package/app/lib/core/csv.ts +28 -0
- package/app/lib/core/fs-ops.ts +118 -0
- package/app/lib/core/git.ts +50 -0
- package/app/lib/core/index.ts +58 -0
- package/app/lib/core/lines.ts +89 -0
- package/app/lib/core/search.ts +79 -0
- package/app/lib/core/security.ts +43 -0
- package/app/lib/core/tree.ts +113 -0
- package/app/lib/core/types.ts +40 -0
- package/app/lib/fs.ts +467 -0
- package/app/lib/i18n.ts +300 -0
- package/app/lib/jwt.ts +58 -0
- package/app/lib/renderers/index.ts +79 -0
- package/app/lib/renderers/registry.ts +70 -0
- package/app/lib/settings.ts +150 -0
- package/app/lib/types.ts +32 -0
- package/app/lib/utils.ts +34 -0
- package/app/next-env.d.ts +6 -0
- package/app/next.config.ts +10 -0
- package/app/package-lock.json +15306 -0
- package/app/package.json +71 -0
- package/app/postcss.config.mjs +7 -0
- package/app/proxy.ts +64 -0
- package/app/public/file.svg +1 -0
- package/app/public/globe.svg +1 -0
- package/app/public/landing/index.html +353 -0
- package/app/public/landing/style.css +216 -0
- package/app/public/logo-square.svg +37 -0
- package/app/public/logo.svg +37 -0
- package/app/public/next.svg +1 -0
- package/app/public/vercel.svg +1 -0
- package/app/public/window.svg +1 -0
- package/app/scripts/extract-pdf.cjs +56 -0
- package/app/tsconfig.json +34 -0
- package/app/vitest.config.ts +14 -0
- package/assets/demo-flow-zh.html +622 -0
- package/assets/images/demo-flow-dark.png +0 -0
- package/assets/images/demo-flow-light.png +0 -0
- package/assets/images/demo-flow-zh-dark.png +0 -0
- package/assets/images/demo-flow-zh-light.png +0 -0
- package/assets/images/gui-sync-cv.png +0 -0
- package/assets/logo-square.svg +37 -0
- package/bin/cli.js +894 -0
- package/mcp/README.md +113 -0
- package/mcp/package-lock.json +1717 -0
- package/mcp/package.json +18 -0
- package/mcp/src/index.ts +494 -0
- package/mcp/tsconfig.json +13 -0
- package/package.json +49 -0
- package/scripts/setup.js +675 -0
- package/scripts/upgrade-prompt.md +147 -0
- package/skills/mindos/SKILL.md +319 -0
- package/skills/mindos-zh/SKILL.md +318 -0
- package/templates/README.md +31 -0
- package/templates/empty/CHANGELOG.md +9 -0
- package/templates/empty/CONFIG.json +197 -0
- package/templates/empty/CONFIG.md +73 -0
- package/templates/empty/INSTRUCTION.md +177 -0
- package/templates/empty/README.md +27 -0
- package/templates/en/CHANGELOG.md +9 -0
- package/templates/en/CONFIG.json +197 -0
- package/templates/en/CONFIG.md +73 -0
- package/templates/en/INSTRUCTION.md +177 -0
- package/templates/en/README.md +27 -0
- package/templates/en/TODO.md +13 -0
- package/templates/en//360/237/221/244 Profile/INSTRUCTION.md" +21 -0
- package/templates/en//360/237/221/244 Profile/README.md" +15 -0
- package/templates/en//360/237/221/244 Profile//342/232/231/357/270/217 Preferences.md" +21 -0
- package/templates/en//360/237/221/244 Profile//360/237/216/257 Focus.md" +31 -0
- package/templates/en//360/237/221/244 Profile//360/237/221/244 Identity.md" +22 -0
- package/templates/en//360/237/223/232 Resources/INSTRUCTION.md" +29 -0
- package/templates/en//360/237/223/232 Resources/README.md" +21 -0
- package/templates/en//360/237/223/232 Resources//360/237/247/276 AI Influencers.csv" +1 -0
- package/templates/en//360/237/223/232 Resources//360/237/247/276 AI Products.csv" +1 -0
- package/templates/en//360/237/223/232 Resources//360/237/247/276 AI Scholars.csv" +1 -0
- package/templates/en//360/237/223/232 Resources//360/237/247/276 AI Tools.csv" +1 -0
- package/templates/en//360/237/223/235 Notes/INSTRUCTION.md" +31 -0
- package/templates/en//360/237/223/235 Notes/Ideas/README.md" +8 -0
- package/templates/en//360/237/223/235 Notes/Ideas//360/237/247/252_example_product_idea.md" +16 -0
- package/templates/en//360/237/223/235 Notes/Inbox/README.md" +8 -0
- package/templates/en//360/237/223/235 Notes/Inbox//360/237/247/252_example_quick_capture.md" +14 -0
- package/templates/en//360/237/223/235 Notes/Meetings/README.md" +8 -0
- package/templates/en//360/237/223/235 Notes/Meetings//360/237/247/252_example_meeting_note.md" +17 -0
- package/templates/en//360/237/223/235 Notes/README.md" +24 -0
- package/templates/en//360/237/223/235 Notes/Waiting/README.md" +8 -0
- package/templates/en//360/237/223/235 Notes/Waiting//360/237/247/252_example_blocked_item.md" +16 -0
- package/templates/en//360/237/224/204 Workflows/Configurations/README.md" +3 -0
- package/templates/en//360/237/224/204 Workflows/Configurations//360/237/247/252_example_config_update_sop.md" +14 -0
- package/templates/en//360/237/224/204 Workflows/INSTRUCTION.md" +21 -0
- package/templates/en//360/237/224/204 Workflows/Information/README.md" +16 -0
- package/templates/en//360/237/224/204 Workflows/Information//360/237/247/252_example_info_capture_sop.md" +13 -0
- package/templates/en//360/237/224/204 Workflows/Media/README.md" +16 -0
- package/templates/en//360/237/224/204 Workflows/Media//360/237/247/252_example_content_publish_sop.md" +13 -0
- package/templates/en//360/237/224/204 Workflows/README.md" +22 -0
- package/templates/en//360/237/224/204 Workflows/Research/README.md" +16 -0
- package/templates/en//360/237/224/204 Workflows/Research//360/237/247/252_example_lit_review_sop.md" +16 -0
- package/templates/en//360/237/224/204 Workflows/Startup/README.md" +3 -0
- package/templates/en//360/237/224/204 Workflows/Startup//360/237/247/252_example_weekly_founder_ops.md" +22 -0
- package/templates/en//360/237/224/227 Connections/Classmates/README.md" +11 -0
- package/templates/en//360/237/224/227 Connections/Classmates//360/237/247/252_example_leo_chen.md" +16 -0
- package/templates/en//360/237/224/227 Connections/Colleagues/README.md" +11 -0
- package/templates/en//360/237/224/227 Connections/Colleagues//360/237/247/252_example_ethan_zhao.md" +16 -0
- package/templates/en//360/237/224/227 Connections/Connections Overview.csv" +5 -0
- package/templates/en//360/237/224/227 Connections/Family/README.md" +11 -0
- package/templates/en//360/237/224/227 Connections/Family//360/237/247/252_example_james_wang.md" +16 -0
- package/templates/en//360/237/224/227 Connections/Friends/README.md" +11 -0
- package/templates/en//360/237/224/227 Connections/Friends//360/237/247/252_example_lily_lin.md" +16 -0
- package/templates/en//360/237/224/227 Connections/INSTRUCTION.md" +56 -0
- package/templates/en//360/237/224/227 Connections/README.md" +20 -0
- package/templates/en//360/237/232/200 Projects/Archived/README.md" +9 -0
- package/templates/en//360/237/232/200 Projects/Archived//360/237/247/252_example_archived_project_note.md" +14 -0
- package/templates/en//360/237/232/200 Projects/INSTRUCTION.md" +29 -0
- package/templates/en//360/237/232/200 Projects/Products/README.md" +16 -0
- package/templates/en//360/237/232/200 Projects/Products//360/237/247/252_example_product_project_brief.md" +20 -0
- package/templates/en//360/237/232/200 Projects/README.md" +21 -0
- package/templates/en//360/237/232/200 Projects/Research/README.md" +16 -0
- package/templates/en//360/237/232/200 Projects/Research//360/237/247/252_example_research_project_brief.md" +16 -0
- package/templates/template-generation-skill.md +79 -0
- package/templates/zh/CHANGELOG.md +9 -0
- package/templates/zh/CONFIG.json +197 -0
- package/templates/zh/CONFIG.md +66 -0
- package/templates/zh/INSTRUCTION.md +177 -0
- package/templates/zh/README.md +27 -0
- package/templates/zh/TODO.md +13 -0
- package/templates/zh//360/237/221/244 /347/224/273/345/203/217/INSTRUCTION.md" +28 -0
- package/templates/zh//360/237/221/244 /347/224/273/345/203/217/README.md" +20 -0
- package/templates/zh//360/237/221/244 /347/224/273/345/203/217//342/232/231/357/270/217 Preferences.md" +21 -0
- package/templates/zh//360/237/221/244 /347/224/273/345/203/217//360/237/216/257 Focus.md" +31 -0
- package/templates/zh//360/237/221/244 /347/224/273/345/203/217//360/237/221/244 Identity.md" +22 -0
- package/templates/zh//360/237/223/232 /350/265/204/346/272/220/INSTRUCTION.md" +29 -0
- package/templates/zh//360/237/223/232 /350/265/204/346/272/220/README.md" +21 -0
- package/templates/zh//360/237/223/232 /350/265/204/346/272/220//360/237/247/276 AI Inferencers.csv" +1 -0
- 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
- 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
- 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
- package/templates/zh//360/237/223/235 /347/254/224/350/256/260/INSTRUCTION.md" +31 -0
- package/templates/zh//360/237/223/235 /347/254/224/350/256/260/README.md" +24 -0
- package/templates/zh//360/237/223/235 /347/254/224/350/256/260//344/274/232/350/256/256/README.md" +8 -0
- 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
- 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
- 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
- package/templates/zh//360/237/223/235 /347/254/224/350/256/260//346/203/263/346/263/225/README.md" +8 -0
- 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
- 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
- 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
- package/templates/zh//360/237/224/204 /346/265/201/347/250/213/INSTRUCTION.md" +29 -0
- package/templates/zh//360/237/224/204 /346/265/201/347/250/213/README.md" +21 -0
- package/templates/zh//360/237/224/204 /346/265/201/347/250/213//344/277/241/346/201/257/README.md" +16 -0
- 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
- package/templates/zh//360/237/224/204 /346/265/201/347/250/213//345/252/222/344/275/223/README.md" +16 -0
- 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
- package/templates/zh//360/237/224/204 /346/265/201/347/250/213//347/247/221/347/240/224/README.md" +16 -0
- 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
- package/templates/zh//360/237/224/204 /346/265/201/347/250/213//351/205/215/347/275/256/README.md" +3 -0
- 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
- package/templates/zh//360/237/224/227 /345/205/263/347/263/273/INSTRUCTION.md" +62 -0
- package/templates/zh//360/237/224/227 /345/205/263/347/263/273/README.md" +20 -0
- 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
- package/templates/zh//360/237/224/227 /345/205/263/347/263/273//345/220/214/344/272/213/README.md" +11 -0
- 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
- package/templates/zh//360/237/224/227 /345/205/263/347/263/273//345/220/214/345/255/246/README.md" +11 -0
- 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
- package/templates/zh//360/237/224/227 /345/205/263/347/263/273//345/256/266/344/272/272/README.md" +11 -0
- 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
- package/templates/zh//360/237/224/227 /345/205/263/347/263/273//346/234/213/345/217/213/README.md" +11 -0
- 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
- package/templates/zh//360/237/232/200 /351/241/271/347/233/256/INSTRUCTION.md" +31 -0
- package/templates/zh//360/237/232/200 /351/241/271/347/233/256/README.md" +21 -0
- package/templates/zh//360/237/232/200 /351/241/271/347/233/256//344/272/247/345/223/201/README.md" +16 -0
- 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
- 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
- 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
- package/templates/zh//360/237/232/200 /351/241/271/347/233/256//347/247/221/347/240/224/README.md" +16 -0
- 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,177 @@
|
|
|
1
|
+
# MindOS Instruction Set
|
|
2
|
+
|
|
3
|
+
This file defines the base operating rules for collaboration between humans and agents inside the knowledge base.
|
|
4
|
+
|
|
5
|
+
> This file contains stable rules. Variable content (structure details, preferences, SOP specifics) should live in dedicated files.
|
|
6
|
+
>
|
|
7
|
+
> Terms: `MUST` = mandatory, `SHOULD` = strongly recommended.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 1. Bootstrap Order
|
|
12
|
+
|
|
13
|
+
When entering a knowledge base, load context in this order:
|
|
14
|
+
|
|
15
|
+
1. Read root `INSTRUCTION.md` (this file)
|
|
16
|
+
2. Read root `README.md` (index and navigation)
|
|
17
|
+
3. Read `CONFIG.json` and `CONFIG.md` together (config values + semantic explanation)
|
|
18
|
+
4. Route to the target directory
|
|
19
|
+
5. If target directory has `INSTRUCTION.md`, read it first
|
|
20
|
+
6. Then read target `README.md` and target files
|
|
21
|
+
7. Execute
|
|
22
|
+
|
|
23
|
+
Step 1 is **MUST**. Steps 2-6 are **SHOULD**, and must not be skipped for write/delete/rename operations.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 2. File Roles and Priority
|
|
28
|
+
|
|
29
|
+
### 2.1 File Roles
|
|
30
|
+
|
|
31
|
+
| File | Role |
|
|
32
|
+
|------|------|
|
|
33
|
+
| Root `INSTRUCTION.md` | Global immutable rules and precedence |
|
|
34
|
+
| Subdirectory `INSTRUCTION.md` | Local execution rules for that directory |
|
|
35
|
+
| `README.md` | Navigation and usage guidance |
|
|
36
|
+
| Regular content files | Business content (SOPs, profiles, records) |
|
|
37
|
+
|
|
38
|
+
### 2.2 Priority (Strict)
|
|
39
|
+
|
|
40
|
+
`root INSTRUCTION.md` > `subdirectory INSTRUCTION.md` > `README.md` > `regular content files`
|
|
41
|
+
|
|
42
|
+
- Resolve conflicts using this exact order.
|
|
43
|
+
- `README.md` cannot override any `INSTRUCTION.md` rule.
|
|
44
|
+
|
|
45
|
+
### 2.3 README.md Standard
|
|
46
|
+
|
|
47
|
+
Each first-level directory (such as `👤 Profile/`, `🔗 Connections/`, `🔄 Workflows/`) should include a `README.md` with:
|
|
48
|
+
|
|
49
|
+
1. **One-line purpose** (directory responsibility)
|
|
50
|
+
2. **📁 Structure** (file tree + short notes)
|
|
51
|
+
3. **💡 Usage** (what each file/subdirectory is for)
|
|
52
|
+
|
|
53
|
+
Rules like update policy, execution boundaries, and precedence belong to `INSTRUCTION.md`, not to README standards.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 3. How to Create Subdirectory INSTRUCTION.md
|
|
58
|
+
|
|
59
|
+
Create it only when local rules are reusable and meaningful. Avoid creating them by default.
|
|
60
|
+
|
|
61
|
+
### 3.1 Good Cases
|
|
62
|
+
|
|
63
|
+
- Multiple files under one directory share execution constraints
|
|
64
|
+
- The directory has its own schema or safety boundary
|
|
65
|
+
- The directory is high-frequency and mistakes are costly
|
|
66
|
+
|
|
67
|
+
### 3.2 Avoid Cases
|
|
68
|
+
|
|
69
|
+
- Pure structural description (put in README)
|
|
70
|
+
- One-off notes with no reuse
|
|
71
|
+
- Highly unstable rules with no fixed boundary
|
|
72
|
+
|
|
73
|
+
### 3.3 Standard Steps
|
|
74
|
+
|
|
75
|
+
1. Create `INSTRUCTION.md` in the target directory
|
|
76
|
+
2. Write only local rules; do not duplicate root rules
|
|
77
|
+
3. Explicitly state: if conflict exists, root rules win
|
|
78
|
+
4. Add one line in that directory README usage section: read local `INSTRUCTION.md` before execution
|
|
79
|
+
|
|
80
|
+
### 3.4 Minimal Template
|
|
81
|
+
|
|
82
|
+
```markdown
|
|
83
|
+
# <Domain> Instruction Set
|
|
84
|
+
|
|
85
|
+
## Goal
|
|
86
|
+
- Local goal for this directory
|
|
87
|
+
|
|
88
|
+
## Local Rules
|
|
89
|
+
- Rule 1
|
|
90
|
+
- Rule 2
|
|
91
|
+
|
|
92
|
+
## Execution Order
|
|
93
|
+
1. Root `INSTRUCTION.md`
|
|
94
|
+
2. Local `INSTRUCTION.md`
|
|
95
|
+
3. Local `README.md` and target files
|
|
96
|
+
|
|
97
|
+
## Boundary
|
|
98
|
+
- Root rules win on conflict
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### 3.5 Recommendation for First-Level Directories (Project Root Children)
|
|
102
|
+
|
|
103
|
+
- First-level directories are direct children of the project root, for example: `🔗 Connections/`, `🔄 Workflows/`, `👤 Profile/`, `📚 Resources/`.
|
|
104
|
+
- It is recommended that these first-level directories provide a lightweight `INSTRUCTION.md` by default.
|
|
105
|
+
- A lightweight version should include at least:
|
|
106
|
+
- Directory goal
|
|
107
|
+
- Local rules (2-5 items)
|
|
108
|
+
- Execution order (root rules -> local rules -> README/target files)
|
|
109
|
+
- Conflict fallback statement (root rules win)
|
|
110
|
+
- If a first-level directory truly has no stable rules, you may skip it temporarily; once repeated constraints appear, add it immediately.
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## 4. Filesystem Rules
|
|
115
|
+
|
|
116
|
+
### 4.1 File Types
|
|
117
|
+
|
|
118
|
+
- Documents: `.md`
|
|
119
|
+
- Data: `.csv`
|
|
120
|
+
- Config: `.json`
|
|
121
|
+
|
|
122
|
+
### 4.2 Naming
|
|
123
|
+
|
|
124
|
+
- Content files: optional `emoji + name`
|
|
125
|
+
- Directories: follow `languagePreference.folderNamingLanguage`; zh templates default to Chinese naming, en templates default to English naming.
|
|
126
|
+
- System files: `README.md`, `INSTRUCTION.md`, `TODO.md`, `CHANGELOG.md`, `CONFIG.json`, `CONFIG.md`
|
|
127
|
+
|
|
128
|
+
### 4.3 Read-Before-Write
|
|
129
|
+
|
|
130
|
+
- **MUST** read target file before writing
|
|
131
|
+
- **SHOULD** verify CSV header before append
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## 5. Sync and Change Rules
|
|
136
|
+
|
|
137
|
+
### 5.1 Must Sync
|
|
138
|
+
|
|
139
|
+
- Add/delete/rename first-level directory: update root `README.md`
|
|
140
|
+
- Delete/rename files: update all references
|
|
141
|
+
|
|
142
|
+
### 5.2 Should Sync
|
|
143
|
+
|
|
144
|
+
- Add new files: update that directory README tree
|
|
145
|
+
- CSV row append: no README sync required
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## 6. Safety Boundaries
|
|
150
|
+
|
|
151
|
+
- **MUST** not delete files unless user explicitly requests
|
|
152
|
+
- **MUST** not store secrets (keys, tokens, passwords)
|
|
153
|
+
- Confirm before bulk delete or structural reorganization
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## 7. Tracking
|
|
158
|
+
|
|
159
|
+
- `TODO.md`: pending tasks
|
|
160
|
+
- `CHANGELOG.md`: completed items (reverse chronological)
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## 8. Example Data Isolation (Naming Convention)
|
|
165
|
+
|
|
166
|
+
- Example files/directories must use `_example` or `_examples` in naming.
|
|
167
|
+
- Do not use `.example` or `.examples` to avoid hidden-file semantic confusion.
|
|
168
|
+
- Any content containing `_example` or `_examples` is example-only, not user production data.
|
|
169
|
+
- Example content may demonstrate structure/style, but must not be treated as real facts for execution.
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## 9. CONFIG Read Protocol
|
|
174
|
+
|
|
175
|
+
- `CONFIG.json` and `CONFIG.md` must be read together.
|
|
176
|
+
- They are complementary and have no priority relationship.
|
|
177
|
+
- `CONFIG.json` provides structured config values; `CONFIG.md` provides semantic explanation and intent.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# My Mind
|
|
2
|
+
|
|
3
|
+
Root entry of your personal knowledge system. Agents should read this index before execution.
|
|
4
|
+
|
|
5
|
+
## 📁 Structure
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
my-mind/
|
|
9
|
+
├── INSTRUCTION.md
|
|
10
|
+
├── README.md
|
|
11
|
+
├── CONFIG.json
|
|
12
|
+
├── CONFIG.md
|
|
13
|
+
├── TODO.md
|
|
14
|
+
├── CHANGELOG.md
|
|
15
|
+
├── 👤 Profile/
|
|
16
|
+
├── 📝 Notes/
|
|
17
|
+
├── 🔗 Connections/
|
|
18
|
+
├── 🔄 Workflows/
|
|
19
|
+
├── 📚 Resources/
|
|
20
|
+
└── 🚀 Projects/
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 💡 Usage
|
|
24
|
+
|
|
25
|
+
- Bootstrap read order: `INSTRUCTION.md` -> `README.md` -> `CONFIG.json` + `CONFIG.md`
|
|
26
|
+
- Capture first in `📝 Notes/`, then move stable content to domain folders
|
|
27
|
+
- Directories that need regular updates: `👤 Profile/`, `🔗 Connections/`, `🚀 Projects/`
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.1",
|
|
3
|
+
"locale": "en",
|
|
4
|
+
"languagePreference": {
|
|
5
|
+
"preferredLanguage": "en",
|
|
6
|
+
"supportedLanguages": [
|
|
7
|
+
{
|
|
8
|
+
"value": "zh",
|
|
9
|
+
"label": "Chinese"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"value": "en",
|
|
13
|
+
"label": "English"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"folderNamingLanguage": "en",
|
|
17
|
+
"contentWritingLanguage": "en",
|
|
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 and CONFIG.md must be read together",
|
|
41
|
+
"They are complementary and have no priority relationship"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"uiSchema": {
|
|
45
|
+
"version": "1.0",
|
|
46
|
+
"sections": [
|
|
47
|
+
{
|
|
48
|
+
"id": "filename",
|
|
49
|
+
"title": "Filename",
|
|
50
|
+
"description": "Controls naming behavior for generated files",
|
|
51
|
+
"fields": [
|
|
52
|
+
"filename.emojiPrefixDefault",
|
|
53
|
+
"filename.allowEmojiPrefix",
|
|
54
|
+
"filename.exampleSuffixSingle",
|
|
55
|
+
"filename.exampleSuffixCollection"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "structure",
|
|
60
|
+
"title": "Structure",
|
|
61
|
+
"description": "Controls directory constraints and locale sync",
|
|
62
|
+
"fields": [
|
|
63
|
+
"structure.requireFirstLevelReadme",
|
|
64
|
+
"structure.recommendFirstLevelInstruction"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "document_title",
|
|
69
|
+
"title": "Title Generation",
|
|
70
|
+
"description": "Controls default generation behavior for document titles",
|
|
71
|
+
"fields": [
|
|
72
|
+
"document.title.emojiEnabled",
|
|
73
|
+
"document.title.defaultHeadingLevel"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "language_preference",
|
|
78
|
+
"title": "Language Preference",
|
|
79
|
+
"description": "Controls language used for folder naming and generated content writing",
|
|
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": "Default Emoji Prefix",
|
|
94
|
+
"description": "Whether newly generated filenames should default to emoji prefix"
|
|
95
|
+
},
|
|
96
|
+
"filename.allowEmojiPrefix": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"control": "switch",
|
|
99
|
+
"label": "Allow Emoji Prefix",
|
|
100
|
+
"description": "Whether filenames are allowed to include emoji prefix"
|
|
101
|
+
},
|
|
102
|
+
"filename.exampleSuffixSingle": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"control": "text",
|
|
105
|
+
"label": "Single Example Suffix",
|
|
106
|
+
"description": "Filename suffix for single example files, default _example"
|
|
107
|
+
},
|
|
108
|
+
"filename.exampleSuffixCollection": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"control": "text",
|
|
111
|
+
"label": "Example Collection Suffix",
|
|
112
|
+
"description": "Directory suffix for example collections, default _examples"
|
|
113
|
+
},
|
|
114
|
+
"structure.requireFirstLevelReadme": {
|
|
115
|
+
"type": "boolean",
|
|
116
|
+
"control": "switch",
|
|
117
|
+
"label": "Require First-Level README",
|
|
118
|
+
"description": "Each first-level directory under root must include README.md"
|
|
119
|
+
},
|
|
120
|
+
"structure.recommendFirstLevelInstruction": {
|
|
121
|
+
"type": "boolean",
|
|
122
|
+
"control": "switch",
|
|
123
|
+
"label": "Recommend First-Level INSTRUCTION",
|
|
124
|
+
"description": "Whether first-level directories are recommended to include local INSTRUCTION.md"
|
|
125
|
+
},
|
|
126
|
+
"document.title.emojiEnabled": {
|
|
127
|
+
"type": "boolean",
|
|
128
|
+
"control": "switch",
|
|
129
|
+
"label": "Emoji in Title",
|
|
130
|
+
"description": "Whether generated titles allow emoji by default"
|
|
131
|
+
},
|
|
132
|
+
"document.title.defaultHeadingLevel": {
|
|
133
|
+
"type": "integer",
|
|
134
|
+
"control": "number",
|
|
135
|
+
"label": "Default Heading Level",
|
|
136
|
+
"description": "Default Markdown heading level for generated titles",
|
|
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": "Chinese"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"value": "en",
|
|
152
|
+
"label": "English"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"label": "Preferred Language",
|
|
156
|
+
"description": "Global language preference for default generation strategy"
|
|
157
|
+
},
|
|
158
|
+
"languagePreference.folderNamingLanguage": {
|
|
159
|
+
"type": "enum",
|
|
160
|
+
"control": "select",
|
|
161
|
+
"options": [
|
|
162
|
+
{
|
|
163
|
+
"value": "zh",
|
|
164
|
+
"label": "Chinese"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"value": "en",
|
|
168
|
+
"label": "English"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"label": "Folder/Filename Language",
|
|
172
|
+
"description": "Controls language for generated folder and filename naming"
|
|
173
|
+
},
|
|
174
|
+
"languagePreference.contentWritingLanguage": {
|
|
175
|
+
"type": "enum",
|
|
176
|
+
"control": "select",
|
|
177
|
+
"options": [
|
|
178
|
+
{
|
|
179
|
+
"value": "zh",
|
|
180
|
+
"label": "Chinese"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"value": "en",
|
|
184
|
+
"label": "English"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"label": "Content Writing Language",
|
|
188
|
+
"description": "Controls language used for generated document content"
|
|
189
|
+
},
|
|
190
|
+
"languagePreference.enforceLocalizedNaming": {
|
|
191
|
+
"type": "boolean",
|
|
192
|
+
"control": "switch",
|
|
193
|
+
"label": "Enforce Localized Naming",
|
|
194
|
+
"description": "When enabled, zh template requires Chinese names and en template requires English names"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# CONFIG Guide
|
|
2
|
+
|
|
3
|
+
This file explains template config in human-readable form.
|
|
4
|
+
|
|
5
|
+
## Scope
|
|
6
|
+
|
|
7
|
+
- Locale scope: `templates/en/`.
|
|
8
|
+
- Related machine-readable file: `templates/en/CONFIG.json`.
|
|
9
|
+
|
|
10
|
+
## Read Rule
|
|
11
|
+
|
|
12
|
+
- `CONFIG.json` and `CONFIG.md` must be read together.
|
|
13
|
+
- They are complementary and have no priority relationship.
|
|
14
|
+
- JSON provides structured values; MD provides explanatory intent.
|
|
15
|
+
|
|
16
|
+
## Key Settings
|
|
17
|
+
|
|
18
|
+
### `languagePreference`
|
|
19
|
+
|
|
20
|
+
- `preferredLanguage`: global language preference
|
|
21
|
+
- `supportedLanguages`: selectable language options
|
|
22
|
+
- `folderNamingLanguage`: language used for folder/filename generation
|
|
23
|
+
- `contentWritingLanguage`: language used for generated writing content
|
|
24
|
+
- `enforceLocalizedNaming`: whether localized naming is enforced (en template defaults to English naming)
|
|
25
|
+
|
|
26
|
+
### `filename`
|
|
27
|
+
|
|
28
|
+
- `emojiPrefixDefault`: whether new filenames default to emoji prefix
|
|
29
|
+
- `allowEmojiPrefix`: whether emoji prefix is allowed in filenames
|
|
30
|
+
- `exampleSuffixSingle`: suffix for single example files (default `_example`)
|
|
31
|
+
- `exampleSuffixCollection`: suffix for example collection folders (default `_examples`)
|
|
32
|
+
|
|
33
|
+
### `structure`
|
|
34
|
+
|
|
35
|
+
- `requireFirstLevelReadme`: whether first-level directories must include `README.md`
|
|
36
|
+
- `recommendFirstLevelInstruction`: whether first-level directories are recommended to include `INSTRUCTION.md`
|
|
37
|
+
|
|
38
|
+
### `document.title`
|
|
39
|
+
|
|
40
|
+
- `emojiEnabled`: whether generated titles allow emoji by default
|
|
41
|
+
- `defaultHeadingLevel`: default heading level for generated titles (currently `2`)
|
|
42
|
+
|
|
43
|
+
### `protocol`
|
|
44
|
+
|
|
45
|
+
- `readMode`: config read mode
|
|
46
|
+
- `priorityBetweenConfigAndDoc`: relationship between config values and docs (`none` means no priority)
|
|
47
|
+
- `notes`: protocol notes
|
|
48
|
+
|
|
49
|
+
## Directory Naming and Level Rules (Semantic Layer in CONFIG.md)
|
|
50
|
+
|
|
51
|
+
These rules are directory naming semantics, documented in `CONFIG.md`:
|
|
52
|
+
|
|
53
|
+
- First-level directories (direct children of project root) default to `emoji + name`.
|
|
54
|
+
- Second-level and deeper directories default to no emoji.
|
|
55
|
+
- Directory naming language is controlled by `languagePreference.folderNamingLanguage`.
|
|
56
|
+
- Whether content filenames use emoji prefix is controlled by `filename.*`.
|
|
57
|
+
|
|
58
|
+
Current template convention (en):
|
|
59
|
+
|
|
60
|
+
- First-level examples: `👤 Profile/`, `📝 Notes/`, `🔗 Connections/`, `🔄 Workflows/`, `📚 Resources/`, `🚀 Projects/`
|
|
61
|
+
- Second-level examples: `Family/`, `Friends/`, `Classmates/`, `Colleagues/` (no emoji)
|
|
62
|
+
|
|
63
|
+
When naming policy changes:
|
|
64
|
+
|
|
65
|
+
1. Update semantic rules in `CONFIG.md` first.
|
|
66
|
+
2. Then sync `README.md`, `INSTRUCTION.md`, and actual directory structure.
|
|
67
|
+
|
|
68
|
+
## Change Rules
|
|
69
|
+
|
|
70
|
+
1. Update `templates/en/CONFIG.json` and `templates/zh/CONFIG.json` together when keys change.
|
|
71
|
+
2. Keep semantic parity across both locales.
|
|
72
|
+
3. Update both locale `CONFIG.md` files when keys are added/removed/renamed.
|
|
73
|
+
4. Do not document defaults here that conflict with JSON values.
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# MindOS Instruction Set
|
|
2
|
+
|
|
3
|
+
This file defines the base operating rules for collaboration between humans and agents inside the knowledge base.
|
|
4
|
+
|
|
5
|
+
> This file contains stable rules. Variable content (structure details, preferences, SOP specifics) should live in dedicated files.
|
|
6
|
+
>
|
|
7
|
+
> Terms: `MUST` = mandatory, `SHOULD` = strongly recommended.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 1. Bootstrap Order
|
|
12
|
+
|
|
13
|
+
When entering a knowledge base, load context in this order:
|
|
14
|
+
|
|
15
|
+
1. Read root `INSTRUCTION.md` (this file)
|
|
16
|
+
2. Read root `README.md` (index and navigation)
|
|
17
|
+
3. Read `CONFIG.json` and `CONFIG.md` together (config values + semantic explanation)
|
|
18
|
+
4. Route to the target directory
|
|
19
|
+
5. If target directory has `INSTRUCTION.md`, read it first
|
|
20
|
+
6. Then read target `README.md` and target files
|
|
21
|
+
7. Execute
|
|
22
|
+
|
|
23
|
+
Step 1 is **MUST**. Steps 2-6 are **SHOULD**, and must not be skipped for write/delete/rename operations.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 2. File Roles and Priority
|
|
28
|
+
|
|
29
|
+
### 2.1 File Roles
|
|
30
|
+
|
|
31
|
+
| File | Role |
|
|
32
|
+
|------|------|
|
|
33
|
+
| Root `INSTRUCTION.md` | Global immutable rules and precedence |
|
|
34
|
+
| Subdirectory `INSTRUCTION.md` | Local execution rules for that directory |
|
|
35
|
+
| `README.md` | Navigation and usage guidance |
|
|
36
|
+
| Regular content files | Business content (SOPs, profiles, records) |
|
|
37
|
+
|
|
38
|
+
### 2.2 Priority (Strict)
|
|
39
|
+
|
|
40
|
+
`root INSTRUCTION.md` > `subdirectory INSTRUCTION.md` > `README.md` > `regular content files`
|
|
41
|
+
|
|
42
|
+
- Resolve conflicts using this exact order.
|
|
43
|
+
- `README.md` cannot override any `INSTRUCTION.md` rule.
|
|
44
|
+
|
|
45
|
+
### 2.3 README.md Standard
|
|
46
|
+
|
|
47
|
+
Each first-level directory (such as `👤 Profile/`, `🔗 Connections/`, `🔄 Workflows/`) should include a `README.md` with:
|
|
48
|
+
|
|
49
|
+
1. **One-line purpose** (directory responsibility)
|
|
50
|
+
2. **📁 Structure** (file tree + short notes)
|
|
51
|
+
3. **💡 Usage** (what each file/subdirectory is for)
|
|
52
|
+
|
|
53
|
+
Rules like update policy, execution boundaries, and precedence belong to `INSTRUCTION.md`, not to README standards.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 3. How to Create Subdirectory INSTRUCTION.md
|
|
58
|
+
|
|
59
|
+
Create it only when local rules are reusable and meaningful. Avoid creating them by default.
|
|
60
|
+
|
|
61
|
+
### 3.1 Good Cases
|
|
62
|
+
|
|
63
|
+
- Multiple files under one directory share execution constraints
|
|
64
|
+
- The directory has its own schema or safety boundary
|
|
65
|
+
- The directory is high-frequency and mistakes are costly
|
|
66
|
+
|
|
67
|
+
### 3.2 Avoid Cases
|
|
68
|
+
|
|
69
|
+
- Pure structural description (put in README)
|
|
70
|
+
- One-off notes with no reuse
|
|
71
|
+
- Highly unstable rules with no fixed boundary
|
|
72
|
+
|
|
73
|
+
### 3.3 Standard Steps
|
|
74
|
+
|
|
75
|
+
1. Create `INSTRUCTION.md` in the target directory
|
|
76
|
+
2. Write only local rules; do not duplicate root rules
|
|
77
|
+
3. Explicitly state: if conflict exists, root rules win
|
|
78
|
+
4. Add one line in that directory README usage section: read local `INSTRUCTION.md` before execution
|
|
79
|
+
|
|
80
|
+
### 3.4 Minimal Template
|
|
81
|
+
|
|
82
|
+
```markdown
|
|
83
|
+
# <Domain> Instruction Set
|
|
84
|
+
|
|
85
|
+
## Goal
|
|
86
|
+
- Local goal for this directory
|
|
87
|
+
|
|
88
|
+
## Local Rules
|
|
89
|
+
- Rule 1
|
|
90
|
+
- Rule 2
|
|
91
|
+
|
|
92
|
+
## Execution Order
|
|
93
|
+
1. Root `INSTRUCTION.md`
|
|
94
|
+
2. Local `INSTRUCTION.md`
|
|
95
|
+
3. Local `README.md` and target files
|
|
96
|
+
|
|
97
|
+
## Boundary
|
|
98
|
+
- Root rules win on conflict
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### 3.5 Recommendation for First-Level Directories (Project Root Children)
|
|
102
|
+
|
|
103
|
+
- First-level directories are direct children of the project root, for example: `🔗 Connections/`, `🔄 Workflows/`, `👤 Profile/`, `📚 Resources/`.
|
|
104
|
+
- It is recommended that these first-level directories provide a lightweight `INSTRUCTION.md` by default.
|
|
105
|
+
- A lightweight version should include at least:
|
|
106
|
+
- Directory goal
|
|
107
|
+
- Local rules (2-5 items)
|
|
108
|
+
- Execution order (root rules -> local rules -> README/target files)
|
|
109
|
+
- Conflict fallback statement (root rules win)
|
|
110
|
+
- If a first-level directory truly has no stable rules, you may skip it temporarily; once repeated constraints appear, add it immediately.
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## 4. Filesystem Rules
|
|
115
|
+
|
|
116
|
+
### 4.1 File Types
|
|
117
|
+
|
|
118
|
+
- Documents: `.md`
|
|
119
|
+
- Data: `.csv`
|
|
120
|
+
- Config: `.json`
|
|
121
|
+
|
|
122
|
+
### 4.2 Naming
|
|
123
|
+
|
|
124
|
+
- Content files: optional `emoji + name`
|
|
125
|
+
- Directories: follow `languagePreference.folderNamingLanguage`; zh templates default to Chinese naming, en templates default to English naming.
|
|
126
|
+
- System files: `README.md`, `INSTRUCTION.md`, `TODO.md`, `CHANGELOG.md`, `CONFIG.json`, `CONFIG.md`
|
|
127
|
+
|
|
128
|
+
### 4.3 Read-Before-Write
|
|
129
|
+
|
|
130
|
+
- **MUST** read target file before writing
|
|
131
|
+
- **SHOULD** verify CSV header before append
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## 5. Sync and Change Rules
|
|
136
|
+
|
|
137
|
+
### 5.1 Must Sync
|
|
138
|
+
|
|
139
|
+
- Add/delete/rename first-level directory: update root `README.md`
|
|
140
|
+
- Delete/rename files: update all references
|
|
141
|
+
|
|
142
|
+
### 5.2 Should Sync
|
|
143
|
+
|
|
144
|
+
- Add new files: update that directory README tree
|
|
145
|
+
- CSV row append: no README sync required
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## 6. Safety Boundaries
|
|
150
|
+
|
|
151
|
+
- **MUST** not delete files unless user explicitly requests
|
|
152
|
+
- **MUST** not store secrets (keys, tokens, passwords)
|
|
153
|
+
- Confirm before bulk delete or structural reorganization
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## 7. Tracking
|
|
158
|
+
|
|
159
|
+
- `TODO.md`: pending tasks
|
|
160
|
+
- `CHANGELOG.md`: completed items (reverse chronological)
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## 8. Example Data Isolation (Naming Convention)
|
|
165
|
+
|
|
166
|
+
- Example files/directories must use `_example` or `_examples` in naming.
|
|
167
|
+
- Do not use `.example` or `.examples` to avoid hidden-file semantic confusion.
|
|
168
|
+
- Any content containing `_example` or `_examples` is example-only, not user production data.
|
|
169
|
+
- Example content may demonstrate structure/style, but must not be treated as real facts for execution.
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## 9. CONFIG Read Protocol
|
|
174
|
+
|
|
175
|
+
- `CONFIG.json` and `CONFIG.md` must be read together.
|
|
176
|
+
- They are complementary and have no priority relationship.
|
|
177
|
+
- `CONFIG.json` provides structured config values; `CONFIG.md` provides semantic explanation and intent.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# My Mind
|
|
2
|
+
|
|
3
|
+
Root entry of your personal knowledge system. Agents should read this index before execution.
|
|
4
|
+
|
|
5
|
+
## 📁 Structure
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
my-mind/
|
|
9
|
+
├── INSTRUCTION.md
|
|
10
|
+
├── README.md
|
|
11
|
+
├── CONFIG.json
|
|
12
|
+
├── CONFIG.md
|
|
13
|
+
├── TODO.md
|
|
14
|
+
├── CHANGELOG.md
|
|
15
|
+
├── 👤 Profile/
|
|
16
|
+
├── 📝 Notes/
|
|
17
|
+
├── 🔗 Connections/
|
|
18
|
+
├── 🔄 Workflows/
|
|
19
|
+
├── 📚 Resources/
|
|
20
|
+
└── 🚀 Projects/
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 💡 Usage
|
|
24
|
+
|
|
25
|
+
- Bootstrap read order: `INSTRUCTION.md` -> `README.md` -> `CONFIG.json` + `CONFIG.md`
|
|
26
|
+
- Capture first in `📝 Notes/`, then move stable content to domain folders
|
|
27
|
+
- Directories that need regular updates: `👤 Profile/`, `🔗 Connections/`, `🚀 Projects/`
|