本文へ移動
cccskills
無料GitHub で公開日本語紹介

master-agreement-generator

共通テンプレートと取引先ごとのJSONから、役割に応じた条項を含む基本契約の確認用ドラフトを生成し、契約別紙への案件追加の手順も整理するスキル。

原文原文の説明を見る

Generate review drafts of counterparty master agreements from one template plus a JSON spec, with role-selected clauses and a Schedule A workflow limited to the executed agreement's notice authority. Use when you need reproducible drafting and separately reviewed execution preparation.

インストール方法を見る

こんなときに便利

  • 複数の取引先向け契約ドラフトの統一
  • 買い手・供給者・相互紹介の条項選択
  • 確認用のMarkdownやDOCXを生成したいとき
  • 締結済み契約に沿った別紙追加通知の準備

日本語での紹介

できること

共通のMarkdownテンプレートと、取引先ごとのJSON設定から基本契約の確認用ドラフトを生成します。取引先情報や署名欄を差し込み、buyer、supplier、mutualの役割に応じて条項を選びます。案件一覧の別紙であるSchedule Aも表に整え、MarkdownとDOCX、または明示的な指定でMarkdownのみを出力します。

こんなときに便利

複数の取引先に共通条件の契約を用意したいときや、テンプレートと設定を管理して同じドラフトを再生成したいときに向いています。締結済み契約が通知による案件追加を認めている場合には、その権限に沿った通知と記録の手順も整理します。

使い方の例

  • 「確認済みのテンプレートと取引先JSONからDOCXドラフトを生成して」
  • 「締結済み契約の通知条件を確認し、Schedule Aへの追加通知案を作って」

注意点

実行にはNode.js、DOCX生成にはpandocが必要です。出力は常にDRAFTで、送信・署名の承認を意味しません。条項や署名権限などは別途確認し、締結済み文書は変更せず保管します。変換処理はファイルやネットワークへのアクセスを隔離しないため、確認済みの入力を制限した環境で扱います。

この紹介文は、公開されている SKILL.md をもとに AI(Claude Haiku)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(4)

  • SKILL.md11.3 KB
  • references/master-template.example.md4.2 KB
  • references/spec.example.json460 B
  • scripts/build-agreement.js9.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Master Agreement Generator

One master template, one small spec per counterparty, one draft build step. The generator always labels output DRAFT, including documents generated from a completed template. A successful conversion proves artifact generation, not legal completeness, authority to contract, or readiness to send or sign. An executed agreement may permit designated opportunities to be added by notice; that authority must be established before using the Schedule A workflow.

When to Use

  • You issue a framework agreement (NDA, referral or sourcing fee, non-circumvention, master services) to many counterparties with the same terms and a few party-specific fields.
  • Deals are added over time and re-papering each one is the bottleneck.
  • Documents must be reproducible from tracked source, diffable, and free of hand edits.
  • Signature fields are placed by automation and need a stable page layout.

How It Works

Template

A single markdown template with {{PLACEHOLDER}} fields. Every party-specific value is a placeholder; everything else is fixed text. A skeleton lives at references/master-template.example.md. Replace its generic sentences with your counsel-approved clauses.

Placeholders the reference script fills:

PlaceholderSource
{{DATE}}spec.date, default today
{{CP_SHORT}}spec.short
{{CP_LEGAL}}, {{CP_JURIS}}, {{CP_ADDR}}spec fields, or a blank line when the counterparty completes them at signing
{{ROLE_CLAUSE}}, {{FEE_TITLE}}, {{FEE_CLAUSE}}selected by spec.role from the role table
{{SCHEDULE_ROWS}}spec.schedule, or one "no entries at signing" row
{{SUPPLEMENT_CLAUSE}}spec.supplement, rendered with a trailing separator or empty
{{CP_SIGBLOCK}}, {{CP_SIGNER}}, {{CP_TITLE}}, {{CP_EMAIL}}signature block fields, blanks when unknown

Spec

One JSON file per counterparty:

{
  "file": "AcmeSupplier",
  "short": "Acme",
  "role": "supplier",
  "legal": "Acme Compute Ltd",
  "juris": "England and Wales company",
  "addr": "1 Example Street, London",
  "signer": "A. Person",
  "title": "Director",
  "email": "signer@example.com",
  "schedule": [["1", "2026-09-01", "Lot A (16 nodes)", "introducer", "12 months", "standard"]],
  "supplement": "the Data Processing Addendum dated 2026-09-01"
}

Only file, short, and role are required for a draft. Missing signature fields render as blank lines for review and completion. See references/spec.example.json.

file must be a nonempty portable filename, such as AcmeSupplier or Acme Supplier, without directory components. The builder rejects either path separator, drive/UNC syntax, control characters, Windows-reserved punctuation or device names, and trailing dots or spaces. Invalid names are rejected without sanitizing or renaming them, before creating output or invoking pandoc.

Omit schedule or use [] for the “no entries at signing” placeholder. A supplied schedule must otherwise be a dense array of six-cell arrays, in this order: number, date, protected counterparty or lot, role, terms, fee. Each cell must be a valid Unicode string or finite number; empty strings are allowed for intentional blanks. Nulls, booleans, objects, nested cell arrays, missing cells and non-finite numbers are rejected with a row/cell index before any artifact write or pandoc activity. Unpaired UTF-16 surrogates are also rejected rather than replaced during UTF-8 output; valid supplementary characters, such as emoji, remain supported.

Cells are plain text, not Markdown or HTML. The builder encodes syntax characters so literal pipes, backslashes, backticks and markup stay in their original fields. Each CRLF, bare CR or LF becomes a space; text around line breaks is retained. Other whitespace and literal punctuation are preserved in the rendered cells. The source spec is not modified. An ordinary valid schedule retains its six columns; malformed input is never silently replaced with an empty schedule.

Role table

spec.role selects three strings: the standing-arrangement clause, the fee section title, and the fee clause opener.

RoleWho paysShape of the clause
buyerThe counterparty pays on transactions with introduced partiesCounterparty appoints us on a non-exclusive basis to source and introduce
supplierThe counterparty pays on transactions with introduced parties; where we buy as principal we contract on the schedule termsCounterparty offers capacity to us and to buyers we introduce
mutualWhoever closes with the other's introduction paysEach party may introduce; the closing party pays

Unknown roles are rejected at build time.

Build

Use operator-reviewed templates and specs only. Ordinary template substitutions outside Schedule A are markup-capable, not a sanitizer for untrusted documents. Pandoc can read referenced local or remote resources; this generator does not sandbox the converter's filesystem or network access. Review those references and run conversion in your own appropriately restricted environment. The focused tests use a synthetic converter and do not certify real DOCX layout or isolation.

node skills/master-agreement-generator/scripts/build-agreement.js \
  skills/master-agreement-generator/references/master-template.example.md \
  specs/AcmeSupplier.json \
  out/

The script fills placeholders, renders the schedule table, and writes out/<file> MASTER.md with a mandatory DRAFT notice. By default (or with --require-docx) it requires installed pandoc to produce a nonempty regular .docx artifact. Missing pandoc, failed conversion or missing/empty output returns exit code 1. Each pandoc probe or conversion is bounded to ten seconds. Unknown, duplicate or conflicting flags return exit code 2.

Use --markdown-only explicitly for a successful Markdown-only draft. This mode never probes or invokes pandoc, returns docxSkipped: true from the library, and provides no DOCX for an e-sign workflow. Library callers must pass { markdownOnly: true }; { pandoc: false } alone now fails the DOCX requirement. The result always reports documentStatus: 'draft'. Existing generated DOCX is removed when rebuilding its Markdown, and failed conversion leaves no partial DOCX, so an earlier artifact cannot masquerade as the current output. Keep both generated files out of version control; the template and specs are source.

There is no execution-copy mode. The example deliberately contains unresolved bracketed drafting directives; filling {{PLACEHOLDER}} tokens does not complete those legal provisions. Before preparing an execution document, obtain separate review of the completed clauses, party details, authorized signer, commercial terms and exact document version. Preserve the draft and the reviewed execution copy as distinct records. Even a successful DOCX conversion does not authorize an upload, send or signature. See the esign-field-placement approval workflow.

Both output destinations must be direct children of the resolved output directory. An existing symlink at either destination, including a dangling link, is rejected before either artifact is written, even when DOCX conversion is disabled. Ordinary regular files can be rebuilt. Use an output directory you control; these checks do not provide isolation against concurrent hostile filesystem changes. Returned artifact paths are absolute.

Signature page geometry

The template ends the body with an OpenXML page break so the signature block requests a fresh page in a compatible DOCX renderer:

```{=openxml}
<w:p><w:r><w:br w:type="page"/></w:r></w:p>
```

The signature page structure (our block, then the counterparty block, each with By, Name, Title, Email, Date) is consistent, but pagination can change with text, fonts, renderer or format. Inspect the actual reviewed document and its page geometry before placing fields; see the esign-field-placement skill.

Schedule A append workflow

Use the executed agreement's actual authority and notice requirements:

  1. Review opportunity economics and negotiation strategy in an internal negotiation/approval channel. Obtain commitment approval before sending contractual content. A shared counterparty channel is not an internal channel.
  2. Confirm that the proposed entry, role, terms, fee and effective date fall within the agreement's express Schedule A notice authority. Changes to standing terms, or variations outside that authority, require the applicable amendment procedure; a notice cannot create its own exception.
  3. Draft an approved, counterparty-specific dated notice for the recipient and notice channel authorized by the executed agreement. Include useful business content: the protected counterparty or lot, authorized role, commercial terms and applicable fee. Exclude internal margins, negotiation strategy, other parties' economics, system traces, raw errors and internal filing notices.
  4. File the exact notice for operator approval before sending; see operator-approval-loop. Preserve silence in the counterparty channel while approval or participation authority is absent. Approval is distinct from evidence that an authorized sender actually delivered the notice.
  5. Record the authorized delivery evidence, effective date and any objection under the executed agreement's actual requirements. Example periods are not defaults. Keep the executed document immutable; update the tracked schedule record and rebuild a draft consolidated view for internal review, with a reference to the executed version and approved notice. This rebuild does not replace the signed agreement or prove legal effect.

Examples

Notice text

Illustrative draft only: use these terms and dates solely when the executed agreement authorizes them and the operator approves this exact recipient notice.

Schedule A notice, 2026-09-02
Agreement: Master Agreement dated 2026-08-14 between Us and Acme
Entry 2: Lot B, 8 nodes, region EU-West
Role: introducer
Terms: 6 month term, start no later than 2026-10-01
Fee: standard
This entry takes effect today unless you object within ten business days
with dated written evidence of a prior relationship with the counterparty.

Adding the entry to the spec

"schedule": [
  ["1", "2026-08-20", "Lot A (16 nodes)", "introducer", "12 months", "standard"],
  ["2", "2026-09-02", "Lot B (8 nodes, EU-West)", "introducer", "6 months", "standard"]
]

Rebuild, diff the draft Markdown, and attach the consolidated draft to the internal record alongside the unchanged executed document and notice evidence.

Counterparty fills its own details at signing

For drafting, omit legal, juris, addr, signer, title, email from the spec to render blank lines. A separately reviewed execution workflow must decide which details may be completed by the counterparty and verify the actual fields; the generator does not create or approve an e-sign envelope.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

accessibility

無料日本語概要

Web・iOS・Androidの画面を、読み上げやキーボード操作に対応させ、ラベル、配色、操作対象の大きさなどをWCAG 2.2に沿って設計・点検するスキル。

  • アイコンボタンの説明を付けたいとき
  • キーボード操作とモーダルの点検
  • コントラストや操作対象の大きさの確認
affaan-m/ECC27.8万2026年10月12日 更新

agent-architecture-audit

無料日本語概要

AIエージェントの不調を、指示・記憶・ツール実行・画面表示など12の層から調べるスキル。コードやログを根拠に原因を整理し、重要度順の指摘と修正案をまとめます。

  • アプリ内だけで起きる不調を調べたいとき
  • 過去の会話が混ざる原因を調査
  • ツールの未実行や実行の誤報を確認
affaan-m/ECC27.8万2026年10月12日 更新

agent-eval

無料日本語概要

実際の開発課題で複数のコーディングエージェントを比較するスキル。成功率、取得可能なAPI費用、所要時間、繰り返し実行の安定性を測り、選定や更新後の評価に使えます。

  • 実際の開発課題でエージェントを比較
  • 新しいツールやモデルの導入前評価
  • エージェント更新後の性能確認
affaan-m/ECC27.8万2026年10月12日 更新

agent-harness-construction

無料日本語概要

AIエージェントが使うツールの種類や入出力、エラーからの復帰手順を設計・見直します。文脈の情報量も整理し、作業完了率や再試行回数で改善を評価します。

  • エージェントのツールや入力形式の設計
  • ツールの結果と次の行動を明確にしたいとき
  • 安全な再試行と停止条件を定めたいとき
affaan-m/ECC27.8万2026年10月12日 更新

agent-introspection-debugging

無料日本語概要

AIエージェントが失敗や同じ操作を繰り返す原因を、エラーと実行状況から整理します。小さな復旧操作を試し、結果と根拠を引き継げる報告にまとめるスキルです。

  • エージェントの連続失敗を診断したいとき
  • 同じツール操作のループ調査
  • 情報の蓄積による出力劣化の点検
affaan-m/ECC27.8万2026年10月5日 更新

agent-introspection-debugging

無料日本語概要

AIエージェントの失敗や同じ操作の繰り返しを記録し、原因の切り分け、小さな復旧操作、結果の報告まで進める手順を示して、根拠のある再試行につなげるスキル。

  • 同じツール操作を繰り返す原因の調査
  • 会話の肥大化による品質低下の調査
  • ファイルパスや環境の食い違いの確認
affaan-m/ECC27.8万2026年10月12日 更新

affaan-m のスキルをすべて見る

このスキルの問題を報告する