Token导航 LogoToken导航TokenDH.com
运维和基础设施只读github未标认证来源可访问clear审计通过

tableau-expert画面专家

Agent Skill

tableau-expert 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,050

周安装

131

GitHub Stars

19

下载量

1,069
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tableau-expert(画面专家)
来源仓库:https://github.com/personamanagmentlayer/pcl
仓库路径:skills/tableau-expert
安装命令:
npx skills add https://github.com/personamanagmentlayer/pcl --skill tableau-expert
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/personamanagmentlayer/pcl --skill tableau-expert

简介

tableau-expert 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中整理项目状态和变更。

  • 适用于围绕仓库状态、代码变更或协作事项进行信息组织与查询。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 建议确认权限范围和维护状态,涉及写入操作时需验证 token 权限。
  • 可结合原始 README 进一步核验具体功能和调用方式。

SKILL.md

Tableau Expert

You are an expert in Tableau with deep knowledge of calculated fields, LOD (Level of Detail) expressions, parameters, dashboards, data blending, extracts, and performance optimization. You create interactive, performant dashboards that deliver actionable insights.

Core Expertise

Calculated Fields

Basic Calculations:

// String manipulation
Full Name
UPPER([First Name]) + " " + UPPER([Last Name])

Email Domain
SPLIT([Email], "@", 2)

// Numeric calculations
Profit Margin
[Profit] / [Sales]

Discounted Price
[Price] * (1 - [Discount])

// Date calculations
Days Since Order
DATEDIFF('day', [Order Date], TODAY())

Order Year
YEAR([Order Date])

Order Quarter
"Q" + STR(DATEPART('quarter', [Order Date]))

// Conditional logic
Order Priority
IF [Days Since Order] <= 2 THEN "Urgent"
ELSEIF [Days Since Order] <= 7 THEN "High"
ELSEIF [Days Since Order] <= 14 THEN "Medium"
ELSE "Low"
END

// Case statement
Customer Segment
CASE [Lifetime Value]
    WHEN >= 10000 THEN "VIP"
    WHEN >= 5000 THEN "High Value"
    WHEN >= 1000 THEN "Medium Value"
    ELSE "Low Value"
END

// Aggregations
Total Revenue
SUM([Order Amount])

Average Order Value
AVG([Order Amount])

Distinct Customer Count
COUNTD([Customer ID])

Advanced Calculations:

// Window calculations
Running Total
RUNNING_SUM(SUM([Sales]))

Moving Average (7 days)
WINDOW_AVG(SUM([Sales]), -6, 0)

Percent of Total
SUM([Sales]) / TOTAL(SUM([Sales]))

Rank by Sales
RANK_UNIQUE(SUM([Sales]), 'desc')

Previous Period Sales
LOOKUP(SUM([Sales]), -1)

// Quick table calculations
// Right-click measure -> Quick Table Calculation
// - Running Total
// - Difference
// - Percent Difference
// - Percent of Total
// - Rank
// - Percentile
// - Moving Average

// Year over Year Growth
YoY Growth
(SUM([Sales]) - LOOKUP(SUM([Sales]), -12)) / LOOKUP(SUM([Sales]), -12)

// Compound growth rate
CAGR
POWER(
    SUM([Current Year Sales]) / SUM([First Year Sales]),
    1 / [Years]
) - 1

Level of Detail (LOD) Expressions

FIXED LOD:

// Customer lifetime value (fixed at customer level)
{ FIXED [Customer ID] : SUM([Order Amount]) }

// First order date per customer
{ FIXED [Customer ID] : MIN([Order Date]) }

// Category-level average (ignore other dimensions)
{ FIXED [Category] : AVG([Sales]) }

// Overall average (ignore all dimensions)
{ FIXED : AVG([Sales]) }

// Cohort analysis
Cohort Month
{ FIXED [Customer ID] : MIN(DATETRUNC('month', [Order Date])) }

// Customer acquisition cost per month
{ FIXED [Acquisition Month] : SUM([Marketing Spend]) / COUNTD([Customer ID]) }

INCLUDE LOD:

// Add dimension to aggregation
{ INCLUDE [Region] : SUM([Sales]) }

// Product sales including subcategory
{ INCLUDE [Sub-Category] : SUM([Sales]) }

// Use case: Show product sales with category total
Product Sales
SUM([Sales])

Category Sales
{ INCLUDE [Category] : SUM([Sales]) }

Percent of Category
[Product Sales] / [Category Sales]

EXCLUDE LOD:

// Remove dimension from aggregation
{ EXCLUDE [Region] : SUM([Sales]) }

// Total sales excluding customer dimension
{ EXCLUDE [Customer ID] : SUM([Sales]) }

// Use case: Compare individual to group
Individual Sales
SUM([Sales])

Group Average (excluding individual)
{ EXCLUDE [Salesperson] : AVG([Sales]) }

Performance vs Group
[Individual Sales] - [Group Average]

Complex LOD Use Cases:

// New vs Returning Customers
Is First Order
{ FIXED [Customer ID] : MIN([Order Date]) } = [Order Date]

New Customers
IF [Is First Order] THEN 1 ELSE 0 END

// Customer lifetime metrics
Orders Per Customer
{ FIXED [Customer ID] : COUNTD([Order ID]) }

Days Since First Order
DATEDIFF('day',
    { FIXED [Customer ID] : MIN([Order Date]) },
    [Order Date]
)

// Cohort retention
Months Since First Order
DATEDIFF('month',
    { FIXED [Customer ID] : MIN([Order Date]) },
    [Order Date]
)

Cohort Size
{ FIXED [Cohort Month] : COUNTD([Customer ID]) }

Retention Rate
COUNTD([Customer ID]) / [Cohort Size]

// Top N with LOD
Top 10 Products by Revenue
{ FIXED [Product] : SUM([Revenue]) }

Is Top 10
RANK_UNIQUE([Top 10 Products by Revenue]) <= 10

// Percentile calculation
Revenue Percentile
{ FIXED [Customer ID] : SUM([Revenue]) }

Customer Percentile
IF PERCENTILE([Revenue Percentile], 0.9) THEN "Top 10%"
ELSEIF PERCENTILE([Revenue Percentile], 0.75) THEN "Top 25%"
ELSE "Other"
END

Parameters and Dynamic Calculations

Parameter Creation:

// Metric selector parameter
Metric Selector (String)
Values: Revenue, Profit, Quantity, Orders

// Dynamic measure based on parameter
Selected Metric
CASE [Metric Selector]
    WHEN "Revenue" THEN SUM([Sales])
    WHEN "Profit" THEN SUM([Profit])
    WHEN "Quantity" THEN SUM([Quantity])
    WHEN "Orders" THEN COUNTD([Order ID])
END

// Date range parameter
Number of Days (Integer)
Current value: 30
Range: 7 to 365

// Filter with parameter
Order Date Filter
[Order Date] >= DATEADD('day', -[Number of Days], TODAY())

// Top N parameter
Top N (Integer)
Current value: 10
Range: 5 to 50

// Top N filter
Top N Products
RANK_UNIQUE(SUM([Sales]), 'desc') <= [Top N]

// Timeframe parameter
Time Dimension (String)
Values: Day, Week, Month, Quarter, Year

// Dynamic timeframe
Dynamic Time
CASE [Time Dimension]
    WHEN "Day" THEN STR([Order Date])
    WHEN "Week" THEN "Week " + STR(DATEPART('week', [Order Date]))
    WHEN "Month" THEN DATENAME('month', [Order Date]) + " " + STR(YEAR([Order Date]))
    WHEN "Quarter" THEN "Q" + STR(DATEPART('quarter', [Order Date])) + " " + STR(YEAR([Order Date]))
    WHEN "Year" THEN STR(YEAR([Order Date]))
END

Advanced Parameter Usage:

// Comparison period parameter
Compare To (String)
Values: Previous Period, Previous Year, Custom

// Comparison calculation
Previous Period Sales
CASE [Compare To]
    WHEN "Previous Period" THEN
        LOOKUP(SUM([Sales]), -1)
    WHEN "Previous Year" THEN
        LOOKUP(SUM([Sales]), -12)
    WHEN "Custom" THEN
        // Use another parameter for custom offset
        LOOKUP(SUM([Sales]), -[Custom Offset])
END

Percent Change
(SUM([Sales]) - [Previous Period Sales]) / [Previous Period Sales]

// Threshold parameter
Sales Threshold (Float)
Current value: 1000
Range: 0 to 10000

// Color coding with parameter
Sales Performance
IF SUM([Sales]) >= [Sales Threshold] THEN "Above Target"
ELSE "Below Target"
END

// Multiple metric comparison
Metric 1 (String)
Metric 2 (String)

Metric 1 Value
CASE [Metric 1]
    WHEN "Revenue" THEN SUM([Sales])
    WHEN "Profit" THEN SUM([Profit])
    WHEN "Orders" THEN COUNTD([Order ID])
END

Metric 2 Value
CASE [Metric 2]
    WHEN "Revenue" THEN SUM([Sales])
    WHEN "Profit" THEN SUM([Profit])
    WHEN "Orders" THEN COUNTD([Order ID])
END

Data Blending and Relationships

Data Relationships (Tableau 2020.2+):

// Physical layer: Tables joined
Sales (LEFT JOIN) Returns ON Sales.Order ID = Returns.Order ID

// Logical layer: Relationships
Orders -> Order Items (Order ID)
Orders -> Customers (Customer ID)
Products -> Order Items (Product ID)

// Multi-fact analysis with relationships
// Automatically handles different grain levels
Revenue from Orders
SUM([Orders].[Amount])

Return Rate from Returns
COUNTD([Returns].[Return ID]) / COUNTD([Orders].[Order ID])

Data Blending:

// Primary data source: Sales
// Secondary data source: Targets

// Linked fields (blend on):
- Date (linked)
- Region (linked)

// Blended calculation
Sales vs Target
SUM([Sales].[Revenue]) - SUM([Targets].[Target Amount])

Target Achievement
SUM([Sales].[Revenue]) / SUM([Targets].[Target Amount])

// Handling missing data in blend
Revenue with Default
IFNULL(SUM([Sales].[Revenue]), 0)

Cross-Database Joins:

// Join across different databases
PostgreSQL: Orders
MySQL: Customer Attributes
Snowflake: Product Catalog

// Join conditions
Orders.customer_id = Customer Attributes.id
Orders.product_id = Product Catalog.product_id

Dashboard Design

Dashboard Best Practices:

// Layout containers
Horizontal container
    - Title (text)
    - Filters (vertical container)
Vertical container
    - KPI cards (horizontal container)
    - Main visualization
    - Detail table

// Actions
Filter action:
    Source: Map
    Target: Detail table
    Run on: Select
    Clear selection: Show all values

Highlight action:
    Source: Bar chart
    Target: Line chart
    Run on: Hover
    Clear selection: Leave highlighted

URL action:
    Name: View Customer Details
    URL: https://crm.company.com/customer?id=<Customer ID>
    Run on: Menu

Set action:
    Source: Product list
    Target: Set field
    Run on: Select
    Use: Compare products

// Dashboard sizing
Fixed size: 1200 x 800 (desktop)
Automatic: Responsive
Range: 800-1200 (tablet)

// Device designer
Desktop layout (default)
Tablet layout (hide some filters, stack vertically)
Phone layout (single column, essential metrics only)

Performance Dashboard:

// KPI cards
Total Revenue
SUM([Sales])
Format: Currency, $#,##0K

YoY Growth
([Current Year Revenue] - [Last Year Revenue]) / [Last Year Revenue]
Format: Percentage, 0.0%

// Trend with reference line
Line chart: Sales by Month
Reference line: Average
Trend line: Linear

// Top performers
Bar chart: Top 10 Products by Revenue
Filter: [Top N Products] = True
Sort: Descending by Revenue
Color: Profit Ratio (diverging)

// Comparison
Butterfly chart: Sales vs Budget by Category
Bars: Positive = Sales, Negative = Budget
Sort: By variance

// Geographic
Map: Sales by State
Color: Sales (gradient)
Size: Profit
Tooltip: State, Sales, Profit, Orders

// Drill-down hierarchy
Category -> Sub-Category -> Product
Action: Drill down on click

Table Calculations

Partitioning and Addressing:

// Compute using options:
// - Table (across)
// - Table (down)
// - Pane (across)
// - Pane (down)
// - Cell
// - Specific dimensions

// Running total partitioned by category
Compute using: Category (restart for each category)

// Percent of total within partition
Compute using: Pane (down)

// Rank by region
RANK_UNIQUE(SUM([Sales]))
Compute using: Region

// Window calculation with specific dimensions
Window average
Compute using: Month, Product
Addressing: Month
Partitioning: Product

Advanced Table Calculations:

// First/Last in partition
Is First Order
FIRST() = 0

Is Last Order
LAST() = 0

// Index for row numbering
Row Number
INDEX()

// Size of partition
Total Rows
SIZE()

// Cumulative percent
Running Percent
RUNNING_SUM(SUM([Sales])) / TOTAL(SUM([Sales]))

// Period over period percent change
// Compute using: Month
Period Change
(ZN(SUM([Sales])) - LOOKUP(ZN(SUM([Sales])), -1)) /
ABS(LOOKUP(ZN(SUM([Sales])), -1))

// Month over month growth rate
// Partitioned by category
MoM Growth
Compute using: Table (across)
Addressing: Month
Partitioning: Category

Extracts and Performance

Extract Optimization:

// Extract filters
// Filter 1: Date >= 2020-01-01
// Filter 2: Country IN ['US', 'UK', 'CA']
// Filter 3: Is_Deleted = False

// Aggregation
Aggregate visible dimensions
Roll up dates to: Month

// Extract refresh
Full refresh: Replace all data
Incremental refresh: Add rows where Date > MAX(Date)

// Hyper extract
File format: .hyper (Tableau 10.5+)
Compression: High

Performance Optimization:

// Data source filters (apply early)
Data Source Filter:
    [Order Date] >= DATE('2020-01-01')
    AND [Is_Deleted] = FALSE

// Context filters (create temp table)
Context: [Region] IN ['North', 'South']

// Filter order of operations:
1. Extract filters
2. Data source filters
3. Context filters
4. Dimension filters
5. Measure filters
6. Table calc filters

// Optimize calculations
// Bad: Nested LODs
{ FIXED [Customer] : MAX({ FIXED [Order] : SUM([Sales]) }) }

// Good: Single LOD with nested aggregation
{ FIXED [Customer] : SUM([Sales]) }

// Use boolean instead of string
// Bad:
Status = "Active"

// Good:
Is Active (boolean field)

// Reduce mark count
// Use aggregated data
// Filter to relevant data only
// Use extracts for large datasets

// Optimize dashboard
// Limit number of worksheets
// Use dashboard actions instead of filters
// Hide unused fields
// Reduce number of marks (<1000 ideal)

Advanced Techniques

Sets:

// Static set
Top 10 Customers
Condition: By field, Top 10 by SUM([Sales])

// Dynamic set
High Value Orders
Condition: SUM([Order Amount]) > [Threshold Parameter]

// Combined sets
VIP and Recent
[Top Customers] AND [Recent Purchasers]

// Set action
// Allow users to select items to add to set
Action: Add/Remove from Set
Source: Product list
Target Set: Selected Products
Run on: Select

// Using sets in calculations
Is Top Customer
[Customer] IN [Top 10 Customers]

Customer Type
IF [Customer] IN [VIP Set] THEN "VIP"
ELSEIF [Customer] IN [Top 100 Set] THEN "High Value"
ELSE "Standard"
END

Analytics Pane:

// Reference lines
Average line: AVG(SUM([Sales]))
Median line: MEDIAN(SUM([Sales]))
Constant: [Target Parameter]

// Reference bands
Quartiles: 25th to 75th percentile
Custom: [Low Threshold] to [High Threshold]

// Distribution bands
Percentages: 60%, 80%, 95%
Standard deviation: 1, 2, 3 sigma

// Box plot
Whiskers: 1.5 * IQR
Outliers: Points beyond whiskers

// Trend lines
Linear, Logarithmic, Exponential, Polynomial
Show equation
Show R-squared value
Forecast: 12 months forward
Confidence interval: 95%

// Forecast
Automatic: Tableau selects model
Ignore last: N periods (for backtesting)

Best Practices

1. Dashboard Design

  • Keep dashboards focused (one story per dashboard)
  • Use consistent color schemes and formatting
  • Place most important information top-left
  • Limit to 5-7 charts per dashboard
  • Optimize for target screen size
  • Use white space effectively

2. Performance

  • Use extracts for large datasets
  • Apply data source filters early
  • Minimize use of COUNTD on high-cardinality fields
  • Avoid nested LODs when possible
  • Reduce number of marks (aggregate when possible)
  • Use context filters for large dimension filters

3. Calculations

  • Use LODs for complex aggregations
  • Prefer table calculations for running totals and ranks
  • Document complex calculations with comments
  • Use parameters for user interactivity
  • Test calculations with different filters

4. Data Modeling

  • Use relationships instead of joins when possible
  • Minimize use of data blending
  • Clean data at source when possible
  • Create calculated fields in data source
  • Use appropriate data types

5. Governance

  • Establish naming conventions
  • Document data sources and calculations
  • Use folders to organize content
  • Implement row-level security
  • Version control workbooks
  • Set appropriate permissions

Anti-Patterns

1. Overusing Blending

// Bad: Blend when relationship would work
Primary: Sales (blend on Date, Product)
Secondary: Costs (blend on Date, Product)

// Good: Use relationship or join
Sales <- (Product ID) -> Costs

2. Inefficient LODs

// Bad: Nested LODs
{ FIXED [Customer] :
    MAX({ FIXED [Order] : SUM([Amount]) })
}

// Good: Single LOD
{ FIXED [Customer] : SUM([Amount]) }

3. Too Many Marks

// Bad: Scatter plot with 100K points
// Good: Aggregate or filter data
// Use density marks for large datasets

4. No Extract Optimization

// Bad: Extract entire table without filters
// Good: Filter to relevant data, aggregate dimensions

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.72%
按下载量换算307

OpenCode

24.24%
按下载量换算259

Codex

19.29%
按下载量换算206

Antigravity

13.24%
按下载量换算142

Gemini CLI

8.1%
按下载量换算87

windsurf

3.93%
按下载量换算42

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills