Individual skill
evo-pdf-redaction-engine
Performs physical redaction of identified content in PDF documents using PyMuPDF's redaction API. Handles exact string redaction, regex-based redaction, hyperlink removal, metadata scrubbing, and secure document saving.
tasks-evolved/paper-anonymizer/environment/skills/evo-pdf-redaction-engine/SKILL.md
Source commit 84ca182da055fafb6453dcec4a6defdbbfd987c1
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 98
- Repository last updated
- Sep 10, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- ai-agents Repository topic
- llm-agents Repository topic
- open-world Repository topic
- self-evolving-agents Repository topic
- writing Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 1,478 bytesSKILL.mdcore · 1,478 bytesscripts/redaction.pyruns · 3,303 bytes
Read excerpt
# evo-pdf-redaction-engine
Performs physical PDF redaction using PyMuPDF (fitz). Applies redaction annotations, removes hyperlinks, purges metadata, and saves securely with garbage collection.
## Key Functions
- `redact_exact_strings(page, strings)` - Add redaction annotations for exact string matches
- `redact_regex_patterns(page, patterns)` - Add redaction annotations for regex matches
- `redact_page_region(page, rect)` - Redact an entire rectangular region
- `scrub_hyperlinks(page, link_patterns)` - Remove identifying hyperlinks and redact their text
- `scrub_metadata(doc)` - Purge standard and XMP metadata
- `anonymize_pdf(input_path, output_path, exact_strings, regex_patterns, link_patterns)` - Full pipeline
- `save_redacted_document(doc, output_path)` - Save with garbage=4 and deflate=True