Skip to content

docs(skill): flow layer reference, O-D default-to-flow rule, install pin - #3673

Merged
lixun910 merged 3 commits into
xli-move-skill-to-bindings-pythonfrom
xli-skill-flow-layer-docs
Aug 29, 2026
Merged

docs(skill): flow layer reference, O-D default-to-flow rule, install pin#3673
lixun910 merged 3 commits into
xli-move-skill-to-bindings-pythonfrom
xli-skill-flow-layer-docs

Conversation

@lixun910

Copy link
Copy Markdown
Collaborator

Stacked on #3671 (merge that first — this PR contains its commits as the base).

What

Content updates to the kepler.gl agent skill (now at bindings/python/skill/ after #3671), adapted from the fsq-spatial-desktop map-visualization skill:

  1. skill-references/flow-layer.md (new) — documents the 'flow' layer for aggregated O-D flow maps: the never-auto-created rule (a configless O-D export falls back to an arc layer — this is the behavior observed in testing), Lat/Lng and H3 column modes, full worked example (10 airports + flights), flowVisConfig knob reference, colorRange-only coloring, pitfalls, suggested sequential palettes.
  2. SKILL.md — new "Picking a Layer Type" section with the O-D requests default to flow rule (flow renders fine even for a handful of pairs; arc only on explicit unaggregated request; never substitute geojson/line for an O-D request), Flow row + flow reference link + auto-creation fallback Key Rule.
  3. SKILL.md install fixpip install keplergl==0.4.0rc4 instead of plain pip install keplergl (which resolves to the incompatible 0.3.x stable that fails to build on Python 3.14).

Verification

  • FlowLayer confirmed present in the kepler.gl@3.3.0-alpha.8 UMD bundle, added in feat: basic flow layer implementation #3386, tagged since v3.3.0-alpha.1.
  • The worked example was generated with save_to_html() and rendered headless Chrome: side panel shows a Flow layer with animated direction lines and location-total circles.
  • The fsq skill's column-alias auto-detection (source_lat, origin_h3, …) was deliberately NOT ported — it lives in that repo's spatial-agent handler, not in kepler.gl core; kepler.gl reads the columns assigned in the config.

🤖 Generated with Claude Code

lixun910 and others added 3 commits August 28, 2026 23:03
Plain 'pip install keplergl' resolves to the 0.3.x stable on PyPI (old
API, sdist fails to build on Python 3.14), which breaks every example
in the skill. Pin to the 0.4.0 prerelease until it goes stable.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Document the 'flow' layer type for aggregated O-D flow maps: column
assignments (Lat/Lng and H3 modes, count/sourceName/targetName), the
never-auto-created rule (a configless export falls back to an arc
layer for O-D data), colorRange-only coloring, and the full list of
flowVisConfig knobs. Verified headless Chrome renders the worked
example as a Flow layer with animated lines and location totals.
Port the layer-selection guidance from the fsq-spatial-desktop
map-visualization skill: a 'Picking a Layer Type' section in SKILL.md
(default to flow for origin-destination requests, arc only on explicit
unaggregated requests), a strengthened flow-vs-arc intro in
flow-layer.md, and suggested sequential palettes. Verified the fsq
fork's flow-layer.ts is an older copy of this repo's file (missing the
fields-based accessors, globe occlusion and tooltip fixes), so its
column-alias autodetector — which lives in that repo's spatial-agent,
not kepler.gl — stays out of this skill.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@lixun910
lixun910 merged commit c4f489f into xli-move-skill-to-bindings-python Aug 29, 2026
6 of 8 checks passed
@lixun910
lixun910 deleted the xli-skill-flow-layer-docs branch August 29, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant