Cleaning Up Research Sessions

Cleaning Up Research Sessions is a skill for Claude Code from kthorn/research-superpower. It costs 18 tokens per session (2,837 once invoked), scanned A, original, MIT.

A cautious cleanup guide for removing temporary files from completed research sessions while keeping important results and methodology records. It requires confirmation before deleting anything and protects core outputs such as summaries, paper files, and citation data.

In plain words
What is it for?
Use it after research is finished to prepare a session folder for archiving or sharing, or when explicitly cleaning up temporary research files.
Why use it?
Research folders often accumulate intermediate files that make archiving or sharing harder. The guide reduces accidental deletion by distinguishing disposable working files from records that must remain.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: positional $N argument.

Part of the research-superpower plugin — 10 skills, 1 hook shipped together

Good fit Use it after research is finished to prepare a session folder for archiving or sharing, or when explicitly cleaning up temporary research files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kthorn/research-superpower/cleaning-up-research-sessions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kthorn/research-superpower --skill cleaning-up-research-sessions
Clone the repo
git clone --depth 1 https://github.com/kthorn/research-superpower

Made for: Claude Code.

Or install research-superpower, the plugin that ships this one along with the rest of its 10 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Cleaning Up Research Sessions

README.md
[![agentmods](https://agentmods.dev/badge/skills/kthorn/research-superpower/cleaning-up-research-sessions/github.svg)](https://agentmods.dev/skills/kthorn/research-superpower/cleaning-up-research-sessions)
Your own site
<a href="https://agentmods.dev/skills/kthorn/research-superpower/cleaning-up-research-sessions"><img src="https://agentmods.dev/badge/skills/kthorn/research-superpower/cleaning-up-research-sessions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Cleaning Up Research Sessions

Your own site · 80×15
<a href="https://agentmods.dev/skills/kthorn/research-superpower/cleaning-up-research-sessions"><img src="https://agentmods.dev/badge/skills/kthorn/research-superpower/cleaning-up-research-sessions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,837 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.02837
Opus 5 $0.00009 $0.01418
Sonnet 5 $0.00004 $0.00567
Haiku 4.5 $0.00002 $0.00284

Measured 12d ago against content hash d1aaad679e56, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

Cleaning Up Research Sessions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/research/cleaning-up-research-sessions/SKILL.md · 439 lines

How it starts

The opening of the file, as written. The whole thing — 439 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 methodology
  • relevant-papers.json - Filtered relevant papers
  • papers-reviewed.json - Complete screening history
  • papers/ directory - All PDFs and supplementary files
  • citations/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 overview
  • TOP_PRIORITY_PAPERS.md - Curated priority list
  • evaluated-papers.json - Rich structured data

Project configuration:

  • .claude/ directory - Permissions and settings
  • *.py helper 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:

  • *.tmp files
  • *.swp files (vim swap files)
  • .DS_Store (macOS)
  • __pycache__/ (Python cache)
  • *.pyc (Python compiled)

Read the full file on GitHub · 439 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 439 lines · 18 tokens per session scan A d1aaad679e56

Subscribe to this mod's changes

Cleaning Up Research Sessions is a skill published in the GitHub repository kthorn/research-superpower (124 stars, last pushed 10mo ago), licensed MIT. It adds 18 tokens to every session and 2,837 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.