k2f-contract — Claude Code skill: draft commercial contracts
Turns your deal terms into signature-ready NDAs, MSAs, SOWs and SaaS agreements. Counsel review still required.
npx skills add suzheng/k2f --skill k2f-contract -a claude-codeWhat k2f-contract does
The skill produces contracts as .K2F packages. An agent first writes a content_and_design.md blueprint: agreement type, parties, a defined-terms block, clause order, exhibits and the execution block. The K2F engine then compiles layout, typography and theme, so the agent stays on meaning instead of pixel coordinates.
Several gates are enforced. Drafting side is mandatory: if it is unclear which party you draft for, the skill stops and asks, because guessing inverts the risk allocation. Missing material topics such as a liability cap or data processing get flagged rather than filled with market-standard wording. Registration numbers, insurance limits and fee amounts are never invented.
Install the core first: npx skills add suzheng/k2f --skill k2f. k2f-contract is a layer on top, and without the core the package will not build. The blueprint states plainly that it is not legal advice and that binding language needs qualified counsel.
What it helps with
- draft an NDA from deal notes
- restructure a messy email thread into numbered articles
- move long tables into Exhibit A and Schedule 1
- consolidate scattered definitions into one block
- check that the liability cap does not contradict the indemnity
Example prompts for the agent
- draft an MSA from these terms, I'm the supplier
- reformat this NDA draft into a signable structure with exhibits
- build a SOW with milestones, acceptance and a change process
How to install k2f-contract
1Skills CLI (Vercel)
npx skills add suzheng/k2f --skill k2f-contract -a claude-code2Manually: put the files in place
~/.claude/skills/k2f-contract/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/k2f-contract/
1Skills CLI (Vercel)
npx skills add suzheng/k2f --skill k2f-contract -a codex2Manually: put the files in place
.agents/skills/k2f-contract/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add suzheng/k2f --skill k2f-contract -a cursor2Manually: put the files in place
.cursor/skills/k2f-contract/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install suzheng/k2f k2f-contract2Manually: put the files in place
.github/skills/k2f-contract/SKILL.md1Skills CLI (Vercel)
npx skills add suzheng/k2f --skill k2f-contract -a gemini-cli2Platform CLI
gemini skills install https://github.com/suzheng/k2f --path skills/legal/k2f-contractManually: put the files in place
.devin/skills/k2f-contract/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add suzheng/k2f --skill k2f-contract -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about k2f-contract
How do I install k2f-contract in Claude?
Run npx skills add suzheng/k2f --skill k2f-contract -a claude-code. The skill lands in ~/.claude/skills/k2f-contract/SKILL.md.
What does k2f-contract do?
It blueprints a contract — articles, defined terms, exhibits, signature block — and exports a signable document through the K2F engine. It does not replace legal review.
Do I need the k2f skill as well?
Yes. Install the core with npx skills add suzheng/k2f --skill k2f first, otherwise the .K2F package cannot be built.
Source text
SKILL.md · Apache-2.0
--- name: k2f-contract description: Draft commercial agreements (NDA, MSA, SOW, SaaS, vendor) from user terms and deal context—signature-ready layout, counsel review required, no invented law. Use when the user asks to draft, author, template, or format a contract or agreement (not review-only). Create contracts with AI-native design and the highest aesthetic standards, powered by the K2F format and engine. Purpose-built for AI agents, K2F lets them focus on semantic content and design intent while automatically handling layout, typography, and formatting complexity. --- # K2F Contract — AI-Native Aesthetic Design ## Purpose Teach agents to blueprint **contracts** before layout: agreement frame, party roles, consistent clause stack, and formal hierarchy for navigation and signing—without fabricating parties, amounts, governing law, or positions the user did not supply. ## Built on K2F This skill produces contracts as `.K2F` packages. Follow the **k2f** skill for authoring: unpack or init a workspace, edit the semantic tree, run pack/verify, then export. K2F keeps agents on *meaning* (articles, defined terms, exhibits, signature blocks)—not pixel coordinates—while the engine compiles layout, typography, and theme into consistent export-ready output. Before you build, install the core skill: `npx skills add suzheng/k2f --skill k2f`. ## When to Use - Authoring a new NDA, MSA, SOW, SaaS order form, vendor agreement, or amendment from deal notes or a playbook. - Reformatting messy draft text into a signable structure with exhibits and defined terms. - Turning approved commercial terms into a polished agreement for counterparty circulation (counsel review still required). ## Workflow ### Step 1. Generate the content_and_design.md Single blueprint for semantic content and aesthetic intent. Use labeled blocks the **k2f** skill can map to articles and pages later. **Sub-steps** 1. **Agreement frame** — Type (NDA, MSA, SOW, license, SaaS, procurement, etc.), effective date logic, and **which party you draft for** (supplier, customer, licensor, licensee). State governing jurisdiction and currency **only if user provided**. Omit entire article families the type does not need (e.g., skip payment schedules on a mutual NDA). 2. **Parties & recitals** — Legal names, entity types, addresses, and defined short names. Recitals: background facts from user inputs only—no invented deal size or strategic narrative. Flag missing signatory authority or entity details as `NEEDS USER CONFIRMATION`. 3. **Defined terms block** — Centralize capitalized terms used across articles (Services, Deliverables, Confidential Information, Fees). One definition per term; no duplicate glossaries in body text. 4. **Clause architecture (include / cut / order)** — Plan articles before drafting prose. Default stack; trim per frame: - Scope / Services → Fees & payment → Term & termination → IP → Confidentiality → Data protection (or DPA exhibit pointer) → Warranties → Limitation of liability → Indemnification → Insurance → General (assignment, notices, force majeure, entire agreement, amendments, counterparts). - **Cut** duplicate obligations and marketing language. - **Cross-link**: liability cap vs indemnity; survival vs termination—no contradictions. 5. **Commercial & risk allocation (user-sourced)** — Payment, caps, indemnity, IP, termination, and data terms **verbatim or TBD**. Label playbook clauses *must-have*, *negotiable*, or *placeholder*—do not soften must-haves. 6. **Exhibits & schedules** — Move long tables (SOW milestones, SLA, DPA, pricing) to exhibits with stable labels (Exhibit A, Schedule 1). Body references exhibits by label; avoid orphan exhibits or terms defined only in attachments. 7. **Execution block** — Signature lines, name/title/date per party; witness/notary only if user requested. Match party order to the preamble. 8. **Design intent** — Formal document tone and hierarchy for the engine: - **Tone**: precise, neutral, institution-grade; no sales voice inside operative articles. - **Hierarchy**: agreement title and party block strongest on cover/first pages; **article numbers** (1, 1.1, 1.1(a)) as primary scan anchors; defined-terms section visually distinct; exhibits and signatures clearly terminal. - **Density**: moderate legal density—short paragraphs, numbered lists for obligations; avoid wall-of-text articles; tables for fees and deliverables only in exhibits. - **Palette**: restrained neutrals, minimal accent (signature/date fields); high contrast for body text; WCAG AA; no decorative graphics that compete with clause numbers. **Rules & constraints** - **Counsel gate**: state clearly the blueprint is not legal advice; binding language requires qualified counsel review. - **Side gate**: obligations and protections must favor the documented drafting party; if side is unknown, stop and ask—wrong-side drafting inverts risk. - **Silence gate**: flag absent material topics (liability cap, change orders, data processing) instead of inventing market-standard terms. - **Consistency gate**: defined terms, exhibit references, and party names match everywhere; one currency and one governing-law block unless user confirms split structures. - **Honesty gate**: never fabricate registration numbers, insurance limits, fee amounts, or statutory citations. **Common failure modes** - Pasting deal email as unstructured paragraphs → re-architect into numbered articles and exhibits. - Definitions scattered through body → consolidate Defined Terms; fix capitalization drift. - Liability and indemnity that read unlimited while a “cap” exists elsewhere → reconcile in blueprint notes before layout. - SOW scope in prose without deliverables, acceptance, or change process → add exhibit table or mark gaps. - Generic “Agreement” with no parties or effective date → fill from user or flag. - Over-designed marketing cover on a contract → shift flair to title block only; keep articles austere. **Quality checklist** - [ ] Contract type, drafting side, and omitted articles are explicit. - [ ] Parties and defined terms are complete and consistent with exhibits. - [ ] Each material topic is present, deliberately omitted, or marked TBD—not silently assumed. - [ ] Cross-clause interactions (cap, indemnity, survival, termination) noted without contradiction. - [ ] Exhibits referenced in body exist; signature block matches party count. - [ ] Design intent names emphasis for article numbering, defined terms, exhibits, and signatures. - [ ] Counsel-review reminder included; no fabricated legal or commercial facts. ### Step 2. Use the content_and_design.md and k2f skill to generate a K2F file and export to an appropriate file format. Follow **k2f** skill to instantiate the contract from the blueprint, apply article and exhibit roles from design intent, verify, and export the signable deliverable.
© suzheng · Apache-2.0 · suzheng/k2f