Index of every page on this site: llms.txt
All skills
modiqo avatar

/pdf-processing

@f4d9ab5
by modiqomodiqo/skillspec641 stars
43
Run it yourself

Use for structured representation of a multi-file PDF skill with references, code snippets, artifacts, and an ordered form-filling recipe. Preserves evidence with SkillSpec routes, forbids, dependencies, traces, and token-savings reports

  • 4 files
  • 20.3 KB
  • Updated 5 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/modiqo/skillspec/pdf-processing

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

forms.md

≈250 tokens on demand. Your agent reads this file only when SKILL.md points to it.

PDF Forms

Form work is an ordered procedure. Do not fill blindly.

Detect fillable fields

from pypdf import PdfReader
import json
import sys

reader = PdfReader(sys.argv[1])
fields = reader.get_fields() or {}
print(json.dumps({
    "fillable": bool(fields),
    "field_count": len(fields),
    "fields": sorted(fields.keys()),
}, indent=2))

If the report says the PDF is fillable, use the existing field path. Otherwise, fall back to reviewed overlay guidance.

Fill existing fields

from pypdf import PdfReader, PdfWriter
import json
import sys

input_pdf, values_json, output_pdf = sys.argv[1:4]
reader = PdfReader(input_pdf)
writer = PdfWriter()
writer.append(reader)
with open(values_json, "r", encoding="utf-8") as handle:
    values = json.load(handle)
for page in writer.pages:
    writer.update_page_form_field_values(page, values)
with open(output_pdf, "wb") as handle:
    writer.write(handle)

Validate the generated PDF before reporting completion.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at f4d9ab5. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 5 months ago

README badge

README badge for modiqo/skillspec/pdf-processing