- name
- generate-nda
- description
- Generate a Non-Disclosure Agreement (NDA) — PDF Arguments: [--type <mutual|unilateral>] [--party1 <name>] [--party2 <name>].
# Generate NDA
Follow the `document-rules` skill (`${CLAUDE_PLUGIN_ROOT}/skills/document-rules/SKILL.md`) and the `document-generator` skill (`${CLAUDE_PLUGIN_ROOT}/skills/document-generator/SKILL.md`): the first holds the mandatory rules, the second the generation process. Read both before Step 1.
Generate a professional Non-Disclosure Agreement with standard legal clauses and signature blocks.
## Arguments
Format: `[--type <mutual|unilateral>] [--party1 <name>] [--party2 <name>]`
- --type: NDA type -- mutual (default, both parties bound) or unilateral (one-way)
- --party1: Disclosing party name (optional)
- --party2: Receiving party name (optional)
Parse from "$ARGUMENTS".
## Process
1. **Plugin directory:**
Scripts and templates live under `${CLAUDE_PLUGIN_ROOT}` (Claude Code substitutes it with the installed plugin path). Use it as is; do not search for the plugin.
2. **Check dependencies:**
```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/check_deps.js"
```
If `ready` is false, show what is missing and ask permission to run the listed `installCommands`. (`ready` covers Node, the npm modules and the Playwright browser; pandoc and the PDF engines are optional extras listed in `missing`.)
3. **Gather required data from user:**
- NDA type: mutual (default) or unilateral
- Date and jurisdiction (governing law)
- Party 1 (Disclosing Party): name, address, representative, title
- Party 2 (Receiving Party): name, address, representative, title
- Optional customization:
- Definition of confidential information (default provided)
- Term duration (default: 2 years)
- Survival period (default: 3 years)
- Additional clauses
- Most clauses have professional defaults -- only ask for party info and customizations
4. **Read template:**
```bash
cat "${CLAUDE_PLUGIN_ROOT}/templates/nda_template.json"
```
5. **Build JSON input:**
Set `"type": "nda"` and `"ndaType": "mutual"` or `"unilateral"`.
Default clauses are built-in -- only override if user requests specific wording.
Write to `.doc_input.json`.
6. **Generate PDF:**
```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/generate_pdf.js" /absolute/path/.doc_input.json
```
7. **Deliver result:**
Show file path and size. Remind user this is a template -- recommend legal review before signing.
## Example Usage
```
/document-generator-ops:generate-nda --type mutual --party1 "Acme Corp" --party2 "TechStart Inc"
/document-generator-ops:generate-nda --type unilateral
/document-generator-ops:generate-nda
```
View on GitHub