diffs

diffs is a skill for Claude Code, Codex from beita6969/ScienceClaw. It costs 32 tokens per session (324 once invoked), scanned A, original, MIT.

A tool for creating shareable views or files that show the difference between two versions of text or a code patch. A diff highlights what was added, removed, or changed.

In plain words
What is it for?
Use it to produce an interactive diff link or a rendered PNG or PDF showing edits. It accepts before-and-after text or a unified patch.
Why use it?
It makes code and document changes easier to review than a written description alone.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/beita6969/scienceclaw/diffs
Any agent
npx skills add beita6969/ScienceClaw --skill diffs
Clone the repo
git clone --depth 1 https://github.com/beita6969/ScienceClaw

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 diffs

README.md
[![agentmods](https://agentmods.dev/badge/skills/beita6969/scienceclaw/diffs.svg)](https://agentmods.dev/skills/beita6969/scienceclaw/diffs)
Your own site
<a href="https://agentmods.dev/skills/beita6969/scienceclaw/diffs"><img src="https://agentmods.dev/badge/skills/beita6969/scienceclaw/diffs.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 324 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00032 $0.00324
Opus 5 $0.00016 $0.00162
Sonnet 5 $0.00006 $0.00065
Haiku 4.5 $0.00003 $0.00032

Measured 5d ago against content hash 6fe3e6d74fad, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

diffs 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 5d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • diffs — 100% identical, 0 lines differ
extensions/diffs/skills/diffs/SKILL.md · 23 lines

What it actually says

When you need to show edits as a real diff, prefer the diffs tool instead of writing a manual summary.

The diffs tool accepts either before + after text, or a unified patch string.

Use mode=view when you want an interactive gateway-hosted viewer. After the tool returns, use details.viewerUrl with the canvas tool via canvas present or canvas navigate.

Use mode=file when you need a rendered file artifact. Set fileFormat=png (default) or fileFormat=pdf. The tool result includes details.filePath.

For large or high-fidelity files, use fileQuality (standard|hq|print) and optionally override fileScale/fileMaxWidth.

When you need to deliver the rendered file to a user or channel, do not rely on the raw tool-result renderer. Instead, call the message tool and pass details.filePath through path or filePath.

Use mode=both when you want both the gateway viewer URL and the rendered artifact.

If the user has configured diffs plugin defaults, prefer omitting mode, theme, layout, and related presentation options unless you need to override them for this specific diff.

Include path for before/after text when you know the file name.

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. 5d ago First seen · 23 lines · 32 tokens per session scan A 6fe3e6d74fad

Subscribe to this mod's changes

diffs is a skill published in the GitHub repository beita6969/ScienceClaw (891 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 324 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

biomcp

Search and retrieve biomedical data - genes, variants, clinical trials, diagnostic tests, articles, drugs, diseases, pathways, proteins, adverse events, pharmacogenomics, and phenotype-disease matching. Use for gene function, variant pathogenicity, trials, diagnostics, drug safety, pathway context, disease workups…

genomoncology/biomcp · 70 tokens

biomcp-research

Do biomedical literature and variant research with the BioMCP CLI, and file what you learn about the tool itself as issues in the biomcp repo.

genomoncology/biomcp · 36 tokens

shidi

科研/工作中的"师弟"——用户给想法和方向,师弟负责把想法拆解、执行、交付:文献调研(多角度检索+评分标注+输出报告)、设计/验证实验方案(含文献支撑)、科研作图、精读论文、数据整理等脏活累活。触发词:师弟、脏活、跑腿活、文献调研、查文献、综述、帮我查资料、实验方案、做图、画图、帮我读论文。.

IcyCreamDAS/shidi-skill · 126 tokens

grounded

Write a scientific review of a topic or research question — small, medium (default), or large; in scientific, popsci (default), bullets, or ELI5 style; delivered as inline chat, a journal-styled PDF with generated figures (default), or, on explicit request only, an experimental 16:9 slide deck — built solely on…

jostelzer/grounded · 187 tokens

biological-expert

Expert-level biology, biotechnology, genetics, bioinformatics, and computational biology.

personamanagmentlayer/pcl · 19 tokens

agents

Drop-in instructions for any AI agent connected to the foragekit MCP server (uvx foragekit serve --mcp). Paste this into your agent's instructions, or install it as a skill. It teaches the loop; the tools enforce the rules.

IlkhamFY/epistemic-foraging · 0 tokens