ai-job-search-cn: Command for Claude Code

.claude/commands/add-template.md

add-template is a command for Claude Code from cypggs/ai-job-search-cn. It costs 0 tokens per session (2,341 once invoked), scanned A, original, MIT.

A command for registering a custom LaTeX template with an AI job-application framework. LaTeX is a document system often used to create consistently formatted CVs and cover letters.

In plain words
What is it for?
Use it to add, list, activate, or restore CV and cover-letter templates, verify that a template compiles, and connect it to the application workflow.
Why use it?
It lets the framework use your preferred document design and preserves the template's required compiler, fonts, style rules, and page limits.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is cypggs/ai-job-search-cn's own configuration. It tells Claude Code how to work on ai-job-search-cn itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-job-search-cn configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cypggs/ai-job-search-cn. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cypggs/ai-job-search-cn/master/.claude/commands/add-template.md
Clone the repo
git clone --depth 1 https://github.com/cypggs/ai-job-search-cn

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 add-template

README.md
[![agentmods](https://agentmods.dev/badge/commands/cypggs/ai-job-search-cn/add-template/github.svg)](https://agentmods.dev/commands/cypggs/ai-job-search-cn/add-template)
Your own site
<a href="https://agentmods.dev/commands/cypggs/ai-job-search-cn/add-template"><img src="https://agentmods.dev/badge/commands/cypggs/ai-job-search-cn/add-template/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 add-template

Your own site · 80×15
<a href="https://agentmods.dev/commands/cypggs/ai-job-search-cn/add-template"><img src="https://agentmods.dev/badge/commands/cypggs/ai-job-search-cn/add-template.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 2,341 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.00000 $0.02341
Opus 5 $0.00000 $0.01171
Sonnet 5 $0.00000 $0.00468
Haiku 4.5 $0.00000 $0.00234

Measured 12d ago against content hash f815f35aa46f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 12d 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.

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

How it starts

The opening of the file, as written. The whole thing — 173 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 LaTeX template with the AI Job Search framework. 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 (compile engine, 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>: skip to Step 5: Activate with that template name. --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 | Engine | Fonts | Active |
|------|------|--------|-------|--------|
| <name> | CV / Cover letter | lualatex/xelatex/pdflatex | <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.


Step 1: Template Type and Source

Ask the user (skip anything already answered by $ARGUMENTS):

  1. Type: Is this a CV template or a cover letter template?
  2. Source: Where is the template? Accept any of:
    • A path or @-mention of a .tex file (plus optional .cls/.sty files)
    • Pasted LaTeX content
    • A directory containing the template and its assets (class files, fonts, images)

Read the full file on GitHub · 173 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. 12d ago First seen · 173 lines · 0 tokens per session scan A f815f35aa46f

Subscribe to this mod's changes

add-template is a command published in the GitHub repository cypggs/ai-job-search-cn (63 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,341 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.