MPS: Skill for Claude Code

.agents/skills/study-run-cleanup/SKILL.md

study-run-cleanup is a skill for Claude Code, Codex from JetBrains/MPS. It costs 61 tokens per session (424 once invoked), scanned A, original, Apache-2.0.

A dry-run cleanup procedure for old MPS study scratch projects and their disk space. It lists eligible directories before deletion and requires human approval before removing them.

In plain words
What is it for?
It is for finding and safely pruning old measured study-run directories under the specified MPS workspace.
Why use it?
It reduces the risk of deleting active projects, archives or unrelated files while reclaiming space.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; installed under .agents/ (shared by several agents).

This is JetBrains/MPS's own configuration. It tells Claude Code and Codex how to work on MPS itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything MPS configures →

About the project

JetBrains MPS is a development environment for creating domain-specific languages, which are programming languages designed for a particular field or task. It provides editors with features such as completion, semantic checks, and type checking, and can generate code in languages including Java and XML.

JetBrains/MPS · 1,666 stars · on GitHub · jetbrains.com

Reuse

Borrowing it

Nothing to install: this file belongs to JetBrains/MPS. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/JetBrains/MPS/master/.agents/skills/study-run-cleanup/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/JetBrains/MPS

Made for: Claude Code, Codex.

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 study-run-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/jetbrains/mps/study-run-cleanup/github.svg)](https://agentmods.dev/skills/jetbrains/mps/study-run-cleanup)
Your own site
<a href="https://agentmods.dev/skills/jetbrains/mps/study-run-cleanup"><img src="https://agentmods.dev/badge/skills/jetbrains/mps/study-run-cleanup/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 study-run-cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/jetbrains/mps/study-run-cleanup"><img src="https://agentmods.dev/badge/skills/jetbrains/mps/study-run-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 424 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.00061 $0.00424
Opus 5.5 $0.00024 $0.00170
Sonnet 5.5 $0.00012 $0.00085
Haiku 4.5 $0.00006 $0.00042

Measured 2d ago against content hash 651e5226dd04, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

study-run-cleanup 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 2d 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.

.agents/skills/study-run-cleanup/SKILL.md · 29 lines

What it actually says

Study run cleanup

Observer-only. This skill is not in the bundled mps-* catalog, so a measured worker does not load it. The same file is copied to .claude/skills/study-run-cleanup/SKILL.md. Keep the two copies identical. Do not replace either with a symlink.

The procedure is plugins/mcp-tools/study/instructions/cleanup.md. Read it and follow it. Do not keep a second copy here.

Before any deletion

  • Dry-run is the default. Print the paths. Apply only the list a human accepted.
  • The deletion unit is a directory that contains .mps. Never a bucket (r10, unclosed, s15), never harness*, never a probe or fixture-build tree.
  • The archive that existed on 2026-10-30 is classified and kept. The first dry-run does not emit a delete list for archive/workspace or archive/fixtures. Directory suffix is not the study round; do not map rN to round-N.
  • A scratch with no *.fixture.json stamp is not eligible. Every existing scratch is in that state. "Two newest per family" applies only after a stamp records the fixture name and sha256.
  • Stop if MPS has the project open, including under its pre-move proj/ or proj-rN/ path, or if a listed open path does not exist on disk.
  • Do not delete transcripts in this step. Moving old files out of live runs/ is a separately named dry-run, and it leaves inventory.json in place.
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. 2d ago First seen · 29 lines · 61 tokens per session scan A 651e5226dd04

Subscribe to this mod's changes

study-run-cleanup is a skill published in the GitHub repository JetBrains/MPS (1,666 stars, last pushed yesterday), licensed Apache-2.0. It adds 61 tokens to every session and 424 once invoked, about $0.0002 per session on Opus 5.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-11-04.

Related

study-run-cleanup compared with skills from other repositories

study-run-cleanup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
study-run-cleanupJetBrains/MPSSkill1.7kyesterdayApache-2.0A61Claude Code, Codex
langiumeclipse-langium/langium-aiSkill314d agoMITA33Claude Code
lai-gen-evalseclipse-langium/langium-aiSkill314d agoMITA42Claude Code
laieclipse-langium/langium-aiSkill314d agoMITA52Claude Code
lai-gen-descriptoreclipse-langium/langium-aiSkill314d agoMITA49Claude Code
lai-gen-mcpeclipse-langium/langium-aiSkill314d agoMITA43Claude Code
lai-gen-language-skilleclipse-langium/langium-aiSkill314d agoMITA33Claude Code