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 skills add Ghqqqq/codex-overleaf-link --skill annotated-rewritegit clone --depth 1 https://github.com/Ghqqqq/codex-overleaf-linkWrote 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.
[](https://agentmods.dev/skills/ghqqqq/codex-overleaf-link/annotated-rewrite)<a href="https://agentmods.dev/skills/ghqqqq/codex-overleaf-link/annotated-rewrite"><img src="https://agentmods.dev/badge/skills/ghqqqq/codex-overleaf-link/annotated-rewrite/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.
<a href="https://agentmods.dev/skills/ghqqqq/codex-overleaf-link/annotated-rewrite"><img src="https://agentmods.dev/badge/skills/ghqqqq/codex-overleaf-link/annotated-rewrite.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00058 | $0.00844 |
| Opus 5.5 | $0.00023 | $0.00338 |
| Sonnet 5.5 | $0.00012 | $0.00169 |
| Haiku 4.5 | $0.00006 | $0.00084 |
Grade A, and why
annotated-rewrite 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Annotated Rewrite
When rewriting .tex file content (paragraphs, sentences, equations, list
bodies, or any block larger than a few words), preserve the original by
commenting it out rather than deleting it, then write the replacement below.
This lets the user review exactly what changed before accepting the edit.
When to apply
Default to this pattern whenever the replaced content is more than a short inline phrase (see the word-level exception below), regardless of content type — prose, equations, lists, environment bodies, or any contiguous block. Use it as often as possible — when in doubt, use it.
A useful guide: if the replaced content is 3 or more source lines, always apply it. For shorter replacements (1-2 source lines), lean toward applying it unless the change is purely word-level: replacing a single word, fixing a typo, or changing a run of 1-5 words within an unbroken clause.
Word-level edits are the only case where skipping the annotated format is clearly appropriate (subject to the structural exceptions in Rule 8).
Edit format
% [original]
% The proposed method encodes user history as a fixed-length vector,
% then applies a linear projection before computing dot-product scores.
% Training uses binary cross-entropy loss over sampled negatives.
%
% \begin{equation}
% \hat{y}_{ui} = \mathbf{u}_i^\top \mathbf{v}_j
% \end{equation}
% [revised]
We encode user history with a transformer encoder, producing a
context-aware representation that is projected into the item space.
Training minimises a softmax loss over in-batch negatives.
\begin{equation}
\hat{y}_{ui} = \mathrm{softmax}(\mathbf{U}\mathbf{V}^\top)_{ij}
\end{equation}
Rules
- Copy the original lines verbatim into the comment block — do not alter them
- Include every line of the replaced content verbatim with
%prepended; blank lines within the block become%empty-comment lines (a line containing only%). Include\begin{...}/\end{...}markers only when they are part of the replaced content — do not comment out enclosing environment markers that are not themselves changing - No blank line between
% [original]and the first commented line - One blank line between the last commented line and
% [revised]; one blank line before% [original]and after the last line of the replacement (to separate the annotated construct from surrounding document text) - The new content after
% [revised]is normal LaTeX (not commented) - For multiple non-adjacent replaced blocks, apply the pattern independently to each block
- Idempotency: if the content being edited already contains a
% [original]/% [revised]block, edit only the active content after% [revised]— do not re-wrap the existing annotated block or create a new outer annotation around it - Structure safety: only apply this pattern at block level (paragraph,
sentence, equation block, list body, or environment body). Do NOT insert
% [original]/% [revised]inside macro arguments, table rows, math expressions,\caption{...},\item[...], or preamble commands — make minimal direct edits there instead, or ask for confirmation before changing structurally sensitive content
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.
- 1mo ago First seen · 72 lines · 58 tokens per session scan A f06eedf85c0b
annotated-rewrite is a skill published in the GitHub repository Ghqqqq/codex-overleaf-link (96 stars, last pushed yesterday), licensed MIT. It adds 58 tokens to every session and 844 once invoked, about $0.0002 per session on Opus 5.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-30.
Other skills, from other repositories
ml-paper-writing
Write publication-ready ML/AI papers for NeurIPS, ICML, ICLR, ACL, AAAI, COLM. Use when drafting papers from research repos, structuring arguments, verifying citations, or preparing camera-ready submissions. Includes LaTeX templates, reviewer guidelines, and citation verification workflows.
academic-plotting
Generates publication-quality figures for ML papers from research context. Given a paper section or description, extracts system components and relationships to generate architecture diagrams via Gemini. Given experiment results or data, auto-selects chart type and generates data-driven figures via matplotlib/seaborn.…
systems-paper-writing
Comprehensive guide for writing systems papers targeting OSDI, SOSP, ASPLOS, NSDI, and EuroSys. Provides paragraph-level structural blueprints, writing patterns, venue-specific checklists, reviewer guidelines, LaTeX templates, and conference deadlines. Use this skill for all systems conference paper writing.
chrome-extension
Use when building or shipping a Manifest V3 browser extension and hitting its quirks — service worker dying and losing state, permission warnings, a Chrome Web Store rejection, content-script/worker/popup messaging, or an MV2-to-V3 migration. NOT a generic web app (that is nextjs), NOT a desktop shell (that is…
overleaf
Sync and manage Overleaf LaTeX projects from the command line. Pull projects locally, push changes back, compile PDFs, and download compile outputs like .bbl files for arXiv submissions. Use when working with LaTeX, Overleaf, academic papers, or arXiv.
latex-fmt
Reformat LaTeX papers for a specified venue, year, track, and submission stage. Apply official templates and check layout, bibliography, page limits, and anonymization while preserving scientific content.