Claude Watermark
Use the hosted Claude Watermark service through the CLI bundled beside this file at
cli/bin/claude-watermark.mjs. Resolve this Skill's installed directory and invoke the
CLI with Node. The Skill installation is sufficient: do not configure MCP or install
another package.
Workflow
- Take text from the current conversation, selection, or named file. Never ask the user to paste text that is already accessible.
- Run
node <skill-dir>/cli/bin/claude-watermark.mjs auth status --json. - If unauthenticated, run the same CLI with
auth login. Tell the user to approve the browser page while the command waits, then continue the original request. - For a file, use
rewrite --file <path> --json. Otherwise send the exact text through stdin torewrite --json; never put user text in a shell argument. - Return the
textfield directly. Mention credits only when useful or requested.
Add only requested flags: --tone, --strength, --preserve-citations,
--normalize-quotes, or --replace-em-dashes.
Never rewrite locally as a fallback, expose credentials, or claim that deterministic cleanup removed a statistical watermark.
Errors
insufficient_credits: reportshortfallandtopUpUrl. After top-up, retry without asking the user to resend text.unauthenticated: runauth login; never ask for a password or access token.- Rate limit, oversized input, or provider failure: relay the actionable message and any refund statement.