/bld-token-cost-efficiency:session-hygienefrom bld-token-cost-efficiency
Session management best practices and health check. Use when user says "/session-hygiene", "session tips", "optimize session", "session health", or asks about session optimization.
Ships in bld-token-cost-efficiency. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Audita el estado de la sesión actual y recomienda ajustes para eficiencia.
CACHE_DIR="/tmp/claude-read-cache"
if [[ -d "$CACHE_DIR" ]]; then
SESSION_FILE=$(ls -t "$CACHE_DIR"/session-* 2>/dev/null | head -1)
if [[ -n "$SESSION_FILE" ]]; then
CACHED_COUNT=$(wc -l < "$SESSION_FILE")
echo "Archivos cacheados esta sesión: $CACHED_COUNT"
echo "Archivos protegidos:"
cat "$SESSION_FILE" | while IFS='|' read -r mtime path _; do
[[ -n "$path" ]] && echo " $path"
done
else
echo "Cache vacío (no hay lecturas registradas aún)"
fi
else
echo "Cache read-once no inicializado"
fi
export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
if command -v rtk &>/dev/null; then
echo "=== RTK instalado ==="
rtk --version
rtk gain 2>/dev/null || echo "Sin datos de savings aún"
else
echo "RTK NO instalado — ejecuta /rtk-setup para instalar"
echo "Ahorro potencial: 60-90% en tokens de comandos dev"
fi
echo "=== Dependencias ==="
command -v jq &>/dev/null && echo "jq: OK" || echo "jq: FALTA (los hooks no filtrarán sin jq)"
command -v rtk &>/dev/null && echo "rtk: OK" || echo "rtk: opcional (instala con /rtk-setup)"
Muestra la recomendación de modelo según el tipo de tarea:
| Tarea | Modelo recomendado | Razón |
|---|---|---|
| Arquitectura, planificación, debugging complejo | Opus | Pensamiento profundo justifica el costo |
| Edición de código, tareas rutinarias, ejecución de planes | Sonnet | Rápido y económico |
| Preguntas rápidas, formateo, ediciones simples | Haiku | Mínimo costo |
Sugiere /opusplan si el usuario necesita planificar con Opus y ejecutar con Sonnet.
Presenta tabla compacta:
| Check | Estado | Acción |
|---|---|---|
| read-once cache | N archivos | — |
| RTK | instalado/no | /rtk-setup si falta |
| jq | OK/falta | apt install jq |
| Modelo actual | (informar) | ajustar según tarea |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ai-scm/bld-claude-plugins --plugin bld-token-cost-efficiency8 skills in this plugin
/bld-onboardFull onboarding for bld-token-cost-efficiency plugin. Use when user says "/bld-onboard", "setup plugin", "configure efficiency plugin", "first time setup", or just installed the plugin./context-dietAnalyze and optimize Claude Code context window usage. Use when user says "/context-diet", "optimize context", "context too large", "reduce context", "context usage", or asks about context window optimization./git-commitExecute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping