Research Workspace Standard
This skill establishes a unified environment for research data, enabling agents (Researcher, Writer, Reviewer) to collaborate using either a structured physical directory or a "Smart Discovery" virtual map of an existing codebase.
🎯 Triggers
- "khởi tạo thư mục nghiên cứu"
- "setup research workspace"
- "organize my PhD files"
- "đọc cấu trúc codebase để nghiên cứu"
- "map existing docs to research"
🏛 Workspace Modes
Mode 1: Physical (Greenfield)
...
Mode 2: Virtual (Brownfield & Monorepo)
Use this for existing codebases or Monorepos. Create a WORKSPACE.md at the root to map logical research roles.
📦 Monorepo & Submodule Support
If the project uses submodules or a monorepo structure (e.g., Nx, Turborepo), the WORKSPACE.md must explicitly map them:
# Research Workspace Map
- **Core Engine:** `packages/core/`, `.gitmodules:engine-v1`
- **Sub-module Research:** `submodules/research-utils/`
- **Cross-Linkage:** `../neighbor-project/research/notes/` (Relative path to related research)
🔍 Smart Discovery Heuristics
When in an existing codebase, the Agent must:
- Locate Architecture: Search for C4 models, design docs, or
*.gitmodules. - Identify Experiments: Scan for performance logs, benchmark scripts, or
tests/. - Cross-Project Context: If a neighboring directory contains a
WORKSPACE.md, read its State section to establish research continuity.
🔄 Artifact Contracts (I/O)
Regardless of the mode, skills communicate via these core artifacts (mapped in WORKSPACE.md):
sota-matrix.md: Systematic comparison of current works (Output ofsota-survey).rq-statement.md: Formal research questions (Output ofresearch-question).protocol.json: Experimental setup (Output ofresearch-design).results.csv: Raw results (Output ofexperiment-tracking).
⚖️ Decision Hierarchy (Lex Specialis)
...
🔄 Session Evolution Protocol (Living Knowledge)
WORKSPACE.md is not static; it must evolve after every research session. The Agent is responsible for:
- State Updates: Move the "Current Milestone" forward as tasks are completed.
- Insight Logging: Add a
## 🧠 Recent Insightssection toWORKSPACE.mdto capture new findings, rejected hypotheses, or architecture discoveries. - Dependency Mapping: If a new library, submodule, or external dataset is introduced, update the
🗺 Path Mapping. - Closing Ritual: Before ending a session, the Agent MUST propose a diff for
WORKSPACE.mdsummarizing:- What was achieved.
- What new "Knowledge Artifacts" were created.
- What the next logical research step is.
🚀 Initialization Workflow
- Discovery: Scan root for
docs/,research/,tests/, or.gitmodules. - Mapping: Create or update
WORKSPACE.mdwith discovered paths and submodule roles. - Memory Linkage: Instruct sub-agents: "Read WORKSPACE.md for project paths and recent insights, then cross-reference with MEMORY.md for relevant lessons learned, adhering to the Hierarchy of Authority."
- Evolution: Ensure
WORKSPACE.mdis updated with any new knowledge gained during the task execution.