marin: Skill for Claude Code

.agents/skills/simplify-code/SKILL.md

simplify-code is a skill for Claude Code, Codex from marin-community/marin. It costs 33 tokens per session (1,103 once invoked), scanned A, original, Apache-2.0.

A cleanup workflow for an explicitly requested branch or code difference. It examines changed code, tests, documentation, and related text to remove unnecessary tests, prose, and complexity.

In plain words
What is it for?
It helps simplify a Git branch or diff, check changed tests and documentation, and run the repository's required checks.
Why use it?
It helps reduce maintenance work without treating every review as permission to edit code. It also separates cleanup from an independent review or publishing workflow.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md; mentions Codex.

This is marin-community/marin's own configuration. It tells Claude Code and Codex how to work on marin 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 marin configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./infra/pre-commit.py --changed-files --fix.

About the project

Marin is an open-source research program, software platform, and community for developing foundation models such as large language models. Researchers use it for data preparation, tokenization, pretraining, posttraining, evaluation, and related experiments, including work on audio-text, DNA, and protein models. The catalogue entries are add-ons that support workflows around Marin.

marin-community/marin · 4,074 stars · on GitHub · marin.community

Reuse

Borrowing it

Nothing to install: this file belongs to marin-community/marin. 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/marin-community/marin/main/.agents/skills/simplify-code/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/marin-community/marin

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 simplify-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/marin-community/marin/simplify-code/github.svg)](https://agentmods.dev/skills/marin-community/marin/simplify-code)
Your own site
<a href="https://agentmods.dev/skills/marin-community/marin/simplify-code"><img src="https://agentmods.dev/badge/skills/marin-community/marin/simplify-code/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 simplify-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/marin-community/marin/simplify-code"><img src="https://agentmods.dev/badge/skills/marin-community/marin/simplify-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,103 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.00033 $0.01103
Opus 5.5 $0.00013 $0.00441
Sonnet 5.5 $0.00007 $0.00221
Haiku 4.5 $0.00003 $0.00110

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

Security

Grade A, and why

simplify-code 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 14d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scan_diff.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/simplify-code/SKILL.md · 129 lines

How it starts

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

Simplify a branch or diff

Apply this workflow when cleanup of a branch or diff is explicitly requested. Use review-pr for independent findings without code edits. manage-pr owns publication and feedback after the cleanup is ready.

Load The Policies

Read these before reviewing:

  • root AGENTS.md
  • root TESTING.md
  • docs/dev-guide/writing-style/ai-writing-donts.md
  • the nearest module AGENTS.md and testing guide for each changed test

Read references/examples.md when the diff changes tests or prose.

Establish The Review Surface

Review the merge-base diff. Do not substitute commit history or the latest commit.

UPSTREAM=$(git rev-parse --verify origin/main 2>/dev/null || git rev-parse --verify main)
BASE=$(git merge-base HEAD "$UPSTREAM")
git status --short
git diff --stat "$BASE"
git diff --check "$BASE"
git diff "$BASE"
uv run python .agents/skills/simplify-code/scripts/scan_diff.py "$BASE"

List every changed test, comment, docstring, Markdown file, commit message, and draft PR title/body. Read the surrounding production code and existing tests. The scanner includes untracked files and returns candidates; inspect each one in context.

Gate Tests By Behavioral Value

For every changed test, finish this sentence:

This test fails when ___ user-visible or system behavior is wrong.

Delete or rewrite the test when the blank names an implementation detail, wording choice, supplied fixture value, or language guarantee.

Reject these patterns aggressively:

  • config in, same config out: a constructed or lowered field equals the fixture
  • constructor assignment, enum value, type, attribute, registration, or import exists
  • exact log, help, error, command, or status prose that no machine consumes
  • private state, helper call count, or assert_called_once_with
  • production logic copied into the expected value
  • is not None, does not raise, empty smoke tests, or permanent skips
  • a large matrix whose rows exercise the same branch
  • golden output produced by the implementation under test

Read the full file on GitHub · 129 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 14d ago Changed · +6 lines e3facd45f54f
  2. 15d ago First seen · 123 lines · 33 tokens per session scan A 605591236269

Subscribe to this mod's changes

simplify-code is a skill published in the GitHub repository marin-community/marin (4,074 stars, last pushed today), licensed Apache-2.0. It adds 33 tokens to every session and 1,103 once invoked, about $0.0001 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-10-23.

Related

simplify-code compared with skills from other repositories

simplify-code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
simplify-codemarin-community/marinSkill4.1ktodayApache-2.0A33Claude Code, Codex
prYeachan-Heo/oh-my-claudecodeSkill41kyesterdayMITA47Claude Code
merge-batchdiegosouzapw/OmniRouteSkill83k5d agoMITA46Claude Code
otto-pr-review-loopomnigent-ai/omnigentSkill11ktodayApache-2.0A17Claude Code, Codex
engram-branch-prGentleman-Programming/engramSkill7.8ktodayMITA37Claude Code, Codex
github-contributordaymade/claude-code-skillsSkill1.5kyesterdayMITA105Claude Code, Codex
revdiffumputun/revdiffSkill945yesterdayMITA250Claude Code