pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Safely remove intermediate files from completed research sessions while preserving important data
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill cleaning-up-research-sessions --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cleaning-up-research-sessionsContext preview
The summary Claude sees to decide when to auto-load this skill.
Safely remove intermediate files from completed research sessions while preserving important data
name: Cleaning Up Research Sessions description: Safely remove intermediate files from completed research sessions while preserving important data when_to_use: After research session is complete and consolidated. When research folder has accumulated temporary files. Before archiving or sharing research session. version: 1.0.0
<!-- ╔══════════════════════════════════════════════════════════════╗ ║ 本文件为开源 Skill 原始文档,收录仅供学习与研究参考 ║ ║ CoPaper.AI 收集整理 | https://copaper.ai ║ ╚══════════════════════════════════════════════════════════════╝
来源仓库: https://github.com/kthorn/research-superpower 项目名称: research-superpower 开源协议: MIT License 收录日期: 2026-04-02
声明: 本文件版权归原作者所有。此处收录旨在为社会科学实证研究者 提供 AI Agent Skills 的集中参考。如有侵权,请联系删除。 -->
Remove intermediate files created during research workflow while preserving all important data.
**Core principle:** Conservative cleanup with user confirmation. Never delete anything important.
Use this skill when:
**When NOT to use:**
**NEVER delete these (protected list):**
**Core outputs:**
**Methodology documentation:**
**Auxiliary documentation (if exists):**
**Project configuration:**
**Candidates for removal (with confirmation):**
**Intermediate search results:**
**Temporary files:**
**Log files:**
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:**
**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:**
**Before deleting ANY file:**
1. **Verify it's not in protected list** 2. **Check file isn't referenced in SUMMARY.md** 3. **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)
**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
**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
**If abstracts-cache.json is very large (>100 MB):**
⚠️ abstracts-cache.json is 256 MB This file enables re-screening if you update the rubric. Options: 1. Keep (recommended if you might refine rubric) 2. Compress (gzip to ~50 MB, can decompress later) 3. Delete (only if research is final and won't
📌 文档结构(2026-07-22 起): 本文件是中文默认入口 —— banner + badges + 信任面 + 9 阶段流水线速览 + 76 行合集总表。 每个合集的完整描述、按用途分组、精确数字、验证方法在 docs/CONTENT_ZH.md(扩展正文,总表行内的 → 直接跳转到对应锚点)。 English version: README-en.md · 中文扩展正文:docs/CONTENT_ZH.md · README-zh-CN.md 已弃用(重定向占位) 🌐 语言: English |
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Use when the user asks to run a full empirical / causal analysis in Python — by default in the style of an applied economics paper (AER / QJE / JPE / ReStud /…
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Classical end-to-end empirical analysis workflow in the traditional Stata ecosystem — native Stata + reghdfe + ivreg2 + csdid + did_imputation +…
Classical end-to-end empirical analysis workflow in the modern tidyverse + econometrics R ecosystem — dplyr + tidyr + haven + fixest + sandwich + lmtest +…
Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-ready manuscript. Use when users want…