{"id":"9918108d-8e83-4291-a96e-d8897d5762c1","shortId":"StxNEm","kind":"skill","title":"edit-docx-agreement","tagline":">-","description":"# edit-docx-agreement\n\nUse this skill when a user asks for **custom edits that are not exposed as template fields** in an OpenAgreements-generated (or any existing) DOCX agreement.\n\n> **Interactivity note**: Always ask the user for missing inputs (file path, change intent, output preferences).\n\n## Security model\n\nThis skill bridges two separate systems:\n- **OpenAgreements** (remote MCP or local CLI) — for template filling. Follows the OpenAgreements zero-download security model.\n- **Safe Docx** (local MCP server) — for surgical DOCX editing. Requires separate setup. This is **not** part of the OpenAgreements skill set and has its own trust/security model.\n\nThe agent must have Safe Docx MCP tools available to perform edits. If Safe Docx tools are not detected, inform the user and provide setup guidance (see Connectors).\n\n## Decision rule: refill vs edit vs both\n\n1. **Field-only changes** (e.g., party name, date, amount, valuation cap):\n   Re-run OpenAgreements `fill_template` with the updated field values. No Safe Docx needed.\n\n2. **Boilerplate-only changes** (e.g., custom clause, modified standard language):\n   Use Safe Docx MCP tools to surgically edit the existing DOCX.\n\n3. **Mixed changes** (field updates + bespoke edits):\n   Re-fill via OpenAgreements first (to get a clean base with updated fields), save the output locally, then use Safe Docx to apply bespoke edits on the fresh file.\n\n## Execution\n\n### Step 0: Confirm you have a local .docx file path\n\n- If OpenAgreements was run via remote MCP, the fill response returns a download URL (with `expires_at`). Save the DOCX to a local path immediately.\n- If the download link has expired, re-run `fill_template` to get a fresh URL.\n- If OpenAgreements was run via local CLI, use the output file path directly.\n\n### Step 1: Verify Safe Docx MCP is available\n\nCheck whether Safe Docx tools (e.g., `read_file`, `replace_text`, `apply_plan`) are available in the current session.\n\n- **If available**: proceed to Step 2.\n- **If not available**: inform the user that Safe Docx MCP is required for bespoke edits and provide setup instructions from [CONNECTORS.md](./CONNECTORS.md). Stop here until the user configures it.\n\n### Step 2: Apply the decision rule\n\nFollow the routing logic above (field-only / boilerplate-only / mixed).\n\nFor Safe Docx edits:\n- Use `read_file` to locate target paragraphs\n- Use `replace_text` or `insert_paragraph` for surgical changes\n- Use `apply_plan` for batch edits (fails safely if any step is invalid)\n- Re-read edited paragraphs to verify changes\n\n### Step 3: Deliver reviewable outputs\n\nUse Safe Docx `download` to save:\n- A **tracked-changes** DOCX for legal review\n- A **clean** DOCX for signing (optional but recommended)\n\nSummarize edits for the user (paragraph IDs, before/after text).\n\n## Licensing note\n\nSome templates (notably YC SAFEs) are licensed under CC-BY-ND-4.0. You can fill them for your own use but must not redistribute modified versions of the template itself. The filled output may constitute an \"adapted work\" — do not redistribute your filled output publicly without reviewing the license terms. See `docs/licensing.md` for details.\n\nThis tool does not provide legal advice — consult an attorney.\n\n## Connectors\n\nFor MCP server setup (OpenAgreements remote MCP + Safe Docx local MCP), see [CONNECTORS.md](./CONNECTORS.md).","tags":["edit","docx","agreement","open","agreements","open-agreements","agent-skills","anthropic","claude","claude-code","claude-code-cli","claude-code-commands"],"capabilities":["skill","source-open-agreements","skill-edit-docx-agreement","topic-agent-skills","topic-anthropic","topic-claude","topic-claude-code","topic-claude-code-cli","topic-claude-code-commands","topic-claude-code-plugin","topic-claude-code-plugins","topic-claude-code-skills","topic-claude-code-subagents","topic-claude-skills","topic-contract-automation"],"categories":["open-agreements"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/open-agreements/open-agreements/edit-docx-agreement","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add open-agreements/open-agreements","source_repo":"https://github.com/open-agreements/open-agreements","install_from":"skills.sh"}},"qualityScore":"0.465","qualityRationale":"deterministic score 0.47 from registry signals: · indexed on github topic:agent-skills · 31 github stars · SKILL.md body (3,351 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-01T12:57:25.571Z","embedding":null,"createdAt":"2026-04-18T22:22:42.673Z","updatedAt":"2026-05-01T12:57:25.571Z","lastSeenAt":"2026-05-01T12:57:25.571Z","tsv":"'/connectors.md':342,526 '0':226 '1':138,290 '2':165,320,351 '3':187,410 '4.0':459 'adapt':484 'advic':508 'agent':104 'agreement':4,8,35 'alway':38 'amount':147 'appli':217,307,352,389 'ask':15,39 'attorney':511 'avail':111,296,310,316,323 'base':204 'batch':392 'before/after':443 'bespok':192,218,334 'boilerpl':167,365 'boilerplate-on':166,364 'bridg':55 'cap':149 'cc':456 'cc-by-nd':455 'chang':47,142,169,189,387,408,423 'check':297 'claus':172 'clean':203,429 'cli':64,282 'configur':348 'confirm':227 'connector':130,512 'connectors.md':341,525 'constitut':482 'consult':509 'current':313 'custom':17,171 'date':146 'decis':131,354 'deliv':411 'detail':501 'detect':121 'direct':288 'docs/licensing.md':499 'docx':3,7,34,77,83,108,117,163,178,186,215,232,254,293,300,329,370,416,424,430,521 'download':73,247,262,417 'e.g':143,170,302 'edit':2,6,18,84,114,135,183,193,219,335,371,393,404,437 'edit-docx-agr':1,5 'execut':224 'exist':33,185 'expir':250,265 'expos':22 'fail':394 'field':25,140,159,190,207,362 'field-on':139,361 'file':45,223,233,286,304,374 'fill':67,154,196,243,269,462,479,490 'first':199 'follow':68,356 'fresh':222,274 'generat':30 'get':201,272 'guidanc':128 'id':442 'immedi':259 'inform':122,324 'input':44 'insert':383 'instruct':339 'intent':48 'interact':36 'invalid':400 'languag':175 'legal':426,507 'licens':445,453,496 'link':263 'local':63,78,211,231,257,281,522 'locat':376 'logic':359 'may':481 'mcp':61,79,109,179,241,294,330,514,519,523 'miss':43 'mix':188,367 'model':52,75,102 'modifi':173,472 'must':105,469 'name':145 'nd':458 'need':164 'notabl':449 'note':37,446 'openagr':29,59,70,94,153,198,236,277,517 'openagreements-gener':28 'option':433 'output':49,210,285,413,480,491 'paragraph':378,384,405,441 'part':91 'parti':144 'path':46,234,258,287 'perform':113 'plan':308,390 'prefer':50 'proceed':317 'provid':126,337,506 'public':492 're':151,195,267,402 're-fil':194 're-read':401 're-run':150,266 'read':303,373,403 'recommend':435 'redistribut':471,488 'refil':133 'remot':60,240,518 'replac':305,380 'requir':85,332 'respons':244 'return':245 'review':412,427,494 'rout':358 'rule':132,355 'run':152,238,268,279 'safe':76,107,116,162,177,214,292,299,328,369,395,415,451,520 'save':208,252,419 'secur':51,74 'see':129,498,524 'separ':57,86 'server':80,515 'session':314 'set':96 'setup':87,127,338,516 'sign':432 'skill':11,54,95 'skill-edit-docx-agreement' 'source-open-agreements' 'standard':174 'step':225,289,319,350,398,409 'stop':343 'summar':436 'surgic':82,182,386 'system':58 'target':377 'templat':24,66,155,270,448,476 'term':497 'text':306,381,444 'tool':110,118,180,301,503 'topic-agent-skills' 'topic-anthropic' 'topic-claude' 'topic-claude-code' 'topic-claude-code-cli' 'topic-claude-code-commands' 'topic-claude-code-plugin' 'topic-claude-code-plugins' 'topic-claude-code-skills' 'topic-claude-code-subagents' 'topic-claude-skills' 'topic-contract-automation' 'track':422 'tracked-chang':421 'trust/security':101 'two':56 'updat':158,191,206 'url':248,275 'use':9,176,213,283,372,379,388,414,467 'user':14,41,124,326,347,440 'valu':160 'valuat':148 'verifi':291,407 'version':473 'via':197,239,280 'vs':134,136 'whether':298 'without':493 'work':485 'yc':450 'zero':72 'zero-download':71","prices":[{"id":"848fd1d1-9fc6-4110-b8a4-9ccbca8c8dd4","listingId":"9918108d-8e83-4291-a96e-d8897d5762c1","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"open-agreements","category":"open-agreements","install_from":"skills.sh"},"createdAt":"2026-04-18T22:22:42.673Z"}],"sources":[{"listingId":"9918108d-8e83-4291-a96e-d8897d5762c1","source":"github","sourceId":"open-agreements/open-agreements/edit-docx-agreement","sourceUrl":"https://github.com/open-agreements/open-agreements/tree/main/skills/edit-docx-agreement","isPrimary":false,"firstSeenAt":"2026-04-18T22:22:42.673Z","lastSeenAt":"2026-05-01T12:57:25.571Z"}],"details":{"listingId":"9918108d-8e83-4291-a96e-d8897d5762c1","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"open-agreements","slug":"edit-docx-agreement","github":{"repo":"open-agreements/open-agreements","stars":31,"topics":["agent-skills","anthropic","claude","claude-code","claude-code-cli","claude-code-commands","claude-code-plugin","claude-code-plugins","claude-code-skills","claude-code-subagents","claude-skills","contract-automation","docx","gemini-cli-extension","legal-tech","legal-templates","nda-template","open-source-legal","safe-template"],"license":"mit","html_url":"https://github.com/open-agreements/open-agreements","pushed_at":"2026-04-30T21:31:08Z","description":"Fill standard legal agreement templates and produce signable DOCX files. 25 templates covering NDAs, cloud terms, SAFEs, and NVCA financing documents.","skill_md_sha":"6d2378d9117566e38cdbc5f12bed67cf324cdb07","skill_md_path":"skills/edit-docx-agreement/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/open-agreements/open-agreements/tree/main/skills/edit-docx-agreement"},"layout":"multi","source":"github","category":"open-agreements","frontmatter":{"name":"edit-docx-agreement","license":"MIT","description":">-","compatibility":">-"},"skills_sh_url":"https://skills.sh/open-agreements/open-agreements/edit-docx-agreement"},"updatedAt":"2026-05-01T12:57:25.571Z"}}