원클릭으로
workspace-sop
Workspace file management, git versioning, directory conventions, and CLI execution safety rules for the Research-Claw workspace.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Workspace file management, git versioning, directory conventions, and CLI execution safety rules for the Research-Claw workspace.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Main orchestration workflow for systematic literature research - search, evaluate, traverse, synthesize via the rp_* tools pipeline (Scopus + OpenAlex)
Collaboratively build and refine paper screening rubrics through brainstorming, test-driven development, and iterative feedback
Safely remove intermediate files from completed research sessions while preserving important data
Perform advanced search on CNKI with field filters like author, title, journal, date range, source category (SCI/EI/CSSCI/北大核心). Use when user needs precise filtered search beyond simple keywords.
Download a paper PDF/CAJ from CNKI. Requires user to be logged in. Use when user wants to download a specific paper.
Export paper from CNKI and push to Zotero, or save as RIS file. Use when user wants to save a paper to Zotero or export citation data.
| name | Workspace SOP |
| description | Workspace file management, git versioning, directory conventions, and CLI execution safety rules for the Research-Claw workspace. |
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.
Two top-level user directories (system .ResearchClaw/ is hidden from the dashboard):
sources/ ← user uploads, imported PDFs, datasets, references
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.
| Prefix | Usage |
|---|---|
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 | Purpose |
|---|---|
workspace_save | Write text file + auto-commit → emits file_card |
workspace_read | Read file contents |
workspace_list | List files (glob filter + git status) |
workspace_diff | Show changes (no range = uncommitted vs HEAD) |
workspace_history | List commits for a file or path |
workspace_restore | Checkout historical version + commit as Restore: |
workspace_move | Rename/move file + commit |
workspace_export | Convert text → binary format (md→docx/pdf, csv→xlsx) |
workspace_delete | Delete a file + auto-commit (requires confirm=true) → recoverable via workspace_restore |
workspace_append | Append content to an existing file (or create) → emits file_card |
workspace_download | Download URL → save binary to workspace (PDFs, images) → emits file_card |
workspace_history → present commits → user selects
→ workspace_restore → report with file_card.workspace_diff (default: uncommitted vs HEAD).workspace_restore
on delete.workspace_delete (requires confirm=true). Always mention
workspace_restore as recovery option.workspace_save (overwrite), you MUST call workspace_read or workspace_list to verify existence and content to prevent accidental data loss.workspace_append instead of read + concatenate + save. It prevents accidental overwrites and uses fewer tokens.workspace_* tools operate strictly on relative paths within the workspace root.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.workspace_save writes UTF-8 text only. For Word/Excel/PDF output:
workspace_save("outputs/drafts/paper.md", content)workspace_export({ source: "outputs/drafts/paper.md", format: "docx" })| Source | → Target | Engine |
|---|---|---|
.md .txt | .docx | pandoc |
.md .txt | .pdf | pandoc + xelatex (CJK supported) |
.csv .json | .xlsx | Python 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.
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):
# 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).
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.
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.
sources/papers/ → offer library_add_paperworkspace_save BibTeX to sources/references/refs.bib via workspace_appendtask_create to track the workfile_card + task_complete if linkedtools/document/ — PDF parsing, GROBID, format conversion, markdown workflowstools/diagram/ — Mermaid, PlantUML, scientific illustrations for workspace outputs