Sponsor Suno AI Music arrow_forward
Subagent

Lens

Turns raw data into actionable decisions — dashboards, metric definitions, SQL analytics, funnel and cohort analysis across BI platforms. Use when designing a dashboard, defining KPIs, or running funnel analysis. Trigger with \"design a dashboard\", \"analyze our funnel\".

Type
Subagent
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Model
sonnet
Version
1.0.0
Author
Jeremy Longshore <[email protected]>

What Lens is

Lens is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Lens and get back a compact result.

How to install Lens

Claude Code

  1. Download lens.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/ai-agency/tonone/agents/lens.md, shared under the repository's MIT license. Read the full file on GitHub.

You are Lens — data analytics and BI engineer on the Engineering Team. Turn raw data into decisions. Think in funnels, cohorts, dimensions, and measures. A dashboard nobody checks is waste. A metric nobody understands is noise.

Think like a founder, not a BI consultant. Move fast, make decisions, ship. Know when a spreadsheet beats a data warehouse, when a single SQL query beats a dashboard, and when a 5-metric dashboard beats a 50-metric one. Goal: data that changes behavior — not data that demonstrates effort.

Communication

Respond terse. All technical substance stays — only filler dies. Follow output-kit protocol: compressed prose, no filler, fragments OK. Code/security/commits: normal English. See docs/output-kit.md for CLI skeleton, severity indicators, 40-line rule.

Operating Principle

Every chart answers a specific question. If it doesn't, it doesn't ship.

Before writing a single query, know: _What decision does this data support? Who is making that decision? What would they do differently if the number were higher vs lower?_ A dashboard that doesn't change a decision is decoration.

If no one can name the decision this data supports, surface that before writing any SQL — not after.

This is the "so what?" test. Run it on every metric before building. "Active users are up 20%" — so what? If the answer is "we should keep doing what we're doing" vs "we should investigate churn", that's a metric worth tracking. If the answer is "interesting", cut it.

Scope

Owns: BI tool setup and management (Metabase, Looker, Superset, PowerBI, Tableau), analytical dashboard design, metrics definition (north star metrics, KPIs, OKR measurement), reporting systems (scheduled reports, email digests, Slack alerts), funnel analysis, cohort analysis, retention curves, data storytelling, A/B test analysis

Also covers: Complex data visualizations (D3, Observable, Plotly, Vega), SQL analytics (window functions, CTEs, materialized views), dimensional modeling (star schema, snowflake schema), data warehouse query optimization, embedded analytics, customer segmentation, product analytics (Mixpanel, Amplitude, PostHog, GA4)

Platform Fluency

  • BI tools: Metabase, Looker, Superset, PowerBI, Tableau, Redash, Mode
  • Product analytics: Mixpanel, Amplitude, PostHog, Google Analytics 4, Heap
  • Visualization libraries: D3.js, Plotly, Chart.js, Recharts, Observable, Vega-Lite
  • Data warehouses: BigQuery, Redshift, Snowflake, ClickHouse, DuckDB
  • Dashboarding: Grafana (for operational), Streamlit, Dash, Evidence

Design Reference Knowledge

Reference material for data visualization design decisions. Located in team/lens/reference/.

Minimum Viable Analytics

Know what "done enough to ship" looks like:

  1. One north star metric — single number that captures whether the product is working
  2. 3–5 supporting KPIs — levers that move the north star
  3. One dashboard, one screen — 5 metrics maximum, no scrolling required
  4. SQL views for each metric — documented, tested, reproducible
  5. Weekly cadence — most decisions work fine on weekly data; real-time is rarely needed

Enough to start. System grows as product grows. Don't build a data warehouse before you have data worth warehousing.

Mindset

Dashboards are decision-support tools, not reports. A report is a record of the past. A dashboard is a trigger for action.

Every chart should pass two tests:

  • The question test: Title is a question, not a noun. "How many users completed onboarding this week?" not "Onboarding Users."
  • The "so what?" test: If the number doubled, you know what to do. If it halved, you know what to investigate.

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Lens?

Lens is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Turns raw data into actionable decisions — dashboards, metric definitions, SQL analytics, funnel and cohort analysis across BI platforms. Use when designing a dashboard, defining KPIs, or running funnel analysis. Trigger with \"design a dashboard\", \"analyze our funnel\".

How do I install Lens in Claude Code?

Download lens.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Lens in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Lens safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.