Logo Workspace SOP

Workspace SOP

Cộng đồng
wentorai
Workspace SOP

Workspace file management, git versioning, directory conventions, and CLI execution safety rules for the Research-Claw workspace.

Tổng quan

Nhà phát hànhwentorai
Kho mãResearch-Claw
Tên kỹ năngWorkspace SOP
Sao
859
Bản fork
117
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được wentorai công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Workspace SOP trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/wentorai/Research-Claw/tree/main/skills/workspace-sop
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wentorai/Research-Claw.git /tmp/Research-Claw
mkdir -p .claude/skills
cp -r /tmp/Research-Claw/skills/workspace-sop .claude/skills/wentorai-workspace-sop
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Workspace SOP trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Workspace SOP ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Workspace SOP với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Workspace Operations SOP

Architecture

The workspace is a local Git repository, auto-initialized on first use. Every workspace_save creates a Git commit (debounced 5s for rapid batches). Files over 10 MB are auto-added to .gitignore. The repo is local-only — it never pushes to any remote.

The dashboard shows file tree, recent commits, and file previews. It does NOT expose rollback — you are the user's interface for rollback and diff.

Directory Conventions

Two top-level user directories (system .ResearchClaw/ is hidden from the dashboard):

sources/       ← user uploads, imported PDFs, datasets, references
sources/chat/  ← raw files the user dropped into the chat composer
outputs/       ← agent-generated drafts, figures, exports, reports
.ResearchClaw/ ← system prompt files (hidden)

Optional subdirs (created on demand, not required): sources/papers/, sources/data/, sources/references/ outputs/drafts/, outputs/figures/, outputs/exports/, outputs/reports/

sources/ = user input. outputs/ = agent-generated files. sources/chat/ holds timestamped raw drops from the chat box (images land in sources/chat/images/) — when the user asks you to organize files, file them from here into sources/papers/ etc.

Commit Message Prefixes

PrefixUsage
Add:New file created
Update:Existing file modified
Upload:User-uploaded file saved
Restore:File restored from history
Delete:File removed
Export:Binary format converted from text source

Tool Chain (11 tools)

ToolPurpose
workspace_saveWrite text file + auto-commit → Dashboard projects the file fact
workspace_readRead file contents
workspace_listList files (glob filter + git status)
workspace_diffShow changes (no range = uncommitted vs HEAD)
workspace_historyList commits for a file or path
workspace_restoreCheckout historical version + commit as Restore:
workspace_moveRename/move file + commit
workspace_exportConvert text → binary format (md→docx/pdf, csv→xlsx)
workspace_deleteDelete a file + auto-commit (requires confirm=true) → recoverable via workspace_restore
workspace_appendAppend content to an existing file (or create) → automatic file projection
workspace_downloadDownload URL → save binary to workspace → automatic file projection

Version Control Operations

  • Undo / rollback: workspace_history → present commits → user selects → workspace_restore → report the restored path in normal text.
  • Diff: workspace_diff (default: uncommitted vs HEAD).
  • Proactive: Mention git history after overwrites. Note workspace_restore on delete.
  • Delete: workspace_delete (requires confirm=true). Always mention workspace_restore as recovery option.

Write Discipline

  • Pre-check mandatory: Before any workspace_save (overwrite), you MUST call workspace_read or workspace_list to verify existence and content to prevent accidental data loss.
  • Append vs. Overwrite: When the intent is to "add to" a file, read the existing content first and concatenate. Never overwrite a multi-section file with only the new snippet.
  • Prefer append: When adding content to an existing file, use workspace_append instead of read + concatenate + save. It prevents accidental overwrites and uses fewer tokens.
  • Root-only Scope: All workspace_* tools operate strictly on relative paths within the workspace root.
  • Out-of-bound (OOB) Rule: For paths outside the workspace, workspace_save will fail or lose versioning. Do NOT attempt to use workspace tools for system-level files; use standard CLI (with approval_card) if necessary, but note these have no Git/History support.

Binary Format Exports

workspace_save writes UTF-8 text only. For Word/Excel/PDF output:

  1. Save content as Markdown/CSV: workspace_save("outputs/drafts/paper.md", content)
  2. Convert: workspace_export({ source: "outputs/drafts/paper.md", format: "docx" })
Source→ TargetEngine
.md .txt.docxpandoc
.md .txt.pdfpandoc + xelatex (CJK supported)
.csv .json.xlsxPython pandas + openpyxl

Output defaults to outputs/exports/{name}.{format}. Override with output param.

NEVER call workspace_save with a binary extension (.docx, .xlsx, .pdf, .pptx, etc.) — the tool will reject the write and guide you to workspace_export.

Native Install Dependencies

Docker images ship with all dependencies pre-installed. For native (non-Docker) installs, workspace_export requires external tools. If conversion fails with ENOENT or command not found, guide the user through installation:

macOS (Homebrew):

bash
# Install Homebrew first if missing:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Then install conversion dependencies:
brew install pandoc            # md → docx
brew install --cask basictex   # md → pdf (xelatex engine)
pip3 install openpyxl          # csv → xlsx (pandas is usually present)

Windows: Download pandoc installer from https://pandoc.org/installing.html, install MiKTeX for PDF support.

Note: .pptx generation is NOT supported by workspace_export. PPT creation goes through the dedicated PPT extension (ExtensionsPanel → PPT Master).

Download & Import

Use workspace_download to save PDFs, images, and other binary files from URLs:

workspace_download({ url: "https://arxiv.org/pdf/2301.00001", path: "sources/papers/paper.pdf" })

After downloading a PDF to sources/papers/, offer library_add_paper to index it.

CLI Execution Safety

Safe without approval (no approval_card needed):

wc, du, grep, find, pandoc, pdftotext, python3, xelatex, jq

Requires approval_card:

pip install, brew install, curl, wget, any operation outside workspace.

Cross-Module Triggers

  • PDF saved/downloaded to sources/papers/ → offer library_add_paper
  • Paper added to library → suggest workspace_save BibTeX to sources/references/refs.bib via workspace_append
  • Code file created → suggest task_create to track the work
  • Analysis output generated → report its relative path + task_complete if linked

Related Research-Plugins Skills

  • tools/document/ — PDF parsing, GROBID, format conversion, markdown workflows
  • tools/diagram/ — Mermaid, PlantUML, scientific illustrations for workspace outputs

Câu hỏi thường gặp

Kỹ năng AI Workspace SOP làm được gì?

Workspace file management, git versioning, directory conventions, and CLI execution safety rules for the Research-Claw workspace.

Vì sao nên dùng Workspace SOP trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Workspace SOP là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Workspace SOP trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/wentorai/Research-Claw/tree/main/skills/workspace-sop. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Workspace SOP?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Workspace SOP với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Workspace SOP với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Workspace SOP có miễn phí không?

Kỹ năng này được wentorai phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇