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.
npx agentmods add commands/madslorentzen/ai-job-search/add-templategit clone --depth 1 https://github.com/MadsLorentzen/ai-job-searchWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.03289 |
| Opus 5 | $0.00000 | $0.01644 |
| Sonnet 5 | $0.00000 | $0.00658 |
| Haiku 4.5 | $0.00000 | $0.00329 |
Grade A, and why
add-template 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 2d 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.
Copies of this mod
2 near-identical copies found in the catalogue:
- add-template — 100% identical, 0 lines differ
- add-template — 95% identical, 10 lines differ
How it starts
The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/add-template - Register a Custom CV or Cover Letter Template
You are helping the user register their own CV or cover letter template with the AI Job Search framework — LaTeX, Typst, or any other toolchain that compiles to PDF from the command line. The framework ships with moderncv (banking style) for CVs and a custom cover.cls for cover letters. This command lets the user swap in their own template: store the template files, capture usage instructions (source extension, compile command, fonts, style rules, page limits), verify the template compiles, and wire it into the /apply workflow so every future application uses it.
$ARGUMENTS may contain a subcommand, a file path, or nothing.
Follow these steps in order.
Step 0: Parse Arguments
- If
$ARGUMENTScontains--list: run List Mode below and stop. - If
$ARGUMENTScontains--use <name>: run Switch Mode below, then continue to Step 5: Activate with the resolved template metadata.--use defaultdeactivates any custom template and restores the stock guidance (see Step 5). - If
$ARGUMENTScontains a file path or @-mentioned file: treat it as the template source and carry it into Step 1. - Otherwise: start the registration flow at Step 1.
List Mode
Use Glob with templates/**/TEMPLATE.md to find registered templates. For each, read the manifest and print a table:
## Registered Templates
| Name | Type | Source | Toolchain | Fonts | Active |
|------|------|--------|-----------|-------|--------|
| <name> | CV / Cover letter | .tex/.typ/... | lualatex/typst/... | <main font> | yes/no |
A template is active if 05-cv-templates.md (CV) or 06-cover-letter-templates.md (cover letter) contains an ACTIVE-TEMPLATE managed block naming it. If no custom templates exist, say so and explain that /add-template registers one. Stop here.
Switch Mode
If $ARGUMENTS contains --use <name>:
- If
<name>isdefault, skip template resolution and continue to Step 5 withdefaultas the activation target. - Use Glob with
templates/**/TEMPLATE.mdand find manifests whose parent folder name exactly matches<name>. - If no manifest matches, stop and say the template is not registered. Suggest
/add-template --listto see available names. - If more than one manifest matches, stop and list the matching manifest paths. Ask the user to rename one of the templates; activation must be unambiguous.
- Read the matching
TEMPLATE.mdand extract:- Type:
CVorCover letter - Source extension: e.g.
.tex,.typ - Compile command: the full declared command
- Engine/toolchain: e.g.
lualatex,typst(display label) - Page limit:
<N> page(s) - Fonts: the full font summary line
- Type:
- Derive the template folder from the manifest path and verify
template<source-extension>exists in the same folder. If it is missing, stop with an error; the template registration is incomplete. - Derive
<type>for Step 5 from the manifest path:templates/cv/<name>/TEMPLATE.md->cvtemplates/cover_letters/<name>/TEMPLATE.md->cover_letters
- Continue to Step 5 using the resolved
<name>,<type>,<source-extension>,<compile-command>, engine/toolchain label, font summary, page limit, template skeleton path, and manifest path. Do not re-run Steps 1-4;--useswitches an already-registered template.
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.
- 2d ago First seen · 202 lines · 0 tokens per session scan A 7df88e3d3c03
add-template is a command published in the GitHub repository MadsLorentzen/ai-job-search (39,400 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,289 tokens. 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.
Other commands, from other repositories
resume
Generate a tailored resume and cover letter from a job description, score both, create DOCX files, and update the tracker.
resume-team
Run the role-separated, fail-closed Resume Team workflow against a job description.
writing-coach
Human-voice writing coach — rewrite resumes and cover letters with brevity, burstiness, plain language, and authentic impact. Blocks AI-sounding prose.
cover-letter
Create a one-page cover letter for a job description and generate the final DOCX.
find-jobs
Search live job boards for roles that match the master resume, then rank them by fit.
job-fit
Run the deterministic, digest-bound candidate-fit gate before any resume tailoring.