Skip to main content
command CX Codex official · Anthropic

sign — Claude Code command: what it does and how to install

This Claude Code command places a signature or initials image in a PDF. It can use a detected signature field or a location specified for the page.

Apache-2.0 ★ 36,654 updated 2026-10-24

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add anthropics/knowledge-work-plugins
/plugin install pdf-viewer@knowledge-work-plugins
Open on GitHub

What sign does

The command adds a signature or initials to a PDF as an image annotation. It opens the document and looks for signature fields with page coordinates. If none is found, the agent asks which page and location to use.

The workflow needs a PNG or JPG image and PDF viewing and editing tools. After placing the annotation, the command captures the page for review; its position can then be adjusted. The image source can be a local path or an HTTPS URL, but not a data: URI.

This places a visual image, not a certified or cryptographic digital signature. To add initials throughout a document, the command can create one image annotation per page.

What it helps with

  • add a signature image to a PDF field
  • place initials at a chosen point on a page
  • check signature placement in a page screenshot
  • add initials across every page of a PDF

Example prompts for the agent

  • Add the signature from signature.png to the signature field in contract.pdf.
  • Place the initials from initials.jpg at the bottom right of page three in form.pdf.
  • Add my initials to every page of document.pdf.

How to install sign

1Plugin marketplace

/plugin marketplace add anthropics/knowledge-work-plugins
/plugin install pdf-viewer@knowledge-work-plugins

2Manually: put the files in place

.claude/commands/sign.md

Call it with /sign. For all projects use ~/.claude/commands/

Questions about sign

How do I install sign in Claude Code?

Run /plugin marketplace add anthropics/knowledge-work-plugins, then /plugin install pdf-viewer@knowledge-work-plugins.

What does sign do?

It places a signature or initials image in a PDF as an annotation, then captures the page so the placement can be checked.

Which image formats does sign accept?

Use a local PNG or JPG file, or an HTTPS URL. data: URIs are not accepted.

Source text

sign.md · Apache-2.0
---
description: Place a signature or initials image on a PDF
argument-hint: "[path-or-url] [signature-image-path]"
---

> If you need to check which tools are connected, see [CONNECTORS.md](../CONNECTORS.md).

# Sign PDF

Add a visual signature or initials to a document using an image
annotation.

> **Disclaimer:** This places your signature **image** on the page. It
> is **not** a certified or cryptographic digital signature. For
> legally binding e-signatures, use a dedicated signing service.

## Workflow

1. **Get the signature image** — ask the user for a local file path
   (PNG/JPG) to their signature or initials. If they don't have one,
   suggest they create one and save it to a known path.

2. **Open the PDF** — `display_pdf` (or reuse existing `viewUUID`).
   Check the returned `formFields` for signature-type fields — they
   include page and bounding-box coordinates.

3. **Locate the target** — if there's a signature field, use its
   coordinates. Otherwise ask: "Which page, and where on the page?
   (e.g., bottom-right of page 3)"

4. **Place it** — `interact` → `add_annotations`:
   ```json
   {"action": "add_annotations", "annotations": [
     {"id": "sig1", "type": "image", "page": 3,
      "imageUrl": "/path/to/signature.png",
      "x": 400, "y": 700, "width": 150}
   ]}
   ```
   Width/height auto-detected from the image if omitted.

5. **Verify** — follow with `get_screenshot` of that page. Show the
   user. Adjust position if needed via `update_annotations`.

6. **Initials on every page** — batch one `image` annotation per page
   in a single `add_annotations` call.

## Tips

- `imageUrl` accepts local file paths or HTTPS URLs (no data: URIs)
- Users can also drag & drop the signature image directly onto the
  viewer
- Coordinate origin is top-left; a typical bottom-right signature on
  US Letter is around `x: 400, y: 700`
- Pair with `/pdf-viewer:fill-form` for complete form workflows

© Anthropic · Apache-2.0 · anthropics/knowledge-work-plugins

Similar slash commands

All slash commands for Office documents →

From the same set263

The whole set →
account-context account-context is a Claude Code skill that gathers account details from connected sources into a brief. It runs when asked about a customer’s status or history. CX Codex +1 ★ 36,654repo stars start start is a Claude Code skill that initializes the productivity system and opens its dashboard. It is used during plugin setup or to bootstrap memory from tasks. CX Codex +1 ★ 36,654repo stars competitive-brief The competitive-brief Claude Code skill builds a brief on competitors or a product feature area. It supports product strategy, feature prioritization, sales preparation, and investor materials. CX Codex +1 ★ 36,654repo stars brainstorm brainstorm is a Claude Code command for exploring product ideas, problem spaces, and strategic questions. It frames the discussion, challenges assumptions, and helps narrow the options. CX Codex +1 ★ 36,654repo stars open open is a Claude Code command that displays PDFs in an interactive viewer. It runs when a document needs visual inspection rather than text extraction alone. CX Codex +1 ★ 36,654repo stars fill-form The fill-form Claude Code command fills PDF form fields in a live viewer. The agent checks unclear fields against page labels and shows the completed pages for review. CX Codex +1 ★ 36,654repo stars annotate This Claude Code command annotates PDFs with an agent. It proposes changes section by section, then shows each batch for review. CX Codex +1 ★ 36,654repo stars zoom-mcp/whiteboard This Claude Code skill guides agents through Zoom Whiteboard tasks over MCP. It covers requests to find boards, retrieve their contents, and handle authentication or board IDs. CX Codex +1 ★ 36,654repo stars

More in the catalog

Project sponsors

Companies that keep this analytics open