/bld-token-cost-efficiency:token-scanfrom bld-token-cost-efficiency
Scan repository Claude Code configuration and generate optimization report card. Use when user says "/token-scan", "scan config", "audit configuration", "check claude setup", "optimize repo config", or asks about configuration quality.
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.
Escanea la configuración de Claude Code del repositorio actual y genera un reporte con calificación por categoría (A-F).
echo "=== CLAUDE.md ===" && if [[ -f CLAUDE.md ]]; then SIZE=$(wc -c < CLAUDE.md) && LINES=$(wc -l < CLAUDE.md) && echo "Existe: SI | Size: ${SIZE}B | Lines: ${LINES}" && grep -c "^##" CLAUDE.md 2>/dev/null | xargs -I{} echo "Secciones (##): {}" && grep -ciE "(convention|convenci|style|estilo|rule|regla)" CLAUDE.md 2>/dev/null | xargs -I{} echo "Menciones de convenciones: {}"; else echo "Existe: NO"; fi
Calificación CLAUDE.md:
echo "=== Rules ===" && if [[ -d .claude/rules ]]; then find .claude/rules/ -name "*.md" -exec wc -lc {} + 2>/dev/null && echo "---" && for f in .claude/rules/*.md; do [[ -f "$f" ]] && LINES=$(wc -l < "$f") && echo "$f: ${LINES}L"; done; else echo "No existe .claude/rules/"; fi
Calificación Rules:
echo "=== Skills ===" && for DIR in .claude/skills/*/; do [[ -d "$DIR" ]] && SKILL="$DIR/SKILL.md" && if [[ -f "$SKILL" ]]; then LINES=$(wc -l < "$SKILL") && HAS_FM=$(head -1 "$SKILL" | grep -c "^---" || true) && HAS_TOOLS=$(grep -c "allowed-tools" "$SKILL" || true) && HAS_TRIGGER=$(grep -c "Use when" "$SKILL" || true) && echo "$SKILL: ${LINES}L | frontmatter:${HAS_FM} | allowed-tools:${HAS_TOOLS} | triggers:${HAS_TRIGGER}"; fi; done 2>/dev/null || echo "No skills locales"
Calificación Skills:
echo "=== Hooks ===" && for SETTINGS in .claude/settings.json .claude/settings.local.json; do if [[ -f "$SETTINGS" ]]; then echo "$SETTINGS:" && python3 -c "
import json
with open('$SETTINGS') as f:
s = json.load(f)
hooks = s.get('hooks', {})
for event, matchers in hooks.items():
print(f' {event}: {len(matchers) if isinstance(matchers, list) else 1} matcher(s)')
if not hooks: print(' (sin hooks)')
" 2>/dev/null || echo " No se pudo parsear"; fi; done
Calificación Hooks:
echo "=== Oportunidades ===" && echo "Archivos MD grandes (>10KB):" && find . -maxdepth 3 -name "*.md" -size +10k ! -path "./.git/*" -exec ls -lh {} + 2>/dev/null | head -10 || echo "Ninguno" && echo "---" && echo ".gitignore:" && [[ -f .gitignore ]] && echo "Existe ($(wc -l < .gitignore) líneas)" || echo "NO EXISTE" && echo "---" && echo "RTK:" && command -v rtk &>/dev/null && echo "Instalado ($(rtk --version 2>&1))" || echo "No instalado — /rtk-setup para instalar"
Calificación Token Optimization:
Presenta el Report Card:
| Categoría | Nota | Detalles |
|---|---|---|
| CLAUDE.md | [A-F] | (resumen) |
| Rules | [A-F] | (resumen) |
| Skills | [A-F] | (resumen) |
| Hooks | [A-F] | (resumen) |
| Token Optimization | [A-F] | (resumen) |
| NOTA GENERAL | [A-F] | Promedio ponderado |
Lista las 3-5 acciones más impactantes como items accionables:
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