cursor-jr-knowledge-refresh

cursor-jr-knowledge-refresh is a cursor rule for coding agents from Horosheff/cursor-jr. It costs 0 tokens per session (773 once invoked), scanned A, original, MIT.

A rule for keeping the CursorJr knowledge base current. CursorJr is a project that stores guidance about the Cursor coding editor.

In plain words
What is it for?
Use it to identify when documentation needs a refresh, run the project’s sync and coverage checks, update affected pages, and record the changes.
Why use it?
It prevents the stored guidance from becoming outdated when Cursor changes or when users ask about undocumented features.

Cursor rule

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 rules/horosheff/cursor-jr/cursor-jr-knowledge-refresh
Clone the repo
git clone --depth 1 https://github.com/Horosheff/cursor-jr

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 cursor-jr-knowledge-refresh

README.md
[![agentmods](https://agentmods.dev/badge/rules/horosheff/cursor-jr/cursor-jr-knowledge-refresh.svg)](https://agentmods.dev/rules/horosheff/cursor-jr/cursor-jr-knowledge-refresh)
Your own site
<a href="https://agentmods.dev/rules/horosheff/cursor-jr/cursor-jr-knowledge-refresh"><img src="https://agentmods.dev/badge/rules/horosheff/cursor-jr/cursor-jr-knowledge-refresh.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 773 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.00773
Opus 5 $0.00000 $0.00387
Sonnet 5 $0.00000 $0.00155
Haiku 4.5 $0.00000 $0.00077

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

Security

Grade A, and why

cursor-jr-knowledge-refresh 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 4d 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.

rules/cursor-jr-knowledge-refresh.mdc · 60 lines

How it starts

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

CursorJr — обновление базы знаний

Контракт: shared/knowledge-update-contract.md

Когда обновлять (триггеры)

  1. Планово: manifest.jsonlast_full_sync старше 30 дней
  2. Событийно: новый релиз / changelog Cursor, новая страница в docs
  3. По запросу: пользователь спрашивает про функцию, которой нет в knowledge-base/INDEX.md
  4. После sync: в UPDATE-QUEUE.md есть статусы new или changed

Алгоритм (в проекте Cursor Junior)

  1. Делегировать работу через Task(cursor-jr-maintainer), если нужно не просто ответить пользователю, а обновить KB
  2. Прочитать knowledge-base/manifest.json и UPDATE-QUEUE.md
  3. Запустить: .\scripts\sync-docs.ps1 (PowerShell из корня репозитория)
  4. Запустить: .\scripts\audit-coverage.ps1
  5. Открыть UPDATE-QUEUE.md — обработать pending
  6. Для каждого изменения:
    • Упростить текст для новичка (не копировать docs 1:1)
    • Добавить: Простыми словами, Пошагово, Схема, Частые ошибки
    • Обновить last_synced в frontmatter карточки
  7. Записать в knowledge-base/CHANGELOG.md
  8. Обновить INDEX.md / glossarium.md / profiles/ / wizards/ при новых сценариях
  9. .\scripts\install-plugin.ps1 — синхронизировать глобальную установку
  10. .\scripts\verify-install.ps1 — проверить, что subagent не превратился в skill

Для CursorJr (субагент, readonly)

CursorJr не запускает sync сам в readonly-режиме. Он:

  • Проверяет дату last_synced карточки и manifest.json
  • Если данные старше 30 дней — предупреждает: «информация может быть устаревшей»
  • Если темы нет в KB — даёт официальную ссылку + совет обновить базу
  • Предлагает владельцу проекта: /cursor-jr-sync или .\scripts\sync-docs.ps1

Запреты

  • Не перезаписывать упрощённые карточки сырым HTML из raw/ без ревью
  • Не удалять ручные аналогии и mermaid при merge
  • Не коммитить секреты из docs

Команды

  • .\scripts\sync-docs.ps1 — скачать и сравнить
  • .\scripts\audit-coverage.ps1 — проверить покрытие manifest карточками
  • .\scripts\fix-kb-frontmatter.ps1 — починить YAML frontmatter
  • .\scripts\install-plugin.ps1 — обновить ~/.cursor/
  • .\scripts\verify-install.ps1 — проверить установку

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

Subscribe to this mod's changes

cursor-jr-knowledge-refresh is a cursor rule published in the GitHub repository Horosheff/cursor-jr (10 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 773 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-31.