Imported from zhangyao23/research-vault (
AGENTS.md). Install upstream withnpx skills add zhangyao23/research-vault. Copyright stays with the author.
AGENTS.md
Project Goal And Stage
- Project:
research-vault - Goal: deliver a durable local research knowledge base CLI
- Stage: third round, focused on explicit review sync from
study-ops
Default Outputs
docs/notes/*.md: readable notes and managed synced reviewsdata/processed/research-vault.db: local SQLite index and sync metadataartifacts/outputs/: exports and query snapshots
Directory Responsibilities
src/commands/: CLI entry commandssrc/store/: SQLite access, indexing, links, and managed review syncdocs/notes/: note Markdown managed by the projectdata/raw/anddata/external/: read-only inputs by defaultdata/processed/: SQLite database and derived local data.tmp/: disposable local scratch files
Allowed Modifications
- Normal work may edit
src/,tests/,docs/,docs/notes/,artifacts/outputs/,data/processed/, and.tmp/ - Managed review refresh is allowed only for
docs/notes/study-review-YYYY-MM-DD.md
High-Risk Confirmation Rules
Confirm before:
- deleting notes, database files, or exports
- overwriting
data/raw/ordata/external/ - writing outside this project root
- changing shared templates or sibling projects
Run And Logging Rules
- Long-running jobs should stay project-local and write outputs into
artifacts/outputs/orartifacts/logs/ sync-reviewsonly reads the explicitly providedstudy-opsproject root- Conflicts from locally edited managed notes must be reported, not overwritten
Key Files
src/cli.jssrc/store/notes.jssrc/store/reviewSync.jssrc/commands/syncReviews.jstests/run-tests.js
Update Log
- 2026-04-10: added explicit
study-opsreview sync, managed metadata, and conflict-aware refresh behavior
