契約書レビュー
今すぐ試せる台本どおりのモデルで検証済み自社の審査基準と照らし、条項ごとのリスクと修正案を示す。
誰向けか
法務・コンプライアンスの担当者
処理の流れ
- 受け取る:依頼を受ける
- 調べる:契約書・規約、自社の審査基準、法令・ガイドライン
- 判断する:根拠を添えて案を作る
- 人が確認する:書き込みは承認を待てる
- 書き込む:確認された内容だけ
つなぐシステム
- Files
- Word
安全のために
- 頼んだ人の権限の範囲でだけ動く
サインイン状態を確認しています…
プレビュー
サンプル株式会社のエージェントです。内容を確認しました。承認が必要な操作は、確認をお待ちしてから進めます。
- 会社名
- サンプル株式会社
- 承認ルール
- すべての書き込みで承認を待つ
- 口調
- 丁寧
- 返信の言語
- 日本語
- つなぐシステム
- Files
使っている機能
- 本人の権限で実行
- ファイルの読み取り
- 構造化された出力
実際のソース
tests/gallery/contract-review/agents/contract-review.ts
import { builtinSkill, defineAgent, files, skill } from '@indx-workspace/sdk/define';
export default defineAgent({
name: 'contract-review',
instructions: { file: './contract-review.md' },
model: 'default',
// A run is unattended: without autoApprove the SDK stops the skill script's call on an approval prompt.
// The one thing legal decides is the redline: the agent saves it with `Write`, and the run waits
// there for an approval (ADR-0145) before the Word file is made. Every other file is written by a
// script, so that `Write` is the run's only gated call.
engine: {
id: 'claude-agent-sdk',
autoApprove: ['mcp__agent-workspace__run_skill_script', 'mcp__agent-workspace__search_files'],
requireApproval: ['Write'],
},
// office-reader turns the draft into paragraphs JSON in `drafts` (the one read-write scratch
// grant); contract-playbook checks that JSON, and once legal approves the redline, office-reader
// writes the redlined copy to `outputs/` (the folder the run collects; the backend reads it back
// with `runs.outputs`). It reaches no network. `runCommands` is what offers `run_skill_script`.
// A question about a playbook rule is answered with the platform's `search_files` over the granted
// `playbook` folder: no index and no connector of ours.
permissions: { readFiles: true, writeFiles: true, runCommands: true },
// Pinned to revision 1 of the playbook (`aw skills publish`): each review's run names this
// version, and the version names the rules that applied, so a later edit cannot change the answer.
skills: [builtinSkill('office-reader'), skill('contract-playbook', { revision: 1 })],
files: [files('contracts', 'read'), files('playbook', 'read'), files('drafts', 'read-write')],
limits: { maxTurns: 20, maxBudgetUsd: 1 },
});ファイル構成
agent-workspace.yaml
agents/
contract-review.md
contract-review.ts
backend/
review.ts
benchmark.ts
contract-review.access.test-support.ts
contract-review.approval.test-support.ts
contract-review.definition.test-support.ts
contract-review.fixture.test-support.ts
contract-review.playbook.test-support.ts
contract-review.test.ts
data/
access.json
contracts/
drafts/
drafts.ts
playbook/
evals/
contract-review.yaml
skills/
contract-playbook/
surfaces/
legal-desk.ts