contract-drafter
Assemble a reviewable contract draft from a supplied template, parties, and deal terms while surfacing every deviation from the template baseline and emitting only a gated send-as proposal.
You’re reading version sha-b7e07d1d470f. Go to the current version
Overview
contract-drafter turns an explicit contract template, explicit parties, and
explicit deal terms into a reviewable draft packet. It is intentionally narrow:
the skill assembles a draft, lists every departure from the supplied template
baseline, and prepares a gated send_proposal object for a later send-as run.
It never sends the draft, never executes a signature workflow, and never invents
missing parties, clauses, or deal terms.
In the manual
Runner
draft
Declared by its execution profile. Read the profile
SKILL.md
Contract Drafter
contract-drafter turns an explicit contract template, explicit parties, and
explicit deal terms into a reviewable draft packet. It is intentionally narrow:
the skill assembles a draft, lists every departure from the supplied template
baseline, and prepares a gated send_proposal object for a later send-as run.
It never sends the draft, never executes a signature workflow, and never invents
missing parties, clauses, or deal terms.
Inputs
template: object containingtemplate_id,baseline,required_terms, andclauses.parties: object containing the explicit contracting parties. The default runner expectsprovider.legal_nameandcustomer.legal_name.terms: object containing the deal-specific values to merge into the template.
Outputs
draft_doc: a structured Markdown draft with clause sections and source provenance for each term.deviations[]: every baseline departure, withclause,baseline, andproposed_change.send_proposal: a gated send-as proposal that references the draft and requires human approval and preflight before any downstream send can occur.
When a required term is missing, the runner refuses. The refusal emits no
draft_doc and no send_proposal, so incomplete contract material cannot leak
into a proposal path.
Safety model
- Validate the template, parties, and terms before drafting.
- Refuse if any required template term is missing from
terms. - Refuse if either party legal name is missing.
- Use only supplied template clauses and supplied deal terms.
- Compare every supplied term that has a template baseline and record all
differences in
deviations[]. - Emit a
send_proposalonly as a gated, not-sent packet for a separatesend-asstep.
Procedure
- Read the template, parties, and terms from runx inputs.
- Normalize the template baseline and required terms.
- Validate that all required terms are present and non-empty.
- Render a review draft from template clauses and supplied terms.
- Record deviations against the template baseline by clause id.
- Emit the draft packet and a gated
send_proposalthat names its audience, subject, draft reference, and approval requirements.
Example behavior
If the template baseline says payment_terms: Net 30 and the deal terms say
payment_terms: Net 45, the output includes:
{
"clause": "payment_terms",
"baseline": "Net 30",
"proposed_change": "Net 45"
}If payment_terms is required but omitted, the runner refuses and returns a
missing-term reason without a draft or send proposal.
Published execution profile
The execution profile published with sha-b7e07d1d470f, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256:f10553127a839752d461a5245aa9e338c1d24e5329c5d7dc2d2d631a94f9d5e4 |
skill: contract-drafter
version: 0.1.0
catalog:
kind: skill
audience: public
visibility: public
role: canonical
tags:
- contracts
- drafting
- governance
category: ops
runners:
draft:
default: true
inputs:
template:
type: json
required: true
description: Contract template object with template_id, baseline, required_terms, and clauses.
parties:
type: json
required: true
description: Explicit party objects; the skill refuses instead of inventing missing parties.
terms:
type: json
required: true
description: Deal terms to merge into the template; required terms must be supplied explicitly.
steps:
- id: draft
tool:
command: node
args:
- run.mjs
inputs:
template: $input.template
parties: $input.parties
terms: $input.terms
artifacts:
wrap_as: contract_draft_packet
harness:
cases:
- name: sealed-draft-with-visible-deviations
inputs:
template:
template_id: msa-standard-2026-07
title: Mutual Services Agreement
baseline:
governing_law: New York
payment_terms: Net 30
liability_cap: Fees paid in the prior 12 months
confidentiality_period: 3 years
renewal: Mutual written renewal only
required_terms:
- effective_date
- services
- fees
- payment_terms
- liability_cap
- governing_law
clauses:
- id: introduction
title: Parties and Effective Date
baseline: The agreement identifies both parties and the effective date.
- id: services
title: Services
baseline: Provider performs only the services listed in the statement of work.
- id: fees
title: Fees and Payment
baseline: Customer pays the fees in USD under Net 30 payment terms.
- id: liability_cap
title: Limitation of Liability
baseline: Liability is capped at fees paid in the prior 12 months.
- id: confidentiality_period
title: Confidentiality
baseline: Confidentiality obligations survive for 3 years.
- id: governing_law
title: Governing Law
baseline: New York law governs the agreement.
parties:
provider:
legal_name: Northstar Ops LLC
signer: Mira Chen
email: mira.chen@example.invalid
customer:
legal_name: Harbor Ledger Inc.
signer: Jules Patel
email: legal@example.invalid
terms:
effective_date: 2026-07-15
services: Monthly operations analytics and invoice reconciliation support.
fees: USD 9,500 per month
payment_terms: Net 45
liability_cap: USD 75,000 aggregate cap
governing_law: Delaware
confidentiality_period: 3 years
proposal_subject: Review draft MSA for Harbor Ledger
expect:
status: sealed
receipt:
schema: runx.receipt.v1
operator_journeys:
- mode: standalone
confusors:
- send-as
- ghostwrite
request: Draft a contract from our template with these parties and terms.
expected_outcome: Return a reviewable draft that surfaces every deviation from the template and only a gated send proposal.
- mode: composed
request: Continue this contract-drafter work from evidence already gathered upstream.
expected_outcome: Return a reviewable draft that surfaces every deviation from the template and only a gated send proposal.
prior_evidence:
- The template, parties and deal terms already supplied.
must_not_repeat:
- Do not send the draft.
- name: refused-missing-required-payment-term
inputs:
template:
template_id: msa-standard-2026-07
title: Mutual Services Agreement
baseline:
governing_law: New York
payment_terms: Net 30
liability_cap: Fees paid in the prior 12 months
required_terms:
- effective_date
- services
- fees
- payment_terms
- liability_cap
- governing_law
clauses:
- id: introduction
title: Parties and Effective Date
baseline: The agreement identifies both parties and the effective date.
- id: services
title: Services
baseline: Provider performs only the services listed in the statement of work.
- id: fees
title: Fees and Payment
baseline: Customer pays the fees in USD under Net 30 payment terms.
- id: liability_cap
title: Limitation of Liability
baseline: Liability is capped at fees paid in the prior 12 months.
- id: governing_law
title: Governing Law
baseline: New York law governs the agreement.
parties:
provider:
legal_name: Northstar Ops LLC
signer: Mira Chen
email: mira.chen@example.invalid
customer:
legal_name: Harbor Ledger Inc.
signer: Jules Patel
email: legal@example.invalid
terms:
effective_date: 2026-07-15
services: Monthly operations analytics and invoice reconciliation support.
fees: USD 9,500 per month
liability_cap: USD 75,000 aggregate cap
governing_law: Delaware
expect:
status: failure
receipt:
schema: runx.receipt.v1
Published package and test evidence.
The latest recorded test covers an earlier version, sha-df3346fb52e7. It does not establish a result for this version.
Test result
| Harness result | An earlier version was tested |
|---|---|
| Tested version | sha-df3346fb52e7Not this page’s version, sha-b7e07d1d470f |
| Recorded result | 2 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 2 |
Package identity
| Published revision | sha-b7e07d1d470f |
|---|---|
| Content digest | sha256:b7e07d1d470fa541ac9adc0367d0803a4446be356f341e516c4df155d926239b |
| SKILL.md digest | sha256:c5c1d3eeb7865adc10fce60ff2abe0d605a0b7a3fd289027d1f9215f126c9ecd |
| Execution profile digest | sha256:f10553127a839752d461a5245aa9e338c1d24e5329c5d7dc2d2d631a94f9d5e4 |
| Publisher identity | Unverified publisher · iwannabefree00 |
| Trust tier | CommunityPublished through the registry without publisher verification. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
sha-df3346fb52e7Content digest sha256:df3346fb52e7418431f4a246829a4e95f9675c6d82588e266b46e0cb069a8e2esha-906e55f9979eContent digest sha256:906e55f9979ee6ff980480b0a646b60d6b5c13bbb5bea374ccb1cbe54a5b3075sha-826d94b1d86dContent digest sha256:826d94b1d86d0f84b88ac68ae3e5087faf129e2d9f09e513a6d598bbffedb1d1sha-b7e07d1d470fViewingContent digest sha256:b7e07d1d470fa541ac9adc0367d0803a4446be356f341e516c4df155d926239b