fill-form

fill-form is a command for Claude Code from eigenweltlabs/legalwork. It costs 16 tokens per session (308 once invoked), scanned A, original, MIT.

A command for filling an interactive PDF form, meaning a PDF with built-in fields such as text boxes, dropdowns, or radio buttons.

In plain words
What is it for?
Use it to inspect a form’s fields, enter supplied values, create a filled PDF, and identify forms that are only scanned images and have no fillable fields.
Why use it?
It prevents errors from guessing field names or using invalid choices, and it keeps the original PDF unchanged by writing a filled copy.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to inspect a form’s fields, enter supplied values, create a filled PDF, and identify forms that are only scanned images and have no fillable fields.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/eigenweltlabs/legalwork/fill-form
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/eigenweltlabs/legalwork

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fill-form

README.md
[![agentmods](https://agentmods.dev/badge/commands/eigenweltlabs/legalwork/fill-form/github.svg)](https://agentmods.dev/commands/eigenweltlabs/legalwork/fill-form)
Your own site
<a href="https://agentmods.dev/commands/eigenweltlabs/legalwork/fill-form"><img src="https://agentmods.dev/badge/commands/eigenweltlabs/legalwork/fill-form/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fill-form

Your own site · 80×15
<a href="https://agentmods.dev/commands/eigenweltlabs/legalwork/fill-form"><img src="https://agentmods.dev/badge/commands/eigenweltlabs/legalwork/fill-form.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 308 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00308
Opus 5 $0.00008 $0.00154
Sonnet 5 $0.00003 $0.00062
Haiku 4.5 $0.00002 $0.00031

Measured 9d ago against content hash 459937e2b686, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

fill-form scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

apps/server/resources/core-opencode/commands/fill-form.md · 27 lines

What it actually says

Fill a PDF form (AcroForm) with AI — the user reviews the filled copy in the in-app PDF viewer. The original file is never modified.

Load and follow the pdf-tools skill, then carry out this request:

$ARGUMENTS

Reminders from the skill:

  • inspect the PDF first — it lists every form field's exact name, type, current value, and (for dropdowns/radios) the valid options. Fill by those exact names; choice fields only accept one of their listed options.
  • Run the fill subcommand with one JSON object of { "fieldName": value } — it writes <name>.filled.pdf next to the source.
  • If inspect shows fields: [], the PDF has no fillable form (likely a flat scan) — say so plainly and offer /annotate instead; don't pretend to fill it.
  • Never invent a value the user didn't give — ask for anything missing.
  • Flag every skipped entry with its reason and retry with corrected names/options.
  • End your reply with the output name the tool returns on its own line so the filled copy surfaces as a clickable PDF artifact in the panel.

If no PDF is named in the arguments, ask which form to fill first.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 27 lines · 16 tokens per session scan A 459937e2b686

Subscribe to this mod's changes

fill-form is a command published in the GitHub repository eigenweltlabs/legalwork (103 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 308 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.