From altertable
Creates data insights (SQL, Semantic, Segmentation, Funnel, Retention, FYI) with visualizations that enter an approval workflow. Use for sharing findings, patterns, analysis results, or reports.
npx claudepluginhub altertable-ai/skills --plugin altertableThis skill uses the workspace's default tool permissions.
To create an insight:
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Builds production-ready Apache Airflow DAGs with patterns for operators, sensors, testing, and deployment. For data pipelines, workflow orchestration, and batch jobs.
Share bugs, ideas, or general feedback.
To create an insight:
| Type | Use Case | Visualization |
|---|---|---|
| SQL | Custom query results | Yes |
| Semantic | Metrics from semantic layer | Yes |
| Segmentation | Event metrics over time, compared across property-based segments | Yes |
| Funnel | Conversion analysis | Yes |
| Retention | Do users come back after an event? | Yes |
| FYI | Informational findings | No |
Before creating an insight:
Before choosing, triage through these questions:
Select based on the analysis:
See the deciding-actions skill for the full decision matrix and disambiguation rules.
Always preview before creating:
Create with:
Discoveries flow through an approval workflow:
pending --> approved | rejected
| State | Description |
|---|---|
pending | Awaiting review |
approved | Approved |
rejected | Rejected |
Both transitions are reversible: an approved discovery can later be rejected, and a rejected one can later be approved.
For custom query-based insights:
1. Write and validate SQL query
2. Preview SQL insight with the query
3. Choose appropriate visualization
4. Create discovery with insight
query: The SQL queryconnection_slug: Which connection to queryvisualization: Chart type (Line, Bar, Table, etc.)For metrics from the semantic layer:
1. Select source and measures
2. Add dimensions for grouping
3. Apply filters
4. Preview and validate
5. Create discovery
source_slug: Semantic source to querymeasures: List of measures to aggregatedimensions: Dimensions for groupingfilters: Filter conditionsvisualization: Chart typeFor segment and cohort comparisons:
1. Select the events/metrics to analyze
2. Choose aggregation (count, unique users, sum, average)
3. Add breakdowns by event, user, or session properties
4. Set filters and time range
5. Preview segment results
6. Create discovery
event_definitions: Which events to analyzeaggregation_mode: How to aggregate results (count, unique users, sum, average)breakdowns: Properties used to compare segmentsfilters: Segment/filter criteriatimeframe: Analysis periodFor conversion analysis:
1. Define funnel steps (events)
2. Set conversion window
3. Choose ordering (strict/any)
4. Preview funnel metrics
5. Create discovery
steps: Ordered list of eventsconversion_window: Time allowed between stepsordering: Strict sequence or any orderFor analyzing whether users come back after a starting event:
1. Define the start event
2. Define the returning event
3. Set time range
4. Preview retention results
5. Create discovery
start_event: The initial event that begins the retention windowreturning_event: The event that counts as a returntimeframe: Analysis periodNote: Retention can be previewed via the
preview_insightMCP tool but is not currently exposed for creation via MCP (nocreate_retention_insighttool).
For informational findings without visualization:
1. Write clear title
2. Provide detailed description
3. Add supporting context
4. Create FYI discovery
Good titles are:
| Good | Bad |
|---|---|
| "Mobile conversion rate dropped 20% in Q4" | "Conversion issue" |
| "New users from organic search up 3x" | "Traffic increase" |
| "Cart abandonment spikes on weekends" | "Weekend pattern" |
Descriptions must be 200 characters or less.
Include:
Mobile conversion dropped 20% (3.2% to 2.5%) last month, coinciding with the March 1st checkout redesign. Consider A/B testing the previous flow.
| Data Type | Recommended |
|---|---|
| Time series | Line, Area |
| Comparison | Bar, BarList |
| Distribution | Pie, Bar |
| Single metric | Metric |
| Detailed data | Table |
| Funnel | Funnel (built-in) |
| Retention | Retention (built-in) |
If rejected:
reason on the feedback for specific issuesCommon rejection reasons and fixes:
| Reason | Fix |
|---|---|
| "Already known" | Search for existing insights before creating |
| "Not actionable" | Add specific recommendation |
| "Too vague" | Include concrete numbers and timeframes |
| "Wrong audience" | Check if insight matches user's domain |
| "Stale data" | Verify timeframe is current |