agentleFS
atishbitsatishbits/claude-skills/skills/pdf-unlock/SKILL.md

pdf-unlock

Skill0 starsChanged 38 days agoMITView on GitHub

Remove the open password from a password-protected PDF, given the correct password. Use when the user has an encrypted/password-protected PDF (e.g. a bank statement, e-Aadhaar, a bill) and wants a copy that opens without a password.

  • Installs packages

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run python3 ${CLAUDE_SKILL_DIR}/remove_password.py <path> <password>.

    line 16
  2. Very specific:

    If pypdf is missing, the script uses the qpdf command when it is installed.

    line 19
  3. Very specific:

    If neither works (no network or no pip in this environment), tell the user that this environment cannot install pypdf, and that the script …

    line 28
  4. Distinctive:

    Never write the PDF's contents, extracted text, or the password itself into this repo or into any committed file — the input and output …

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Request for this run: $ARGUMENTS

Run python3 ${CLAUDE_SKILL_DIR}/remove_password.py <path> <password>. It writes <input>_unlocked.pdf next to the input file by default; pass -o <path> to change that.

If pypdf is missing, the script uses the qpdf command when it is installed. If it exits with status 3, it is missing a package, and its message names it. Install pypdf[crypto] and retry. The [crypto] extra matters: without it pypdf cannot open AES-256 PDFs, which many banks use. Try these in order and stop at the first that works:

  1. pip install 'pypdf[crypto]'
  2. pip install --user --break-system-packages 'pypdf[crypto]' (for a Python that refuses with "externally-managed-environment")

If neither works (no network or no pip in this environment), tell the user that this environment cannot install pypdf, and that the script runs anywhere with Python and pypdf[crypto], or with qpdf. Do not try other ways of decrypting the PDF.

Never write the PDF's contents, extracted text, or the password itself into this repo or into any committed file — the input and output files live wherever the user's PDF already lives, never here.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.