edit-contract

edit-contract is a skill for Claude Code from yha9806/academic-writing-toolkit. It costs 28 tokens per session (1,277 once invoked), scanned A, original, MIT.

A bounded editing process for revising a substantial chapter. It creates a short record of the section’s purpose, claim, sources, and allowed changes before editing.

In plain words
What is it for?
Use it before rewriting more than one paragraph, changing a section’s claims, or restructuring a chapter. It helps record what changed and check whether the main claim became broader.
Why use it?
It prevents a rewrite from quietly changing the argument or spreading into nearby sections. It also makes repeated failed attempts visible and triggers escalation after three tries.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

Good fit Use it before rewriting more than one paragraph, changing a section’s claims, or restructuring a chapter. It helps record what changed and check whether the main claim became broader.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yha9806/academic-writing-toolkit/edit-contract
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 yha9806/academic-writing-toolkit --skill edit-contract
Clone the repo
git clone --depth 1 https://github.com/yha9806/academic-writing-toolkit

Made for: Claude Code.

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 edit-contract

README.md
[![agentmods](https://agentmods.dev/badge/skills/yha9806/academic-writing-toolkit/edit-contract/github.svg)](https://agentmods.dev/skills/yha9806/academic-writing-toolkit/edit-contract)
Your own site
<a href="https://agentmods.dev/skills/yha9806/academic-writing-toolkit/edit-contract"><img src="https://agentmods.dev/badge/skills/yha9806/academic-writing-toolkit/edit-contract/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 edit-contract

Your own site · 80×15
<a href="https://agentmods.dev/skills/yha9806/academic-writing-toolkit/edit-contract"><img src="https://agentmods.dev/badge/skills/yha9806/academic-writing-toolkit/edit-contract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,277 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00028 $0.01277
Opus 5 $0.00014 $0.00639
Sonnet 5 $0.00006 $0.00255
Haiku 4.5 $0.00003 $0.00128

Measured yesterday against content hash 7695f47bcb8d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

edit-contract 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 yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check-author-control.py, scripts/scaffold-author-control.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.

.claude/skills/edit-contract/SKILL.md · 110 lines

How it starts

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

/edit-contract — Bounded Chapter Edits

One file per contract at contracts/{chapter}-{slug}.md. No other ledgers.

Running Python helpers

Choose the interpreter before running the examples. For a globally installed copy, use the private runtime recorded by its installer. In a checkout or linked workspace, use AWT_PYTHON when set, otherwise the toolkit's .venv (follow the skill directory link back to the toolkit): Scripts/python.exe on Windows, bin/python on macOS/Linux. Without that environment, check that python (Windows) or python3 (macOS/Linux) actually runs and has the helper's dependencies. Replace the example's python3 with that executable. In PowerShell, prefix a quoted executable with &; keep commands on one line and quote file paths.

When to use

Before a substantive edit (rewriting more than one paragraph, changing what a section claims, restructuring). Not for typo fixes or single-sentence edits.

Contract file format

# Edit Contract: {chapter} — {short goal}

## Spine card
- Section role: {what this section must keep doing in the argument}
- Core claim (must not broaden): {one sentence}
- Sources in scope: {list; their roles — support / background / challenge}
- Forbidden: {claims that must NOT appear; scope that must NOT leak in}

## Scope
- May change: {chapters/ch3.md}
- Must not change: {chapters/ch2.md, chapters/ch4.md}

## Attempts
- [ ] Attempt 1: {date} — {outcome: accepted / revise / rejected, one line why}

Workflow

  1. Draft the contract from the user's request and the current section; show it; the user approves or amends it in conversation before any edit.
  2. Make the edit within Scope. After the edit, restate in one short table: what changed, whether the core claim broadened (quote before/after if it did), and whether anything Forbidden appeared.
  3. Record the attempt line. The user's accept/revise/reject decision in conversation is the gate — the file records it, it does not grant it.

Read the full file on GitHub · 110 lines

Files

What ships with it

6 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. yesterday Changed · +11 lines 7695f47bcb8d
  2. 2d ago Changed · +23 lines f62649a1f377
  3. 3d ago First seen · 76 lines · 28 tokens per session scan A 953ed53531bc

Subscribe to this mod's changes

edit-contract is a skill published in the GitHub repository yha9806/academic-writing-toolkit (37 stars, last pushed 2d ago), licensed MIT. It adds 28 tokens to every session and 1,277 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-09-06.

Related

Other skills, from other repositories

academic-cv

Write academic CVs, cover letters, research statements, teaching philosophies, diversity statements, and prepare for academic job applications. Use this skill whenever you need to create or improve an academic CV, write a research statement, develop a teaching philosophy, prepare application materials for faculty…

muhammad1438/academic-writer-skills · 0 tokens

conference-presentation

Design and write conference posters, oral presentations, slide decks, and conference abstracts. Use this skill whenever you need to create a research poster, prepare slides for an academic talk, design a conference presentation, write a conference abstract, or prepare for Q&A. Trigger for: "design my conference…

muhammad1438/academic-writer-skills · 0 tokens

argumentation-engine

Build, analyse, strengthen, and evaluate academic arguments using formal argumentation frameworks. Use this skill whenever the user needs to construct a logical argument, write a critical analysis, respond to counterarguments, evaluate the strength of evidence, identify logical fallacies, or apply argumentation models…

muhammad1438/academic-writer-skills · 0 tokens

figure-table-checker

Check, improve, and ensure compliance of figures and tables in academic papers. Use this skill whenever the user needs to verify figure or table formatting, choose error bar types, check colorblind accessibility, ensure APA or journal-specific compliance, create CONSORT or PRISMA flow diagrams, or fix common figure…

muhammad1438/academic-writer-skills · 0 tokens

latex-writer

Write, structure, and compile LaTeX documents for academic purposes. Use this skill whenever the user needs to write a LaTeX document, choose the right document class or packages, format equations, manage bibliographies, create figures and tables in LaTeX, troubleshoot errors, or prepare a journal-ready manuscript.…

muhammad1438/academic-writer-skills · 0 tokens

literature-review

Plan, structure, write, and improve academic literature reviews of all types — including narrative reviews, systematic reviews, and literature review chapters in dissertations. Use this skill whenever the user needs to write a literature review, synthesise multiple sources, structure a review chapter, understand…

muhammad1438/academic-writer-skills · 0 tokens