add-template

A command for registering your own CV or cover-letter template with a job-search framework. It supports command-line PDF toolchains such as LaTeX or Typst and records how the template should be compiled and used.

In plain words
What is it for?
Use it to add, check, list, or switch CV and cover-letter templates, including their source files, compile commands, fonts, style rules, and page limits.
Why use it?
It lets you replace the framework's built-in document templates while keeping future applications connected to the selected template.

Command for Claude Code

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.

agentmods
npx agentmods add commands/madslorentzen/ai-job-search/add-template
Clone the repo
git clone --depth 1 https://github.com/MadsLorentzen/ai-job-search

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,289 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.03289
Opus 5 $0.00000 $0.01644
Sonnet 5 $0.00000 $0.00658
Haiku 4.5 $0.00000 $0.00329

Measured 2d ago against content hash 7df88e3d3c03, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

.claude/commands/add-template.md · 202 lines

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 $ARGUMENTS contains --list: run List Mode below and stop.
  • If $ARGUMENTS contains --use <name>: run Switch Mode below, then continue to Step 5: Activate with the resolved template metadata. --use default deactivates any custom template and restores the stock guidance (see Step 5).
  • If $ARGUMENTS contains 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>:

  1. If <name> is default, skip template resolution and continue to Step 5 with default as the activation target.
  2. Use Glob with templates/**/TEMPLATE.md and find manifests whose parent folder name exactly matches <name>.
  3. If no manifest matches, stop and say the template is not registered. Suggest /add-template --list to see available names.
  4. 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.
  5. Read the matching TEMPLATE.md and extract:
    • Type: CV or Cover 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
  6. 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.
  7. Derive <type> for Step 5 from the manifest path:
    • templates/cv/<name>/TEMPLATE.md -> cv
    • templates/cover_letters/<name>/TEMPLATE.md -> cover_letters
  8. 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; --use switches an already-registered template.

Read the full file on GitHub · 202 lines

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. 2d ago First seen · 202 lines · 0 tokens per session scan A 7df88e3d3c03

Subscribe to this mod's changes

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.