draft

draft is a skill for Claude Code, Codex from anylegal-ai/anylegal-oss. It costs 66 tokens per session (5,081 once invoked), scanned A, original, MIT.

A tool for drafting a new legal document from a blank page, such as an agreement, memo, letter, resolution, or term sheet. It creates the document in DOCX format, the standard Microsoft Word file format.

In plain words
What is it for?
Use it to create new legal documents from scratch, including agreements, memos, letters, resolutions, and term sheets.
Why use it?
It provides a defined way to create new legal content when there is no existing document to edit. Existing templates should be filled or changed with document-editing tools instead.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create new legal documents from scratch, including agreements, memos, letters, resolutions, and term sheets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anylegal-ai/anylegal-oss/draft
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 anylegal-ai/anylegal-oss --skill draft
Clone the repo
git clone --depth 1 https://github.com/anylegal-ai/anylegal-oss

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 draft

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/anylegal-ai/anylegal-oss/draft"><img src="https://agentmods.dev/badge/skills/anylegal-ai/anylegal-oss/draft.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,081 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00066 $0.05081
Opus 5 $0.00033 $0.02540
Sonnet 5 $0.00013 $0.01016
Haiku 4.5 $0.00007 $0.00508

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

Security

Grade A, and why

draft scanned grade A with 1 finding 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- `docx` (docx-js v9.5.1) is globally installed in the Node sandbox. Do not probe with `npm list docx`, `subprocess.run`, or similar — just `require('docx')`.
backend/anylegal_oss/workspace/skills/draft/SKILL.md · 480 lines

How it starts

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

Document Drafting (docx-js, from-scratch only)

When to Use

Use this skill when:

  • The user asks to draft a new document, clause, or section from scratch
  • The user says /draft
  • The user asks to "create", "write", "generate", or "prepare" legal content

Do NOT use this skill for:

  • Filling placeholders in an existing template (e.g. [Disclosing Party]Acme Corp) — that is an edit task. Invoke Skill(skill="docx-editing") and use instantiate_template (or edit_document for per-placeholder review).
  • Editing or restructuring an existing DOCX — also docx-editing.

Critical rules (read first)

These rules constrain how you call the tool. Following them produces documents that open cleanly in Word, Google Docs, and LibreOffice; ignoring them produces invalid output.

# Rule Why
1 DOCX creation goes through run_code(language="node") calling docx-js. Not python-docx. Not pandoc. Not lxml. docx-js is the only library with reliable APIs for footnotes, internal hyperlinks, TableOfContents, page numbers in headers/footers, and positional tabs.
2 One document = one run_code(language="node") call. Write the complete document in a single call — no skeleton-then-fill, no part-by-part assembly. docx-js has no Document.load() API; a second call to the same filename silently overwrites the first.
3 Bullets are produced via numbering config, not inline characters. Never write new TextRun("• Item") — use LevelFormat.BULLET with a numbering block on the Document. See "Lists" below. Inline bullet glyphs render inconsistently across viewers and break list semantics.
4 Filenames must be distinct logical names. Avoid _Part1 / _Final / _Draft / _v2 / _Copy suffixes. One logical document = one filename. Versioning suffixes signal split-document anti-patterns and confuse downstream document management.
5 Multi-document sets: todo_write first. If the user asks for a "set" / "series" / "package", your first tool call is todo_write with one item per document. After each document is saved, mark it completed and continue with the next item — in the same turn. Without an explicit todo list, multi-doc requests get partially completed and abandoned.
6 Content completeness. The saved document must be complete, not a skeleton: schedules referenced in the body must exist, defined terms must appear in the definitions clause, both parties' signature blocks for agreements, witness blocks for deeds. A skeleton wastes the user's time — they have to ask again to fill the gaps.

Read the full file on GitHub · 480 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 · 480 lines · 66 tokens per session scan A c11f655a8943

Subscribe to this mod's changes

draft is a skill published in the GitHub repository anylegal-ai/anylegal-oss (11 stars, last pushed 4mo ago), licensed MIT. It adds 66 tokens to every session and 5,081 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). 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

html-ppt-zhangzara-stencil-tablet

A workplace-safety compliance review for a manufacturing regulator — findings, the evidence chain, and the corrective mandate. Built as a decision-grade policy briefing deck for regulator, plant leadership.

nexu-io/open-design · 49 tokens

treatment-plans

Format and structurally validate local treatment-plan documentation after clinical decisions have already been supplied and verified by authorized licensed professionals. Use for source traceability, clinician-authored intervention records, goals and checkpoints, shared-decision records, reconciliation handoffs, and…

K-Dense-AI/scientific-agent-skills · 62 tokens

handbook-updates

Diff a proposed handbook change against the current version, flag ripple effects and state supplement impacts. Use when user says "update the handbook", "add this to the handbook", "handbook change", or has a policy ready for insertion.

anthropics/claude-for-legal · 52 tokens

software-copyright-materials

A workflow for creating Chinese application materials for software copyright registration from a real software project.

Fokkyp/SoftwareCopyright-Skill · 97 tokens

iflytek-contract-intelligence-review

A contract-review workflow for scanned or digital agreements. It can recognize document text, examine clauses, detect risks, check compliance, and create translation summaries; its output is for review and is not formal legal advice.

iflytek/iFly-Skills · 116 tokens

legal-writer

Legal document drafting -- contracts, memos, briefs, complaints, demand letters, opinions, discovery, settlements, ToS, privacy policies. Full pipeline: document structure, per-section writing, Bluebook citation, case law lookup (CourtListener API), regulation lookup (eCFR API), DOCX output, and TDD-style verification…

kortix-ai/suna · 161 tokens