Agent skill

ComPDF Encrypt and Decrypt PDF

by ComPDFKit in ComPDFKit/compdf-skills

Plans ComPDF Server API requests to encrypt PDFs with AES-128, AES-256 or RC4, set passwords and permissions, and remove passwords from files you are authorized to open.

No licenceAuto-check passedDocuments & Office

Install ComPDF Encrypt and Decrypt PDF

skills CLI
$ npx skills add ComPDFKit/compdf-skills --skill compdf-encryt-pdf-decrypt-pdf -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ComPDFKit/compdf-skills compdf-encryt-pdf-decrypt-pdf --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ComPDFKit/compdf-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/compdf-encryt-pdf-decrypt-pdf .claude/skills/compdf-encryt-pdf-decrypt-pdf && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
compdf-encryt-pdf-decrypt-pdf
GitHub stars
109
Token cost
~812 tokens
SKILL.md length
409 words
Files
4 (incl. references)
Skills in repo
14
Repo updated
First seen
Licence
None found

At a glance

Plans ComPDF Server API requests to encrypt PDFs with AES-128, AES-256 or RC4, set passwords and permissions, and remove passwords from files you are authorized to open.

  • Works in 8 steps: Identify the source file type, desired… → Read references/endpoint-index.md and… → Read the matching heading in… → …
  • Protecting a PDF with a password and chosen encryption strength
  • SKILL.md covers Overview, Supported Operations, Scope and Workflow, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

This skill picks the right official ComPDF Server API endpoint, either pdf-encrypt or pdf-decrypt, and prepares an accurate request plan. It reads the endpoint index and the official API reference, uses the exact endpoint path, request fields and response fields, and does not infer unsupported options. Every final request includes the `sourceType=5` routing parameter. Small interactive jobs use synchronous mode, while large, batch or security-sensitive uploads follow the documented asynchronous or presigned workflow.

Safety rules are strict. Decryption is only assisted after you explicitly confirm you are authorized, and passwords and document content are never repeated in output. The API key is read only from an `api_key` file beside the skill, with a prompt for one if it is missing, and it is never shown or logged. The agent asks before uploading a document and before overwriting, deleting, decrypting or applying permanent protection, and it keeps original files unless you ask for replacement.

When your agent uses it

  • Protecting a PDF with a password and chosen encryption strength
  • Setting permission controls on a PDF before sharing it
  • Removing the password from a PDF you are authorized to open
  • Planning an encrypt or decrypt call to the ComPDF API

Example prompts

  • “Encrypt ./contracts/nda.pdf with AES-256 and an owner password.”
  • “Plan the ComPDF request to remove the password from my own report.pdf. I confirm I own it.”
  • “Which ComPDF endpoint sets permissions on a PDF, and what fields does it take?”

Requirements

  • A ComPDF API key stored in the skill's `api_key` file
  • Network access to the ComPDF Server API

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Identify the source file type, desired output, and requested operation.
  2. Read references/endpoint-index.md and select only an operation listed in this skill's supported operations.
  3. Read the matching heading in references/official-api-reference.md. Use its exact endpoint path, request fields, request mode, and response…
  4. Include sourceType=5 in every final ComPDF API request. Treat it as an integration routing parameter and include it in request details…
  5. Prefer synchronous mode for small interactive work. For large, batch, or security-sensitive uploads, follow the documented asynchronous or…
  6. Resolve credentials only from api_key in the directory containing this SKILL.md. Read its first non-empty line. Do not inspect environment…
  7. Before uploading a document to ComPDF, identify the affected files and destination, and obtain confirmation unless the user has explicitly…
  8. Return the endpoint, method, content type, complete request fields, expected task/result fields, and the next polling or download step…

What it can do on your machine

Read from SKILL.md and the folder at commit 6e2b116. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • compdf.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

ComPDF Encrypt and Decrypt PDF loads about 812 tokens when it runs, and up to ~57k if it reads all its reference files. Until then it costs about 55 tokens; SKILL.md has 409 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~812
With references · SKILL.md plus every file in references/, read only if the agent opens them
~57k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 409 words (~812 tokens).

“ComPDF Encrypt & Decrypt PDF is a focused security skill for controlling access to PDF documents. It lets teams encrypt PDFs with AES-128, AES-256, or RC4 options, apply passwords and permissions, and remove passwords from authorized files when internal processing…”

— opening of SKILL.md by ComPDFKit
name
compdf-encryt-pdf-decrypt-pdf

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files (references) in skills/compdf-encryt-pdf-decrypt-pdf of ComPDFKit/compdf-skills.

  • SKILL.md
  • agents/openai.yaml
  • references/endpoint-index.md
  • references/official-api-reference.md

Open the folder on GitHubat commit 6e2b116

Compare with similar skills

ComPDF Encrypt and Decrypt PDF next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

ComPDF Encrypt and Decrypt PDF compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
ComPDF Encrypt and Decrypt PDF this skillComPDFKit/compdf-skills109—~812Automated safety check: PassNone
Compdf Conversion CLILeoYeAI/openclaw-master-skills2.2k—~5.9kAutomated safety check: PassProprietary
PDF Convert CompdfLeoYeAI/openclaw-master-skills2.2k—~5.8kAutomated safety check: PassProprietary
Analyzing Malicious PDF With Peepdfmukul975/Anthropic-Cybersecurity-Skills34k—~799Automated safety check: PassApache-2.0
PDF Toolkitborghei/Claude-Skills874—~1.4kAutomated safety check: PassMIT
PDF Processinganthropics/skills180k48 repos~2kAutomated safety check: PassProprietary

Similar skills

  • Compdf Conversion CLI

    LeoYeAI/openclaw-master-skills

    MUST use for ANY PDF or image format conversion task — converting PDF and images (JPG/JPEG/PNG/BMP/TIFF/TIF/WEBP/JPEG2000) to 10 formats (Word, Excel, PPT, HTML, Image, TXT, JSON, Markdown, RTF…

    2.2k GitHub stars~5.9k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • PDF Convert Compdf

    LeoYeAI/openclaw-master-skills

    PDF conversion toolkit featuring AI layout analysis and OCR.

    2.2k GitHub stars~5.8k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • Analyzing Malicious PDF With Peepdf

    mukul975/Anthropic-Cybersecurity-Skills

    Perform static analysis of malicious PDF documents using peepdf, pdfid, and pdf-parser to extract embedded JavaScript, shellcode, and suspicious objects.

    34k GitHub stars~799 tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • PDF Toolkit

    borghei/Claude-Skills

    Audit PDF files for metadata leakage, page count, encryption, JavaScript, embedded files, and version.

    874 GitHub stars~1.4k tokensUpdated today
    Documents & OfficeAuto-check passed
  • PDF Processing

    anthropics/skills

    Official

    Handles everyday PDF jobs in Python and on the command line: extract text and tables, merge, split, rotate, watermark, fill forms, encrypt and OCR.

    180k GitHub starsUsed in 48 repos~2k tokens
    Documents & OfficeAuto-check passed
  • PDF Processing Guide

    shareAI-lab/learn-claude-code

    Gives the agent command-line and Python recipes for reading, creating, merging and splitting PDF files, plus tips for large and scanned documents.

    78k GitHub starsUsed in 5 repos~646 tokens
    Documents & OfficeAuto-check passed

More from ComPDFKit/compdf-skills

All 14 skills in this repo
  • ComPDF Watermark Manager

    ComPDFKit/compdf-skills

    Prepares ComPDF Server API requests to add or remove text and image watermarks in PDFs, selecting the right endpoint and listing the complete request details.

    109 GitHub stars~817 tokensUpdated 1 mo ago
    Auto-check passed
  • Compdf Compress PDF

    ComPDFKit/compdf-skills

    Compress PDF files with ComPDF while balancing file size and readable visual quality.

    109 GitHub stars~826 tokensUpdated 1 mo ago
    Auto-check passed
  • ComPDF Image to Document Converter

    ComPDFKit/compdf-skills

    Plans ComPDF Server API requests that turn screenshots, scans, receipts and forms into Word, Excel, PPT, PDF, HTML, RTF, CSV, TXT or JSON output.

    109 GitHub stars~891 tokensUpdated 1 mo ago
    Auto-check passed
  • Compdf Documents To PDF

    ComPDFKit/compdf-skills

    Convert Word, Excel, PPT, HTML, TXT, CSV, RTF, PNG, and JPG files into PDF with ComPDF.

    109 GitHub stars~850 tokensUpdated 1 mo ago
    Auto-check passed
  • Compdf OCR

    ComPDFKit/compdf-skills

    Recognize and extract text from scanned PDFs and images with ComPDF OCR workflows.

    109 GitHub stars~837 tokensUpdated 1 mo ago
    Auto-check passed
  • Compdf Page Editor

    ComPDFKit/compdf-skills

    Merge, split, rotate, insert, delete, and extract PDF pages with ComPDF.

    109 GitHub stars~838 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about ComPDF Encrypt and Decrypt PDF

What does ComPDF Encrypt and Decrypt PDF do?

Plans ComPDF Server API requests to encrypt PDFs with AES-128, AES-256 or RC4, set passwords and permissions, and remove passwords from files you are authorized to open. This skill picks the right official ComPDF Server API endpoint, either pdf-encrypt or pdf-decrypt, and prepares an accurate request plan. It reads the endpoint index and the official API reference, uses the exact endpoint path, request fields and response fields, and does not infer unsupported options.

When should I use ComPDF Encrypt and Decrypt PDF?

ComPDF Encrypt and Decrypt PDF fits situations like: protecting a PDF with a password and chosen encryption strength; setting permission controls on a PDF before sharing it; removing the password from a PDF you are authorized to open; planning an encrypt or decrypt call to the ComPDF API.

How do I install ComPDF Encrypt and Decrypt PDF in Claude Code?

Run `npx skills add ComPDFKit/compdf-skills --skill compdf-encryt-pdf-decrypt-pdf -a claude-code`. Or copy the skill folder (skills/compdf-encryt-pdf-decrypt-pdf in ComPDFKit/compdf-skills) into .claude/skills/compdf-encryt-pdf-decrypt-pdf in your project. Claude Code loads it when a task matches its description.

How do I install ComPDF Encrypt and Decrypt PDF in Codex?

Run `npx skills add ComPDFKit/compdf-skills --skill compdf-encryt-pdf-decrypt-pdf -a codex`. Or copy the skill folder (skills/compdf-encryt-pdf-decrypt-pdf in ComPDFKit/compdf-skills) into .agents/skills/compdf-encryt-pdf-decrypt-pdf in your project. Codex loads it when a task matches its description.

Can I use ComPDF Encrypt and Decrypt PDF in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ComPDFKit/compdf-skills --skill compdf-encryt-pdf-decrypt-pdf -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/compdf-encryt-pdf-decrypt-pdf, .gemini/skills/compdf-encryt-pdf-decrypt-pdf, .github/skills/compdf-encryt-pdf-decrypt-pdf and .opencode/skills/compdf-encryt-pdf-decrypt-pdf in your project.

What does ComPDF Encrypt and Decrypt PDF need to run?

SKILL.md names no scripts, command-line tools or credentials: ComPDF Encrypt and Decrypt PDF is instructions for the agent only. Our summary lists: A ComPDF API key stored in the skill's `api_key` file; Network access to the ComPDF Server API.

Does ComPDF Encrypt and Decrypt PDF access the network?

SKILL.md names 1 domain. As links in the text: compdf.com. This is read from the text; nothing was executed.

Is ComPDF Encrypt and Decrypt PDF safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does ComPDF Encrypt and Decrypt PDF use?

No licence was found for ComPDF Encrypt and Decrypt PDF or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does ComPDF Encrypt and Decrypt PDF use?

About 812 tokens (SKILL.md is roughly 3.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 57k tokens, read only when the agent opens those files.

What are the alternatives to ComPDF Encrypt and Decrypt PDF?

Skills that share tags, products or a category with ComPDF Encrypt and Decrypt PDF: Compdf Conversion CLI (LeoYeAI/openclaw-master-skills, 2.2k stars), PDF Convert Compdf (LeoYeAI/openclaw-master-skills, 2.2k stars), Analyzing Malicious PDF With Peepdf (mukul975/Anthropic-Cybersecurity-Skills, 34k stars) and PDF Toolkit (borghei/Claude-Skills, 874 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains ComPDF Encrypt and Decrypt PDF?

ComPDFKit (a GitHub organization) maintains it in ComPDFKit/compdf-skills, which has 109 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on August 12, 2026.

Source: ComPDFKit/compdf-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.