操作 MindOS 知识库:更新笔记, 搜索知识库, 整理文件, 执行SOP/工作流, 复盘, 追加CSV, 跨Agent交接, 路由非结构化输入到对应文件, 提炼经验, 同步关联文档. update notes, search knowledge base, organize, SOP, retrospective, CSV, handoff, route notes, distill experience. 仅 mindRoot 知识库内任务。不用于:改代码仓库/项目文档/KB 外路径。 核心概念:空间、指令(INSTRUCTION.md)、技能(SKILL.md);笔记可承载指令与技能。 --- # MindOS 技能 <!-- version: 3.0.0 — CLI 优先,MCP 可选 --> ## CLI 命令 使用 `mindos file <子命令>` 完成所有知识库操作。加 `--json` 获取结构化输出。 | 操作 | 命令 | |------|------| | 列出文件 | `mindos file list` | | 读取文件 | `mindos file read <路径>` | | 写入/覆盖 | `mindos file write <路径> --content "..."` | | 创建新文件 | `mindos file create <路径> --content "..."` | | 追加内容 | `mindos file append <路径> --content "..."` | | 编辑段落 | `mindos file edit-section <路径> -H "## 标题" --content "..."` | | 标题后插入 | `mindos file insert-heading <路径> -H "## 标题" --content "..."` | | 追加 CSV 行 | `mindos file append-csv <路径> --row "列1,列2,列3"` | | 删除文件 | `mindos file delete <路径>` | | 重命名/移动 | `mindos file rename <旧> <新>` | | 搜索 | `mindos search "关键词"` | | 反向链接 | `mindos file backlinks <路径>` | | 最近文件 | `mindos file recent --limit 10` | | Git 历史 | `mindos file history <路径>` | | 列出空间 | `mindos space list` | | 创建空间 | `mindos space create "名称"` | > **MCP 用户:** 如果只有 MCP 工具(`mindos_*`),直接使用——工具的 schema 已自带说明。有 CLI 时优先用 CLI(更省 token)。 ### CLI 安装 ```bash npm install -g @geminilight/mindos # 远程模式:mindos config set url http://<IP>:<端口> && mindos config set authToken <token> ``` --- ## 规则 1. **先了解结构** — 列出知识库目录树,再搜索或写入。 2. **默认只读。** 只有用户明确要求保存、记录、整理、编辑时才写入。 3. **规则优先级**(从高到低):用户当前指令 → `.mindos/user-preferences.md` → 最近目录 `INSTRUCTION.md` → 根 `INSTRUCTION.md` → 本技能默认。 4. **多文件编辑先出方案。** 展示完整变更列表,获批后再执行。 5. 创建/删除/移动/重命名后 → **自动同步相关 README**。 6. **写入前先读取。** 不基于假设写入。 --- ## 禁止事项(血泪教训) - **禁止写入知识库根目录**(除非明确要求)。根目录仅放治理文件,新内容放最合适的子目录。 - **禁止假设目录名。** 从实际目录树推断——知识库可能用中文名或扁平结构。 - **禁止用整文件覆盖做小修改。** 用 `mindos file edit-section` 或 `mindos file insert-heading` 做精准修改,整文件覆盖破坏 git diff。 - **禁止单关键词搜索。** 至少 2-4 个并行搜索(同义词、缩写、中英文变体)。 - **禁止未确认就修改 `INSTRUCTION.md` 或 `README.md`。**
Navigate codebases efficiently using structural indexes. Use when finding symbol definitions (classes, functions, methods), exploring file structure, or locating code by name. Reduces token consumption by 60-80% through targeted line-range reads instead of full file scans.
Create a lean-package-validator compatible .gitattributes file in Laravel Boost projects; use when generating missing export-ignore entries or scaffolding a new .gitattributes file.
- 📁 .github/
- 📁 ai-context/
- 📁 assets/
- 📄 .dockerignore
- 📄 .geo-optimizer.example.yml
- 📄 .gitignore
| Platform | File | How to use |
- 📁 references/
- 📁 scripts/
- 📄 SKILL.md
Generate accurate, readable D2 block diagrams for software, research, and system explanations from a text brief. Normalize components and edges, write a canonical .d2 source file, render compact sketch-style SVG and optional PNG artifacts by default, support optional LaTeX equation blocks when the diagram genuinely needs them, keep arrows unlabeled unless a label adds concrete meaning, and emit Telegram file directives when needed.
Use this when you are working on file operations like reading, writing, scanning, or deleting files. It summarizes the preferred file APIs and patterns used in this repo. It also notes when to use filesystem helpers for directories.
Stub file for missing skill definition.
Activate this skill when the user wants to create a project context file for Cowork. Triggers: 'создай контекст проекта', 'новый проект контекст', 'context-builder', 'сформируй контекстный файл', 'быстрый контекст'. Generates a ready-to-download project-context.md file for Claude Cowork based on user's answers.
- 📁 scripts/
- 📄 LICENSE.txt
- 📄 SKILL.md
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the xlsx in my downloads\") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.
Use Serena-backed semantic code navigation and editing when working in existing software projects with non-trivial structure, especially multi-file repos where symbol-aware lookup and targeted edits are more reliable and token-efficient than brute-force file reading. Use when the environment exposes Serena tools such as project activation, symbol lookup, reference search, semantic search, file reads, directory listing, file finding, or symbol-scoped edits.