archive-vacancies

archive-vacancies is a command for Claude Code from s4nec4ke/hr-agent-ru. It costs 88 tokens per session (1,127 once invoked), scanned A, original, MIT.

A command that moves job listings older than 30 days from an active CSV file and its item folders into archive files. Listings with an interview scheduled, or recent activity, stay active.

In plain words
What is it for?
Use it to archive old vacancies on request or as a weekly cleanup task.
Why use it?
It keeps the working vacancy list smaller without losing old records or breaking links to related contacts.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to archive old vacancies on request or as a weekly cleanup task.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/s4nec4ke/hr-agent-ru/archive-vacancies
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.

Clone the repo
git clone --depth 1 https://github.com/s4nec4ke/hr-agent-ru

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 archive-vacancies

README.md
[![agentmods](https://agentmods.dev/badge/commands/s4nec4ke/hr-agent-ru/archive-vacancies/github.svg)](https://agentmods.dev/commands/s4nec4ke/hr-agent-ru/archive-vacancies)
Your own site
<a href="https://agentmods.dev/commands/s4nec4ke/hr-agent-ru/archive-vacancies"><img src="https://agentmods.dev/badge/commands/s4nec4ke/hr-agent-ru/archive-vacancies/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 archive-vacancies

Your own site · 80×15
<a href="https://agentmods.dev/commands/s4nec4ke/hr-agent-ru/archive-vacancies"><img src="https://agentmods.dev/badge/commands/s4nec4ke/hr-agent-ru/archive-vacancies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,127 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.00088 $0.01127
Opus 5 $0.00044 $0.00563
Sonnet 5 $0.00018 $0.00225
Haiku 4.5 $0.00009 $0.00113

Measured 11d ago against content hash 68b77e6e7a3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

archive-vacancies 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 11d 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/archive-vacancies.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/archive-vacancies — архивация старых вакансий

Принципы

  • Правило архивации: today - last_activity > 30 дней И статус ≠ назначено интервью.
  • last_activity = самая поздняя из двух дат: (1) max(last_message_utc) по контактам вакансии в feedback_store.json и (2) Дата добавления из CSV. Берётся более свежая. Так защищены и свеже-добавленные вакансии, привязанные к старым диалогам (add_date свежий → не архивируется), и старые вакансии с активной перепиской (msg_date свежий → не архивируется). Если нет ни той ни другой даты — вакансия остаётся в активной CSV.
  • Папки едут симметрично: vacancies/items/{id} ...vacancies/items_archive/{id} .... Все скиллы у нас ищут через glob vacancies/items/{id} * — архивные перестают находиться, никакой код не правится.
  • feedback_store.json НЕ трогается — контакты m2m, один HR может вести несколько вакансий, ломать связи нельзя.
  • Auto-unarchive делает /feedback-update: если новый ответ HR прилетел по архивной вакансии — она возвращается в активные ДО апдейта статуса.

Шаг 1. Dry-run

Покажи пользователю что будет архивировано — без побочных эффектов:

Push-Location "engine"; & ".\venv\Scripts\python.exe" -m archive_runner.main --dry-run; Pop-Location

Парсь stdout — последняя строка SUMMARY: archived=N kept=M folders_moved=K folder_errors=E dry_run=1.

Если archived=0 — ответь «Нечего архивировать (всё свежее 30 дней)» и стоп.

Если archived>0 — покажи блок со списком (он уже в stdout) и спроси: «Применить? (д / н / показать детали)».

Шаг 2. Применение (после «да»)

Push-Location "engine"; & ".\venv\Scripts\python.exe" -m archive_runner.main; Pop-Location

Парсь финальный SUMMARY: ... dry_run=0. Если folder_errors>0 — выдели секцию «Ошибки при переносе папок» из stdout и попроси пользователя посмотреть.

Шаг 3. Итоговый отчёт

✅ Архивировано: N вакансий
- vacancies.csv: было X → стало Y
- vacancies_archive.csv: было Z → стало (Z+N)
- items/ → items_archive/: K папок перенесено

⚠️ (если есть folder_errors) E папок не перенесены — проверь stderr

Read the full file on GitHub · 64 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. 11d ago First seen · 64 lines · 88 tokens per session scan A 68b77e6e7a3b

Subscribe to this mod's changes

archive-vacancies is a command published in the GitHub repository s4nec4ke/hr-agent-ru (2 stars, last pushed 3mo ago), licensed MIT. It adds 88 tokens to every session and 1,127 once invoked, about $0.0004 per session on Opus 5. 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-31.