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.

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 containing template_id, baseline, required_terms, and clauses.
  • parties: object containing the explicit contracting parties. The default runner expects provider.legal_name and customer.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, with clause, baseline, and proposed_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

  1. Validate the template, parties, and terms before drafting.
  2. Refuse if any required template term is missing from terms.
  3. Refuse if either party legal name is missing.
  4. Use only supplied template clauses and supplied deal terms.
  5. Compare every supplied term that has a template baseline and record all differences in deviations[].
  6. Emit a send_proposal only as a gated, not-sent packet for a separate send-as step.

Procedure

  1. Read the template, parties, and terms from runx inputs.
  2. Normalize the template baseline and required terms.
  3. Validate that all required terms are present and non-empty.
  4. Render a review draft from template clauses and supplied terms.
  5. Record deviations against the template baseline by clause id.
  6. Emit the draft packet and a gated send_proposal that 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:

json
{
  "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-df3346fb52e7, shown as its exact bytes.

Runner
  • draft
Profile digestsha256:bc9addb7c3d7912f3406e23b5c4d5f9c92bef7b1bc0a16d3b3155a354e126ab6
skill: contract-drafter
version: 0.1.1
catalog:
  kind: skill
  audience: public
  visibility: public
  role: canonical
  tags:
    - contracts
    - drafting
    - governance
  category: content
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.

This exact version passed its recorded harness run: 2 checks passed · 0 failed.

Test result

Harness resultPassed
Tested versionsha-df3346fb52e7
Recorded result2 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases2
Test recordOpen the recorded run
Inspect receipt referencessha256:17e369271bab7ca911f5ca23e65c908249689865b5cecddb3a34041982016daasha256:379b270474f7f357124d5a691ddbb05fe86a7d8b10922082481d0733745d766b

Package identity

Published revisionsha-df3346fb52e7
Content digestsha256:df3346fb52e7418431f4a246829a4e95f9675c6d82588e266b46e0cb069a8e2e
SKILL.md digestsha256:c5c1d3eeb7865adc10fce60ff2abe0d605a0b7a3fd289027d1f9215f126c9ecd
Execution profile digestsha256:bc9addb7c3d7912f3406e23b5c4d5f9c92bef7b1bc0a16d3b3155a354e126ab6
Publisher identityUnverified publisher · iwannabefree00
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · Declarediwannabefree00 · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-df3346fb52e7ViewingContent digest sha256:df3346fb52e7418431f4a246829a4e95f9675c6d82588e266b46e0cb069a8e2e
  2. sha-906e55f9979eContent digest sha256:906e55f9979ee6ff980480b0a646b60d6b5c13bbb5bea374ccb1cbe54a5b3075
  3. sha-826d94b1d86dContent digest sha256:826d94b1d86d0f84b88ac68ae3e5087faf129e2d9f09e513a6d598bbffedb1d1
  4. sha-b7e07d1d470fContent digest sha256:b7e07d1d470fa541ac9adc0367d0803a4446be356f341e516c4df155d926239b