Claude Code · ModsProductividad
webfetch-cache
Responde desde caché las llamadas WebFetch repetidas.
por davila7/claude-code-templates
mod
Licencia: MITVer original
Instalación
npx claude-code-templates@latest --mod productivity/webfetch-cacheContenido
Dónde va: .claude/skills/webfetch-cache/
# webfetch-cache
Short-circuits repeated WebFetch calls for the same URL + prompt within a
session. On a cache hit the hook answers `{ result }` itself without calling
`next` (no network call); on a miss it awaits the real fetch, stores the
tool's record and returns what came back.
Only the tool's own record (`result`) is cached, never core's `ref`: that
number names the messages core produced for one specific call and must not
be replayed on another.
A long page read in pieces (WebFetch's `offset`, Claude Code 2.1.290+) is cached
piece by piece: a read further down the page never gets the first page back.
## Options
```
ttlSeconds: number how long an entry stays fresh (default 900)
maxEntries: number cache size (default 200)
```
Declared in `.claude-plugin/plugin.json` (`userConfig`). Set them in `/config`, in user settings (`~/.claude/settings.json`, not project settings), with `--settings <file>` or in managed settings:
```json
{ "pluginConfigs": { "webfetch-cache@skills-dir": { "options": { } } } }
```
## Install
```sh
npx claude-code-templates@latest --mod productivity/webfetch-cache
claude
```
It is written to `.claude/skills/webfetch-cache/`, which Claude Code auto-loads as `webfetch-cache@skills-dir`. For one session with hot reload: `claude --plugin-dir .claude/skills/webfetch-cache`. `claude plugin validate .claude/skills/webfetch-cache` prints every event it hooks and every `$` call it makes.
**Requirements.** Mods are on by default in Claude Code 2.1.287+. Typed against Anthropic's declarations: https://github.com/anthropics/claude-code/tree/main/mods
Más en Mods
Estilo profesor
Claude explica cada decisión mientras trabaja, ideal para aprender.
Estilo conciso
Respuestas cortas: solo el resultado y los siguientes pasos.
Statusline de costo
Muestra el costo acumulado de la sesión en la barra de estado.
admin-capability-lockdown
Control para organizaciones: quita el acceso a red y procesos a los plugins que corren debajo.
policy-ceiling
Convierte los límites gestionados de la organización en topes sobre la configuración de cada persona.
2048
2048 sobre el prompt de Claude Code mientras Claude trabaja.