简介
eSign Automation
原始描述
Automate contract signing, esign, and signature workflows by calling the eSignGlobal CLI tool. The eSignGlobal CLI is agent-friendly, with JSON output by def...
通过你的 Agent 添加
安装目录:esign-automation/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: esign-automation
description: Automate contract signing, esign, and signature workflows by calling the eSignGlobal CLI tool. The eSignGlobal CLI is agent-friendly, with JSON output by default, making eSignGlobal signing operations easy to parse and chain. Supports sending envelopes, querying envelope details, sending reminders, cancelling envelopes, downloading signed files, and verifying PDF signatures locally.
metadata: {"openclaw":{"primaryEnv":"ESIGNGLOBAL_APIKEY"}}
version: 1.7.0
homepage: https://github.com/esign-cn-open-source/skills
eSign Automation
This skill provides automation capabilities for the eSignGlobal electronic signature platform. It enables AI agents to automate document signing workflows and integrate with eSignGlobal APIs. This skill is maintained by the eSignGlobal team and is intended for safe automation of contract signing workflows.
Best For
Use this skill when the user wants to:
- send a contract, agreement, or approval form for signature
- launch a new e-sign workflow from a local file
- send one document to one or more recipients for signing
- query the status and details of an envelope
- send a reminder to signers who have not yet signed
- cancel an in-progress envelope
- download signed documents or certificates after an envelope is completed
- check what files are available for a completed envelope
- verify or validate signatures in a signed PDF file
- check whether a PDF has been tampered with after signing
- inspect signer identity, signing time, or certificate details in a PDF
Example requests:
- "Send this contract to John for signature"
- "Start a signing workflow for this PDF"
- "Send this agreement to Alice and Bob"
- "What is the status of envelope abc123?"
- "Who has signed and who is still pending for this envelope?"
- "Remind the signers of envelope abc123 to sign"
- "Cancel envelope abc123, the signer info was wrong"
- "Download the signed files for envelope abc123"
- "Get me the signed PDF and certificate for this envelope"
- "Verify the signatures in this PDF"
- "Check if this signed PDF has been tampered with"
- "Who signed this document and when?"
Installation
Use the external CLI through npx:
npx @esignglobal/envelope-cli <command>
Setup
Before calling any send action, set ESIGNGLOBAL_APIKEY in the shell environment.
If the user does not already have an api key, direct them to:
- Sign in at
https://www.esignglobal.com - Open
Settings -> Integration -> Apps - Create an application and copy the generated api key
# Windows PowerShell
$env:ESIGNGLOBAL_APIKEY="your_api_key"
# macOS / Linux
export ESIGNGLOBAL_APIKEY="your_api_key"
# Verify connectivity
npx @esignglobal/envelope-cli config health
Credential handling rules:
- The CLI reads credentials only from
ESIGNGLOBAL_APIKEY - Do not implement local credential storage inside this skill
- Do not print or persist secrets
External CLI Pattern
Use the external command-line tool instead of bundled scripts:
npx @esignglobal/envelope-cli send-envelope --file <filePath> --signers '<signersJson>' [--subject <subject>] --confirm
npx @esignglobal/envelope-cli get-envelope --envelope-id <envelopeId>
npx @esignglobal/envelope-cli urge-envelope --envelope-id <envelopeId>
npx @esignglobal/envelope-cli cancel-envelope --envelope-id <envelopeId> --reason <reason> --confirm
npx @esignglobal/envelope-cli download-envelope --envelope-id <envelopeId> --type list
npx @esignglobal/envelope-cli verify-signature --file <filePath>
Check available commands if needed:
npx @esignglobal/envelope-cli help
Send envelope example
npx @esignglobal/envelope-cli send-envelope --file "C:\\docs\\contract.pdf" --signers '[{"userName":"Bob Smith","userEmail":"bob@example.com"}]' --subject "Please sign this contract" --confirm
Get envelope example
npx @esignglobal/envelope-cli get-envelope --envelope-id abc123
Urge envelope example
# Send a reminder to pending signers (rate limit: once per 30 minutes per envelope)
npx @esignglobal/envelope-cli urge-envelope --envelope-id abc123
Cancel envelope example
npx @esignglobal/envelope-cli cancel-envelope --envelope-id abc123 --reason "Signer information was incorrect." --confirm
Download example
# List signed files and their individual download URLs (requires envelope to be completed)
npx @esignglobal/envelope-cli download-envelope --envelope-id abc123 --type list
Verify signature example
npx @esignglobal/envelope-cli verify-signature --file "/tmp/signed_contract.pdf"
Required Configuration
- Node.js 18 or later
- Access to the trusted external CLI, either preinstalled or available through
npx
ESIGNGLOBAL_APIKEY must already be configured in the shell environment
Send envelope Workflow
- Collect a single absolute
filePath, signer list, and optional subject
- Confirm the file is a
.pdf and the signer data is complete
- Set
ESIGNGLOBAL_APIKEY in the current shell session
- Run the external CLI command to send the envelope
- Return the CLI result to the user
Safety Rules
- Only use a file path the user explicitly provided for this task
- Only handle one local PDF file per run
- Refuse relative paths; require an absolute path to a
.pdf file
- Reject any non-PDF file before invoking the CLI
- Never print or persist secrets
- Do not scan directories, expand globs, or discover files on the user's behalf
- Only call the trusted eSignGlobal CLI configured for this environment
Required Inputs
filePath: absolute path to an existing local PDF file
signers: JSON array of signer objects
subject: optional email or envelope subject
npx @esignglobal/envelope-cli send-envelope --file "C:\\docs\\contract.pdf" --signers '[{"userName":"Bob Smith","userEmail":"bob@example.com"}]' --subject "Please sign this contract" --confirm
npx @esignglobal/envelope-cli get-envelope --envelope-id abc123
Urge envelope example
# Send a reminder to pending signers (rate limit: once per 30 minutes per envelope)
npx @esignglobal/envelope-cli urge-envelope --envelope-id abc123
Cancel envelope example
npx @esignglobal/envelope-cli cancel-envelope --envelope-id abc123 --reason "Signer information was incorrect." --confirm
Download example
# List signed files and their individual download URLs (requires envelope to be completed)
npx @esignglobal/envelope-cli download-envelope --envelope-id abc123 --type list
Verify signature example
npx @esignglobal/envelope-cli verify-signature --file "/tmp/signed_contract.pdf"
Required Configuration
- Node.js 18 or later
- Access to the trusted external CLI, either preinstalled or available through
npx
ESIGNGLOBAL_APIKEY must already be configured in the shell environment
Send envelope Workflow
- Collect a single absolute
filePath, signer list, and optional subject
- Confirm the file is a
.pdf and the signer data is complete
- Set
ESIGNGLOBAL_APIKEY in the current shell session
- Run the external CLI command to send the envelope
- Return the CLI result to the user
Safety Rules
- Only use a file path the user explicitly provided for this task
- Only handle one local PDF file per run
- Refuse relative paths; require an absolute path to a
.pdf file
- Reject any non-PDF file before invoking the CLI
- Never print or persist secrets
- Do not scan directories, expand globs, or discover files on the user's behalf
- Only call the trusted eSignGlobal CLI configured for this environment
Required Inputs
filePath: absolute path to an existing local PDF file
signers: JSON array of signer objects
subject: optional email or envelope subject
# Send a reminder to pending signers (rate limit: once per 30 minutes per envelope)
npx @esignglobal/envelope-cli urge-envelope --envelope-id abc123
npx @esignglobal/envelope-cli cancel-envelope --envelope-id abc123 --reason "Signer information was incorrect." --confirm
Download example
# List signed files and their individual download URLs (requires envelope to be completed)
npx @esignglobal/envelope-cli download-envelope --envelope-id abc123 --type list
Verify signature example
npx @esignglobal/envelope-cli verify-signature --file "/tmp/signed_contract.pdf"
Required Configuration
- Node.js 18 or later
- Access to the trusted external CLI, either preinstalled or available through
npx
ESIGNGLOBAL_APIKEY must already be configured in the shell environment
Send envelope Workflow
- Collect a single absolute
filePath, signer list, and optional subject
- Confirm the file is a
.pdf and the signer data is complete
- Set
ESIGNGLOBAL_APIKEY in the current shell session
- Run the external CLI command to send the envelope
- Return the CLI result to the user
Safety Rules
- Only use a file path the user explicitly provided for this task
- Only handle one local PDF file per run
- Refuse relative paths; require an absolute path to a
.pdf file
- Reject any non-PDF file before invoking the CLI
- Never print or persist secrets
- Do not scan directories, expand globs, or discover files on the user's behalf
- Only call the trusted eSignGlobal CLI configured for this environment
Required Inputs
filePath: absolute path to an existing local PDF file
signers: JSON array of signer objects
subject: optional email or envelope subject
# List signed files and their individual download URLs (requires envelope to be completed)
npx @esignglobal/envelope-cli download-envelope --envelope-id abc123 --type list
npx @esignglobal/envelope-cli verify-signature --file "/tmp/signed_contract.pdf"
Required Configuration
- Node.js 18 or later
- Access to the trusted external CLI, either preinstalled or available through
npx
ESIGNGLOBAL_APIKEY must already be configured in the shell environment
Send envelope Workflow
- Collect a single absolute
filePath, signer list, and optional subject
- Confirm the file is a
.pdf and the signer data is complete
- Set
ESIGNGLOBAL_APIKEY in the current shell session
- Run the external CLI command to send the envelope
- Return the CLI result to the user
Safety Rules
- Only use a file path the user explicitly provided for this task
- Only handle one local PDF file per run
- Refuse relative paths; require an absolute path to a
.pdf file
- Reject any non-PDF file before invoking the CLI
- Never print or persist secrets
- Do not scan directories, expand globs, or discover files on the user's behalf
- Only call the trusted eSignGlobal CLI configured for this environment
Required Inputs
npxESIGNGLOBAL_APIKEY must already be configured in the shell environment- Collect a single absolute
filePath, signer list, and optionalsubject - Confirm the file is a
.pdfand the signer data is complete - Set
ESIGNGLOBAL_APIKEYin the current shell session - Run the external CLI command to send the envelope
- Return the CLI result to the user
Safety Rules
.pdf filefilePath: absolute path to an existing local PDF filesigners: JSON array of signer objectssubject: optional email or envelope subject
Each signer must include:
userNameuserEmail
Optional field:
signOrderas an integer>= 1
filePath
filePath must be an absolute path to an existing local PDF file.
Example:
/tmp/contract.pdf
signers
Each signer must include:
userNameuserEmail
Optional field:
signOrder(integer, minimum1)
Single signer example:
[
{
"userName": "Bob Smith",
"userEmail": "bob@example.com"
}
]
Sequential signing example:
[
{
"userName": "Bob Smith",
"userEmail": "bob@example.com",
"signOrder": 1
},
{
"userName": "Alice Jones",
"userEmail": "alice@example.com",
"signOrder": 2
}
]
Parallel signing example:
[
{
"userName": "Bob Smith",
"userEmail": "bob@example.com",
"signOrder": 1
},
{
"userName": "Alice Jones",
"userEmail": "alice@example.com",
"signOrder": 1
}
]
Get Envelope Workflow
- Obtain the
envelopeId from the user or a previous send-envelope response
- Run
get-envelope to retrieve full envelope details
- Present the status, signer progress, and document list to the user using the Get Envelope Output Format below
envelopeId from the user or a previous send-envelope responseget-envelope to retrieve full envelope detailsEnvelope status codes: 0=Draft, 1=In Progress, 2=Completed, 3=Expired, 4=Declined, 5=Canceled
Signer status codes: 0=Pending, 1=Signing, 2=Signed
Get Envelope Output Format
Always present get-envelope results using this exact template:
🔍 Contract Details: [subject]
Current Status: [envelope_status_icon] [envelope_status_label]
Signing Progress:
● [icon] Initiator: [initiator.userName] ([initiator_status_label])
● [icon] Signer N: [userName] ([signer_status_label]) [bottleneck_marker]
● [icon] CC: [ccName] ([cc_status_label])
Envelope status icon and label mapping:
| Code | Icon | Label |
|---|---|---|
| 0 | ⚪ | Draft |
| 1 | ⏳ | Waiting for Others |
| 2 | ✅ | Completed |
| 3 | ❌ | Expired |
| 4 | ❌ | Declined |
| 5 | ❌ | Canceled |
Initiator: always show as ✅ Sent
Signer status icon and label mapping:
| Code | Icon | Label |
|---|---|---|
| 0 | ⚪ | Pending |
| 1 | ⏳ | Signing |
| 2 | ✅ | Signed |
Bottleneck marker: append <- Current Bottleneck to the first signer whose status is 0 (Pending) or 1 (Signing) when the envelope is In Progress.
CC status: always show as ⚪ Pending Sync if envelope is not yet Completed, ✅ Synced if Completed.
Rules:
- Omit the CC row if
ccInfosis empty - Number signers sequentially: Signer 1, Signer 2, …
- Use
[subject]from the envelope response as the file name - Always use this format — never use a table or other layout for
get-envelopeoutput
Urge Envelope Workflow
- Confirm the envelope is in progress (status
1) before sending a reminder
- Run
urge-envelope to notify all pending signers
- Inform the user that reminders are rate-limited to once every 30 minutes per envelope
Cancel Envelope Workflow
- Confirm the reason for cancellation with the user before proceeding
- Run
cancel-envelope with --confirm — cancellation is irreversible
- After cancellation the envelope is suspended and all signatures within it are invalid
Download Workflow
- Obtain the
envelopeId from a previous send-envelope response or from the user
- Run
--type list to check envelope status and retrieve individual file download URLs
- If
envelopeStatus is 2 (Completed), share the downloadUrl for each file with the user
- If the envelope is not yet completed, inform the user and wait
1) before sending a reminderurge-envelope to notify all pending signers- Confirm the reason for cancellation with the user before proceeding
- Run
cancel-envelopewith--confirm— cancellation is irreversible - After cancellation the envelope is suspended and all signatures within it are invalid
Download Workflow
- Obtain the
envelopeId from a previous send-envelope response or from the user
- Run
--type list to check envelope status and retrieve individual file download URLs
- If
envelopeStatus is 2 (Completed), share the downloadUrl for each file with the user
- If the envelope is not yet completed, inform the user and wait
envelopeId from a previous send-envelope response or from the user--type list to check envelope status and retrieve individual file download URLsenvelopeStatus is 2 (Completed), share the downloadUrl for each file with the userEnvelope status codes: 0=Draft, 1=Signing, 2=Completed, 3=Expired, 4=Rejected, 5=Voided
File types in the list response:
CONTRACT— the signed documentCERTIFICATE— the signing audit certificateATTACHMENT— any attachmentsCOMBINED— merged PDF (if enabled on the account)
Individual file download URLs are valid for 60 minutes. Download can only proceed when the envelope is Completed.
Verify Signature Workflow
- Obtain an absolute path to a local PDF file from the user
- Run
verify-signature — no API key required, verification runs entirely offline
- Parse and present the JSON result to the user
verify-signature — no API key required, verification runs entirely offlineThe command outputs:
integrity—true(unmodified) /false(tampered) /null(unknown)signatureCount— number of signatures found- Per-signature fields:
isValid—true/false/nullsigner— common name from the signing certificatedeclaredTime— signing time (trusted timestamp preferred over local clock), UTC+08:00signatureAlgorithm— e.g.RSA / SHA-256timestampIssuer— TSA certificate issuer, or"Local time"when no trusted timestamp is presentcertificate.serialNumber,certificate.validFrom,certificate.validUntil
verify-signatureworks fully offline and does not requireESIGNGLOBAL_APIKEY.
Output
Return the external CLI result. Do not bundle or implement upload logic inside this skill.
Verify Signature Output Format
Present each signature using this exact template:
**Signature is VALID**
(or **Signature is INVALID** / **Signature status unknown** )
**Signer:**
{signer}
**Signing Time:**
{declaredTime}
**Signature Time Source:**
{timestampIssuer}
**Signature Algorithm:**
{signatureAlgorithm}
---
**Signer Certificate**
**Serial Number:**
{certificate.serialNumber}
**Valid From:**
{certificate.validFrom}
**Valid Until:**
{certificate.validUntil}
Rules:
- Use no emoji for
isValid === trueorisValid === false;` - Repeat the block for each signature if
signatureCount > 1 - If
signatureCount === 0, output: "No signatures found in this PDF"
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。