/looker-skills:looker-custom-vizfrom looker-skills
Creates, customizes, debugs, and deploys custom JavaScript/TypeScript chart plugins for Looker Explores and dashboards. Use when scaffolding, fixing, or deploying Looker custom visualizations.
Ships in looker-skills. 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.
Read when SKILL.md points to them.
Pre-flight & Reality Mapping:
git status (if inside a Git repository) before modifying files so uncommitted work is preserved.src/): Stop before writing chart code and ask the user for a Looker Explore URL, Query Slug, or JSON-Detail payload plus desired Edit settings-pane options. Never invent field names.looker-cli query runquery {slug} --format json_detail (resolves a Query Slug into full json_detail), or via Looker MCP (get_dimensions/get_measures + query, or run_look, wrapping flat { field: val } rows as { field: { value: val } } in local mocks; note query_url generates URLs rather than resolving slugs). Otherwise point to looker-mcp-skill / installing-looker-cli or ask for Explore Actions > Download > Results in JSON-Detail (not plain JSON).Surgical Edits vs. New Project Scaffold:
src/* (never hand-edit minified dist/bundle.js or rewrite whole files; edit raw .js directly only for unbundled plugins).React/TS or Vanilla JS) in references/scaffolding_guide.md.Enforce Looker Sandbox & API v2 Guardrails:
React/TS): Define data and option interfaces in src/types.ts (zero any); read cells via getCell(row, field, pivotKey) so flat and pivoted rows both type-check.NaN & XSS safety: Call this.clearErrors?.() first in updateAsync, validate field counts (this.addError?.(...) + done()), check typeof v === 'number' && Number.isFinite(v), prefer cell.rendered, and escapeHtml(...) untrusted strings in innerHTML and HTML tooltips.typeof this.trigger === 'function' and cache by field/label key before registerOptions. Never emit inline onclick=... attributes; pass the raw DOM Event (event.nativeEvent in React) to LookerCharts.Utils.openDrillMenu.done(): Observe resizes with ResizeObserver, guard 0x0 initial frames, dispose/destroy detached chart instances, render React empty states as JSX inside <App /> (keeping #viz-root mounted), inject Google Sans only on http(s) non-localhost origins, and call done() after rendering settles (racing requestAnimationFrame with a 100ms setTimeout in React 18 so below-the-fold iframe PDF/PNG exports never time out or capture blank frames).Build & Verify:
echarts/core + echarts/charts, or d3-scale/d3-array) to keep bundles fast.npm install (only if node_modules is missing or package.json changed) and npm run build (or node -c {file} for unbundled JS), fixing all compiler/bundler errors before finishing.Register & Deploy:
id in looker.plugins.visualizations.add({ id }) with manifest.lkml, preserve existing manifest.lkml blocks, and confirm with the user before deploying to production (required once for Looker to index a new visualization ID).Read only the reference sections required by the current task:
| Task Need | Reference File & Line Ranges |
|---|---|
React/TS blueprint (1-294), Vanilla JS blueprint (1-32, 296-396), npm run dev, or library matrix | Scaffolding & library selection guide |
Lifecycle (1-14), XSS & drills (15-35), options (36-66), or ResizeObserver / Google Sans / empty states (67-117) | API lifecycle & native styling guide |
Pivots, palettes, merged/table-calc fields & shape validation (1-75), hierarchy trees (76-118), or SSF / registerOptions / Number.isFinite (119-193) | Data patterns & recipes |
Merging manifest.lkml (1-18), deploying via looker-cli or Looker MCP (19-59), or registry/vis_config gotchas (61-65) | Looker deployment guide |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
27 skills in this plugin
/authenticating-looker-cliLooker Developer Onboarding: Step 3. Authenticates the Looker CLI using OAuth. Only execute this after Step 2 (CLI Verification using `installing-looker-cli`)./connecting-looker-to-bigqueryLooker Developer Onboarding: Step 4. Creates a database connection in Looker to Google BigQuery. Only execute this after Step 3 (CLI Authentication using `authenticating-looker-cli`)./creating-looker-dashboardLooker Developer Onboarding: Step 7 (Final Step). Creates a LookML dashboard in the project, imports it as a user-defined dashboard (UDD) in Looker, and iteratively refines it based on user feedback by syncing changes. Only execute this after Step 6 (Model Setup using `creating-lookml-model`).Generated from the plugin's indexed repository (looker-open-source/looker-skills) — no native marketplace selected
npx claudepluginhub p/looker-open-source-looker-skillsOther plugins' skills for the same job