Prompt file imported from dev-redakai/bhumi-vikas-sahayak (
.claude/commands/new-calculator.md). Copyright stays with the author.
Add a deterministic calculator for a rulebook table.
- Open the official PDF page with
pdftotext -layout -f N -l Nand transcribe the table exactly intobackend/app/calculators.py, with rule, sub-rule and page. - Boundaries: copy the table's own words ("up to" = inclusive). Write a boundary test for every row in
tests/test_calculators.py. - Wire it into
plan_tools()and exposeGET /api/calc/<name>inbackend/app/main.py(the gateway proxies it as/v1/calc/<name>automatically). - Add a form to the Calculators page in
frontend/assets/app.js.
