skills/25-HosungYou-Diverga/skills/memory/SKILL.md
Diverga Memory System v7.0 - Context-persistent research support with checkpoint auto-trigger and cross-session continuity. Triggers: memory, remember, context, recall, checkpoint, decision, persist, 기억, 맥락, 세션, 체크포인트
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research diverga-memoryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Human-centered research context persistence with:
English: "my research", "research status", "where was I", "continue research", "what stage"
Korean: "내 연구", "연구 진행", "연구 상태", "어디까지", "지금 단계"
| Command | Description |
|---------|-------------|
| /diverga:memory status | Show project status |
| /diverga:memory context | Display full context |
| /diverga:memory init | Initialize project |
| /diverga:memory decision list | List decisions |
| /diverga:memory archive [STAGE] | Archive stage |
| /diverga:memory migrate | Run migration |
| Command | MCP Tool | Description |
|---------|----------|-------------|
| Read priority | diverga_priority_read() | Read 500-char context summary |
| Write priority | diverga_priority_write(context) | Update context summary |
| Full status | diverga_project_status() | Project state + checkpoints + decisions |
| Check prereqs | diverga_check_prerequisites(agent_id) | Verify agent can proceed |
| Record decision | diverga_mark_checkpoint(cp_id, decision, rationale) | Record and auto-update priority |
Priority context is automatically updated when:
diverga_mark_checkpoint()Project: {name} | Paradigm: {paradigm} | RQ: {question} | ✅/❌ checkpoints | Last: {decision}.research/priority-context.mdWhen context window is compressed:
diverga_priority_read() to recover essential project contextdiverga_checkpoint_status() to see checkpoint statediverga_project_status() for full project detailsWhen researcher asks "내 연구 진행 상황은?" or "What's my research status?", automatically load and display context.
Auto-Detection Keywords:
Response Pattern:
.research/project-state.yamlWhen Task(subagent_type="diverga:*") is called, automatically inject full research context and checkpoint instructions.
Injection Process:
diverga: prefix in subagent_type.research/project-state.yaml.research/checkpoints.yamlContext Injected:
# Automatically included in agent prompt
research_context:
project_name: "[from project-state.yaml]"
current_stage: "[from checkpoints.yaml]"
research_question: "[from project-state.yaml]"
methodology: "[from project-state.yaml]"
decisions: "[from decision-log.yaml, last 10]"
pending_checkpoints: "[from checkpoints.yaml]"
Run /diverga:memory context --verbose for full detailed state.
Available Flags:
--verbose - Show full decision audit trail--archive - Include archived stages--decisions - Show decision log only--checkpoints - Show checkpoint status only--format json|yaml|text - Output format| Level | Icon | Behavior | Example | |-------|------|----------|---------| | REQUIRED | 🔴 | Must complete before proceeding | CP_RESEARCH_DIRECTION | | RECOMMENDED | 🟠 | Strongly suggested | CP_PARADIGM_SELECTION | | OPTIONAL | 🟡 | Can skip with defaults | CP_METHODOLOGY_APPROVAL |
REQUIRED (🔴) Checkpoints:
decision-log.yaml with timestampRECOMMENDED (🟠) Checkpoints:
OPTIONAL (🟡) Checkpoints:
When checkpoint is reached:
# In checkpoints.yaml
- checkpoint_id: CP_RESEARCH_DIRECTION
level: REQUIRED
status: pending
triggered_at: 2025-02-03T10:30:00Z
stage: foundation
# User completes checkpoint
- checkpoint_id: CP_RESEARCH_DIRECTION
level: REQUIRED
status: completed
completed_at: 2025-02-03T10:45:00Z
completed_by: researcher
decision_id: DEV_001
evidence: "Research question: How does AI improve learning outcomes?"
# Moving to next stage
- checkpoint_id: CP_PARADIGM_SELECTION
level: RECOMMENDED
status: pending
triggered_at: 2025-02-03T10:46:00Z
All decisions are:
amends referencedecisions:
- decision_id: DEV_001
checkpoint_id: CP_RESEARCH_DIRECTION
timestamp: 2025-02-03T10:30:00Z
researcher_name: "Dr. Park"
# What was decided
decision_type: "research_question"
selected: "How does AI-assisted instruction affect student engagement in STEM?"
alternatives_considered:
- "How does AI personalization improve learning outcomes?"
- "What are barriers to AI adoption in classrooms?"
# Why this decision
rationale: |
Engagement is measurable and significant to existing literature.
Aligns with team expertise in behavioral psychology.
Scope is feasible within 6-month timeline.
# Context at time of decision
prior_decisions: []
research_constraints:
- timeline: "6 months"
- budget: "$50,000"
- team_size: 3
# Amendment tracking
amends: null # Only non-null for amendments
version: 1
- decision_id: DEV_002
checkpoint_id: CP_PARADIGM_SELECTION
timestamp: 2025-02-03T10:45:00Z
researcher_name: "Dr. Park"
decision_type: "paradigm"
selected: "Quantitative: Meta-analysis"
rationale: "Sufficient RCTs exist. Need synthesis of effect sizes."
prior_decisions: ["DEV_001"]
version: 1
# Amendment example
- decision_id: DEV_002_A1
checkpoint_id: CP_PARADIGM_SELECTION
timestamp: 2025-02-03T14:30:00Z
researcher_name: "Dr. Park"
decision_type: "paradigm_amendment"
selected: "Mixed-methods: Meta-analysis + qualitative synthesis"
rationale: "Expanded to include implementation barriers (qualitative)"
amends: "DEV_002"
version: 2
When researcher changes mind or refines decision:
/diverga:memory decision show DEV_002/diverga:memory decision amend DEV_002 --reason "New data suggests..."DEV_002_A1 with amends: DEV_002version: 2.research/
├── baselines/
│ ├── literature/
│ │ └── key_studies.yaml
│ ├── methodology/
│ │ └── frameworks.yaml
│ └── framework/
│ └── theories.yaml
│
├── changes/
│ ├── current/
│ │ ├── research_question.md
│ │ ├── methodology_plan.md
│ │ └── data_extraction.yaml
│ └── archive/
│ ├── foundation_20250203.yaml
│ ├── design_20250210.yaml
│ └── planning_20250217.yaml
│
├── sessions/
│ ├── 2025_02_03_session_001.yaml
│ ├── 2025_02_03_session_002.yaml
│ └── 2025_02_10_session_001.yaml
│
├── project-state.yaml
├── decision-log.yaml
├── checkpoints.yaml
├── issues.log
└── README.md
project:
name: "AI in STEM Education"
description: "Meta-analysis of AI-assisted instruction effects"
created_at: 2025-02-03T10:00:00Z
updated_at: 2025-02-03T14:30:00Z
research:
question: "How does AI-assisted instruction affect student engagement in STEM?"
paradigm: "Quantitative"
methodology: "Meta-analysis"
timeline:
start_date: 2025-02-03
estimated_completion: 2025-08-03
current_stage: "foundation"
stage_progress: "50%" # % of expected work for this stage
team:
lead: "Dr. Park"
members: ["Dr. Park", "Ms. Kim", "Mr. Lee"]
constraints:
budget: 50000
budget_used: 5000
team_capacity_hours_per_week: 40
database_access: ["Semantic Scholar", "OpenAlex", "arXiv"]
last_session:
session_id: "2025_02_03_session_002"
duration_minutes: 45
checkpoint_reached: "CP_PARADIGM_SELECTION"
See Decision Audit Trail section above.
checkpoints:
foundation:
- checkpoint_id: CP_RESEARCH_DIRECTION
level: REQUIRED
status: completed
completed_at: 2025-02-03T10:30:00Z
decision_id: DEV_001
- checkpoint_id: CP_PARADIGM_SELECTION
level: RECOMMENDED
status: completed
completed_at: 2025-02-03T10:45:00Z
decision_id: DEV_002_A1
- checkpoint_id: CP_SCOPE_DEFINITION
level: REQUIRED
status: pending
triggered_at: 2025-02-03T10:46:00Z
design:
- checkpoint_id: CP_THEORY_SELECTION
level: RECOMMENDED
status: pending
expected_completion: 2025-02-10T12:00:00Z
current_stage: "foundation"
completed_stages: []
issues:
- issue_id: ISS_001
date: 2025-02-03T11:00:00Z
severity: medium
category: "checkpoint_skipped"
checkpoint_id: "CP_SCOPE_DEFINITION"
message: "User requested to skip scope definition checkpoint"
resolution: "Documented in decision-log as DEV_003"
- issue_id: ISS_002
date: 2025-02-03T13:15:00Z
severity: low
category: "api_access_warning"
message: "OpenAlex API rate limit approaching (890/1000 requests)"
resolution: "Will reduce request frequency next session"
# Interactive initialization
/diverga:memory init
# Or with CLI arguments
/diverga:memory init \
--name "AI in STEM Education" \
--question "How does AI-assisted instruction affect student engagement?" \
--paradigm quantitative \
--methodology "meta-analysis" \
--timeline 6 \
--team-lead "Dr. Park"
Output:
✓ Project initialized: AI in STEM Education
✓ Created .research/ directory structure
✓ Set checkpoint: CP_RESEARCH_DIRECTION (REQUIRED)
✓ Next action: Define research scope
Start with: /diverga:memory status
# At checkpoint completion
/diverga:memory decision add \
--checkpoint CP_RESEARCH_DIRECTION \
--selected "How does AI-assisted instruction affect student engagement in STEM?" \
--rationale "Engagement is measurable and aligns with team expertise"
Output:
✓ Decision recorded: DEV_001
✓ Checkpoint CP_RESEARCH_DIRECTION marked COMPLETED
✓ Next checkpoint: CP_PARADIGM_SELECTION (RECOMMENDED)
✓ Session time: 15 minutes
Next: /diverga:memory checkpoint next
/diverga:memory status
Output:
╔════════════════════════════════════════╗
║ AI in STEM Education ║
║ Meta-Analysis Research Project ║
╚════════════════════════════════════════╝
📊 PROGRESS
├─ Current Stage: Foundation [50% complete]
├─ Sessions: 2 (90 minutes total)
├─ Decisions: 2 completed
└─ Next Milestone: CP_SCOPE_DEFINITION (REQUIRED)
🎯 RESEARCH QUESTION
"How does AI-assisted instruction affect student engagement in STEM?"
📋 PARADIGM & METHODOLOGY
Quantitative | Meta-Analysis
⏱️ TIMELINE
Started: Feb 3, 2025
Target: Aug 3, 2025
Elapsed: 45 minutes
Est. Remaining: 24+ hours
👥 TEAM
Lead: Dr. Park
Members: 3
✅ COMPLETED CHECKPOINTS
✓ CP_RESEARCH_DIRECTION (Feb 3, 10:30)
✓ CP_PARADIGM_SELECTION (Feb 3, 10:45)
⏳ PENDING CHECKPOINTS
🔴 CP_SCOPE_DEFINITION (REQUIRED)
🟠 CP_THEORY_SELECTION (RECOMMENDED)
🔗 LAST SESSION
Duration: 45 minutes
Ended: Feb 3, 14:30
Next: CP_SCOPE_DEFINITION discussion
# Archive foundation stage after completing all checkpoints
/diverga:memory archive foundation \
--summary "Research direction and paradigm finalized" \
--learnings "Team consensus on meta-analysis approach strengthens methodology"
Creates:
.research/changes/archive/foundation_20250203.yaml
foundation_archive:
archived_at: 2025-02-03T15:00:00Z
stage_name: "Foundation"
duration_hours: 2.5
checkpoints_completed: 2
checkpoints_skipped: 0
decisions_made: 2
summary: "Research direction and paradigm finalized"
learnings: |
Team consensus on meta-analysis approach strengthens methodology.
Early consideration of scope constraints prevented later conflicts.
next_stage: "Design"
notes: "Team ready to proceed to theory selection"
# Show all decisions
/diverga:memory decision list
# Filter by checkpoint
/diverga:memory decision list --checkpoint CP_PARADIGM_SELECTION
# Show with full rationale
/diverga:memory decision list --verbose
Output:
DECISION AUDIT TRAIL
═════════════════════════════════════
DEV_001 | CP_RESEARCH_DIRECTION | ✓ ACTIVE
Date: Feb 3, 2025 10:30
Decision: How does AI-assisted instruction affect student engagement in STEM?
Rationale: Engagement is measurable and significant to existing literature.
Version: 1
DEV_002_A1 | CP_PARADIGM_SELECTION | ✓ ACTIVE (amended)
Date: Feb 3, 2025 10:45 [amended 14:30]
Original (DEV_002): Quantitative: Meta-analysis
Amendment: Mixed-methods: Meta-analysis + qualitative synthesis
Amendment Rationale: Expanded to include implementation barriers
Version: 2
Total Decisions: 2
Total Amendments: 1
/diverga:memory context --verbose --format yaml
Output (excerpt):
research_context:
project_name: "AI in STEM Education"
current_stage: "foundation"
research_question: "How does AI-assisted instruction affect student engagement in STEM?"
paradigm: "Quantitative"
methodology: "Meta-analysis"
decisions:
- DEV_001: "Research question finalized"
- DEV_002_A1: "Mixed-methods approach approved"
completed_checkpoints:
- CP_RESEARCH_DIRECTION (Feb 3 10:30)
- CP_PARADIGM_SELECTION (Feb 3 10:45)
pending_checkpoints:
- CP_SCOPE_DEFINITION (REQUIRED)
- CP_THEORY_SELECTION (RECOMMENDED)
session_history:
- session_001: 45 minutes (Feb 3 10:00-10:45)
- session_002: 45 minutes (Feb 3 13:45-14:30)
issues:
- ISS_001: Checkpoint skipped (documented)
When accessing v6.8 project with v7.0 system:
/diverga:memory migrate --dry-run
Output:
MIGRATION CHECK: v6.8 → v7.0
═════════════════════════════════════
Found v6.8 project structure detected:
├─ old_decisions.log (47 entries)
├─ old_checkpoints.txt (basic format)
└─ old_sessions/ (8 files)
MIGRATION PLAN
├─ ✓ Convert decisions to YAML format
├─ ✓ Upgrade checkpoint structure (add levels)
├─ ✓ Import session history
├─ ✓ Create missing metadata fields
└─ ✓ Generate amendment chain analysis
Ready to migrate. Use: /diverga:memory migrate
/diverga:memory migrate
Output:
MIGRATION IN PROGRESS
═════════════════════════════════════
✓ Imported 47 decisions
✓ Upgraded checkpoint structure
✓ Analyzed amendment history
✓ Imported 8 session records
✓ Generated project-state.yaml
✓ Validated checkpoint linkage
✓ Created archive/baseline/ structure
✓ Backed up original files to .backup/
MIGRATION COMPLETE
═════════════════════════════════════
Project upgraded to v7.0
Old files backed up in: .research/.backup/v6.8/
Ready to continue research workflow.
v7.0 maintains read-only compatibility with v6.8 files:
Memory system integrates with all Diverga agents (A1-H2) to provide:
When delegating to research agents:
# Without explicit context injection (system does it automatically)
Task(
subagent_type="diverga:A2-HypothesisArchitect",
prompt="Help me develop hypotheses for my research"
)
# Memory system automatically:
# 1. Loads .research/project-state.yaml
# 2. Loads .research/decision-log.yaml
# 3. Injects into agent system prompt:
# - Current research question
# - Methodology selection
# - Prior decisions made
# - Pending checkpoints
# 4. Executes with full context
Agents automatically:
When researcher returns later:
User: "Let's continue my research on AI in education"
Memory System:
1. Detects keyword trigger
2. Loads last_session from project-state.yaml
3. Displays: "Welcome back! Last session: Feb 3, 14:30"
4. Shows: "Next checkpoint: CP_SCOPE_DEFINITION"
5. Suggests: "Continue with scope definition discussion?"
Memory system automatically detects and validates checkpoint dependencies:
dependencies:
CP_PARADIGM_SELECTION:
requires:
- CP_RESEARCH_DIRECTION # Must be completed first
unlocks:
- CP_THEORY_SELECTION
- CP_VARIABLE_DEFINITION
- CP_METHODOLOGY_APPROVAL
CP_DATABASE_SELECTION:
requires:
- CP_METHODOLOGY_APPROVAL
unlocks:
- CP_SEARCH_STRATEGY
- CP_SCREENING_CRITERIA
Research baselines (literature reviews, theoretical frameworks) are immutable:
.research/baselines/
├── literature/
│ └── key_studies.yaml # Immutable snapshot
├── methodology/
│ └── frameworks.yaml # Immutable reference
└── framework/
└── theories.yaml # Immutable collection
Changes are tracked in changes/current/ while baselines remain stable.
After project completion, memory system extracts learnings:
/diverga:memory extract-learnings
Creates shareable artifact for future projects:
| Metric | Limit | Notes | |--------|-------|-------| | Max decisions per project | 1000 | Archive older decisions if needed | | Max sessions per project | 500 | Session history available via archive | | Context injection latency | <100ms | Cached for performance | | Maximum project lifespan | 10 years | Can archive and restore old projects |
.research/Diverga Memory System v7.0 enables researchers to:
✓ Persist research context across sessions without manual setup ✓ Track all decisions with immutable audit trail and amendment support ✓ Enforce research rigor through checkpoint system with dependency validation ✓ Integrate with agents automatically for context-aware research support ✓ Maintain research quality through baseline preservation and change tracking ✓ Scale research projects from single-investigator to multi-year team efforts
Version 7.0.0 | Global Deployment Ready | Last Updated: 2025-02-03
tools
Recommend AND run open-source AI tools, agents, Claude Code / Codex skills, and MCP servers for any stage of a literature review — searching, reading, extracting, synthesizing, screening, citation-checking, and paper writing. Use when the user asks "what tool should I use to..." OR "install/run/use <tool> to ..." for research/lit-review work: automating a survey or related-work section, PDF→Markdown extraction for LLMs (MinerU/marker/docling), PRISMA / systematic review (ASReview), citation-backed Q&A over PDFs (PaperQA2), wiring papers into Claude/Cursor via MCP (arxiv/paper-search/zotero servers), or chatting with a Zotero library. Ships a launcher (scripts/litrun.py) that installs each tool in an isolated venv and runs it. Curated catalog of 70+ vetted projects. 支持中英文(用于「文献综述工具选型」与「一键安装/运行」)。
development
Route empirical-research requests through the Auto-Empirical Research Skills catalog when this whole repository is installed as one skill in Codex, CodeBuddy, Claude Code, or another IDE. Use to choose and load the right vendored AERS skill for causal inference, econometrics, replication, data acquisition, manuscript writing, peer review and referee responses, citation checking, de-AIGC editing, or full empirical-paper workflows without reading the entire repository at once.
documentation
Use when the project collects primary data or runs a field, lab, or survey experiment, before the intervention begins — write the pre-analysis plan, size the sample from a power calculation, and register with the AEA RCT Registry. Apply after the design is chosen in aer-identification and before any outcome data are seen.
tools
Guide economists to authoritative data sources with explicit, confirmed data specifications before retrieval; interfaces with Playwright MCP to navigate portals and extract real data, not articles about data.