Receipt Renamer
Use the naming policy, keep the run as a dry run, and let the deterministic planner do the filename work.
Inputs
- A batch manifest JSON such as
incoming/normal-batch/receipts.json - A Markdown report path under
reports/ - A JSON plan path under
reports/
Workflow
Confirm this is a dry run and that no files should be renamed yet.
Read the naming policy.
Run:
node .agents/skills/receipt-renamer/scripts/plan-renames.mjs \ --batch <batch-manifest> \ --policy .agents/skills/receipt-renamer/references/naming-policy.md \ --report <report-path> \ --json <json-path>If the planner exits
21, stop and report which receipt is missingcurrency.If the planner exits
23, stop and report which target filename conflicts.On success, summarize the planned target filenames and point to both generated report files.
Only run
npm testif the caller explicitly asks for verification after the dry-run plan exists.
Verification
- The planner exits
0. - Both report files exist.
- No source receipt file is renamed.
- The written summary matches the generated plan.
Boundaries
- Never rename, delete, or overwrite receipt source files in this skill.
- Never change the naming policy from within the skill.
- Do not invent receipt fields that the batch manifest does not contain.