AgentStack
SKILL verified Apache-2.0 Self-run

Edit Docx Agreement

skill-open-agreements-open-agreements-edit-docx-agreement · by open-agreements

>-

No reviews yet
0 installs
8 views
0.0% view→install

Install

$ agentstack add skill-open-agreements-open-agreements-edit-docx-agreement

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Edit Docx Agreement? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

edit-docx-agreement

Use 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.

> Interactivity note: Always ask the user for missing inputs (file path, change intent, output preferences).

Security model

This skill bridges two separate systems:

  • OpenAgreements (remote MCP or local CLI) — for template filling. Follows the OpenAgreements zero-download security model.
  • 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.

The 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).

Decision rule: refill vs edit vs both

  1. Field-only changes (e.g., party name, date, amount, valuation cap):

Re-run OpenAgreements fill_template with the updated field values. No Safe Docx needed.

  1. Boilerplate-only changes (e.g., custom clause, modified standard language):

Use Safe Docx MCP tools to surgically edit the existing DOCX.

  1. Mixed changes (field updates + bespoke edits):

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.

Execution

Step 0: Confirm you have a local .docx file path

  • 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.
  • If the download link has expired, re-run fill_template to get a fresh URL.
  • If OpenAgreements was run via local CLI, use the output file path directly.

Step 1: Verify Safe Docx MCP is available

Check whether Safe Docx tools (e.g., read_file, replace_text, apply_plan) are available in the current session.

  • If available: proceed to Step 2.
  • 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.

Step 2: Apply the decision rule

Follow the routing logic above (field-only / boilerplate-only / mixed).

For Safe Docx edits:

  • Use read_file to locate target paragraphs
  • Use replace_text or insert_paragraph for surgical changes
  • Use apply_plan for batch edits (fails safely if any step is invalid)
  • Re-read edited paragraphs to verify changes

Step 3: Deliver reviewable outputs

Use Safe Docx download to save:

  • A tracked-changes DOCX for legal review
  • A clean DOCX for signing (optional but recommended)

Summarize edits for the user (paragraph IDs, before/after text).

Licensing note

Some 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.

This tool does not provide legal advice — consult an attorney.

Connectors

For MCP server setup (OpenAgreements remote MCP + Safe Docx local MCP), see [CONNECTORS.md](./CONNECTORS.md).

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.