Skip to content

Commit 41b2c0f

Browse files
ivictborCopilot
andcommitted
feat: enhance analyze_data skill description and clarify data fetching instructions
Co-authored-by: Copilot <copilot@github.com>
1 parent 585465d commit 41b2c0f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

custom/skills/analyze_data/SKILL.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
name: analyze_data
2-
description: Analyze AdminForth resource data, summarize trends, and compare distributions from fetched rows.
2+
description: Universal skill to analyze AdminForth resource data, summarize trends, and compare distributions from fetched rows.
33
---
44

55
# Involved tools
66

7-
Use `get_resource` first if you need to inspect resource structure and column names.
7+
Always call `get_resource` first if you need to inspect resource structure and column names.
88

9-
Use `aggregate` to fetch data for analytics whenever possible. This is the main tool for fast server-side aggregations, including filtered data, grouped metrics, and date buckets such as day, week, or month.
9+
Then you need to select between two main tools for fetching data:
1010

11-
Use `get_resource_data` only when the requested analysis cannot be answered with `aggregate`. This is heavier because it returns original rows with all fields, but it allows complex calculations, comparisons, and custom groupings in-memory.
11+
- Load and call `aggregate` tool to fetch data for analytics. This is the main tool for fast server-side aggregations, including filtered data, grouped metrics, and date buckets such as day, week, or month. Always prioritize this way of fetching data for analytics, as it is optimized for performance and reduces the amount of data transferred and processed in-memory.
12+
13+
- Load and call `get_resource_data` tool only when the requested analysis cannot be answered with `aggregate`. This is heavier because it returns original rows with all fields, but it allows complex calculations, comparisons, and custom groupings in-memory.
1214

1315
# Instructions
1416

0 commit comments

Comments
 (0)