Cleaning Up Research Sessions
Safely remove intermediate files from completed research sessions while preserving important data

Установить Cleaning Up Research Sessions в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Cleaning Up Research Sessions
Overview
Remove intermediate files created during research workflow while preserving all important data.
Core principle: Conservative cleanup with user confirmation. Never delete anything important.
When to Use
Use this skill when:
- Research session is complete and consolidated
- Preparing to archive or share research session folder
- Research folder has accumulated temporary/intermediate files
- User explicitly asks to clean up
When NOT to use:
- Research is still in progress
- User hasn't reviewed final outputs yet
- Unsure what files are safe to delete
Files That Are ALWAYS KEPT
NEVER delete these (protected list):
Core outputs:
SUMMARY.md- Enhanced findings with methodologyrelevant-papers.json- Filtered relevant paperspapers-reviewed.json- Complete screening historypapers/directory - All PDFs and supplementary filescitations/citation-graph.json- Citation relationships
Methodology documentation:
screening-criteria.json- Rubric definition (if exists)test-set.json- Rubric validation papers (if exists)abstracts-cache.json- Cached abstracts for re-screening (if exists)rubric-changelog.md- Rubric version history (if exists)
Auxiliary documentation (if exists):
README.md- Project overviewTOP_PRIORITY_PAPERS.md- Curated priority listevaluated-papers.json- Rich structured data
Project configuration:
.claude/directory - Permissions and settings*.pyhelper scripts that were created - Keep for reproducibility
Files That May Be Cleaned Up
Candidates for removal (with confirmation):
Intermediate search results:
initial-search-results.json- Raw PubMed results before screening- Safe to delete: Data is in papers-reviewed.json
- Reason to keep: Shows raw search results for reproducibility
Temporary files:
*.tmpfiles*.swpfiles (vim swap files).DS_Store(macOS)__pycache__/(Python cache)*.pyc(Python compiled)
Log files:
*.logfilesdebug-*.txtfiles
Cleanup Workflow
Step 1: Analyze Research Session
cd research-sessions/YYYY-MM-DD-description/
# List all files with sizes
find . -type f -exec ls -lh {} \; | awk '{print $5, $9}' | sort -rh
Identify files by category:
- Core outputs (MUST keep)
- Methodology files (SHOULD keep)
- Intermediate files (candidates for cleanup)
- Temporary files (safe to delete)
Step 2: Present Cleanup Plan to User
Show what will be deleted:
🧹 Cleanup Analysis for: research-sessions/2025-10-11-btk-selectivity/
Files to KEEP (protected):
✅ SUMMARY.md (45 KB)
✅ relevant-papers.json (12 KB)
✅ papers-reviewed.json (28 KB)
✅ papers/ (14 PDFs, 32 MB)
✅ citations/citation-graph.json (5 KB)
✅ screening-criteria.json (2 KB)
✅ abstracts-cache.json (156 KB)
Files that CAN be removed (intermediate):
🗑️ initial-search-results.json (8 KB) - Raw PubMed results
🗑️ .DS_Store (6 KB) - macOS metadata
Total space to recover: 14 KB
Proceed with cleanup? (y/n/review)
Options:
y- Delete intermediate filesn- Cancel cleanup, keep everythingreview- Show contents of each file before deciding
Step 3: Confirm Deletions
Before deleting ANY file:
- Verify it's not in protected list
- Check file isn't referenced in SUMMARY.md
- Confirm with user one more time
Example confirmation:
About to delete:
- initial-search-results.json (8 KB)
This file contains raw PubMed search results. The data is preserved in
papers-reviewed.json, so this is safe to delete.
Confirm deletion? (y/n)
Step 4: Perform Cleanup
Delete confirmed files:
# Move to trash instead of rm (safer)
# On macOS:
mv initial-search-results.json ~/.Trash/
# On Linux:
mv initial-search-results.json ~/.local/share/Trash/files/
# Or use rm if user confirms
rm initial-search-results.json
Report results:
✅ Cleanup complete!
Removed:
- initial-search-results.json (8 KB)
- .DS_Store (6 KB)
Space recovered: 14 KB
Protected files preserved:
- All 8 core files kept
- All 14 PDFs kept
- All methodology documentation kept
Step 5: Verify Integrity
After cleanup, verify critical files:
# Check core files exist
test -f SUMMARY.md && echo "✓ SUMMARY.md"
test -f relevant-papers.json && echo "✓ relevant-papers.json"
test -f papers-reviewed.json && echo "✓ papers-reviewed.json"
test -d papers && echo "✓ papers/ directory"
# Verify JSON files are valid
jq empty relevant-papers.json && echo "✓ relevant-papers.json valid JSON"
jq empty papers-reviewed.json && echo "✓ papers-reviewed.json valid JSON"
Report to user:
✅ Integrity check passed
- All core files present
- All JSON files valid
- All PDFs intact
Special Cases
Case 1: Large abstracts-cache.json
If abstracts-cache.json is very large (>100 MB):
⚠️ abstracts-cache.json is 256
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Cleaning Up Research Sessions?
Safely remove intermediate files from completed research sessions while preserving important data
Как установить скилл Cleaning Up Research Sessions?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Cleaning Up Research Sessions запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
