From overleaf-local
Manage the LaTeX lessons database — save a new lesson from a successful fix, list all stored lessons, or search lessons by warning pattern. Invocable as /overleaf-local:overleaf-local-lesson (Claude Code) or $overleaf-local-lesson (Codex).
How this skill is triggered — by the user, by Claude, or both
Slash command
/overleaf-local:overleaf-local-lessonThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A dual-level system for recording and reusing successful LaTeX fixes.
A dual-level system for recording and reusing successful LaTeX fixes.
~/.claude/latex-lessons/ # User-level (cross-project)
<project>/.claude/latex-lessons/ # Project-level (template-specific, higher priority)
---
trigger: overfull hbox
pattern: "Overfull \\\\hbox.*\\\\url\\{"
context:
- url-in-text
- single-column
fix: url-linebreak
confidence: high
applied_count: 3
last_used: 2026-03-20
template: IEEEtran
---
## Problem
Long URLs in running text cause overfull hbox. The `\url{}` command doesn't
break at arbitrary positions by default.
## Fix
Add `\usepackage[hyphens]{url}` to the preamble. If already present, wrap the
specific URL in `\begin{sloppypar}...\end{sloppypar}`.
## Why It Works
The `hyphens` option allows line breaks at hyphen characters in URLs.
`sloppypar` relaxes inter-word spacing constraints.
## Verification
After applying, the overfull hbox warning for the affected line should
disappear. No new warnings should be introduced.
After a non-trivial fix succeeds (not a simple missing-package install), suggest saving:
This fix resolved [warning type] in [context]. Save as a reusable lesson? [y/n]
In silent mode: auto-save with confidence: medium (promoted to high after reuse).
Determine scope:
Use kebab-case filenames: overfull-url-linebreak.md, underfull-vbox-float-reorder.md.
Display all lessons from both levels, grouped by location:
Project-level (IEEEtran):
ieee-twocol-table-overflow.md — high confidence, used 5 times
User-level:
overfull-url-linebreak.md — high confidence, used 3 times
underfull-vbox-float-reorder.md — medium confidence, used 1 time
Flag stale lessons: applied_count: 0 and last_used older than 6 months → suggest removal.
Match the given pattern against lesson trigger and pattern fields. Return matching lessons ranked by relevance:
context tags match current environmenttemplate matches current document classconfidence and applied_counttemplate fieldtrigger + pattern regexapplied_count, update last_used, promote confidencelist actionIf two lessons match the same warning with different fixes: prefer higher applied_count and confidence. If tied, prefer project-level over user-level.
npx claudepluginhub whiskychoy/whisky-claude-plugins --plugin overleaf-localCaptures lessons from bug fixes and corrections in Phoenix/Elixir projects — Ecto, LiveView, Oban, iron law mistakes. Documents rules in CLAUDE.md or MEMORY.md to prevent repeats.
Records reusable lessons from resolved bug fixes, architectural changes, interface updates, or recurring pitfalls into project memory docs, anchored to git commits.
Sets up and troubleshoots LaTeX environments on Linux/macOS, detects TeX tools like pdflatex/biber/bibtex, analyzes .tex files, installs venue-specific packages (NeurIPS/CVPR) via tlmgr/apt/brew.