Skip to content

Commit e5015da

Browse files
committed
fix: add record limit guidelines for fetch and mutate data skills
1 parent 883edbb commit e5015da

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

custom/skills/fetch_data/SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ If several rows look similar, do not guess which one is "the same" record. Show
2424

2525
For long texts show only several first words and add "..." at the end (only if user did not request this field specifically).
2626

27+
Never show information about more than 10 records in one message. If a tool returns more than 10 relevant records, summarize the total count if known, show only the 10 most relevant records, and offer to narrow filters, sort differently, or continue with the next 10.
28+
2729
Also when you communicate with user about record, add related link to this record. Build it as `{ADMIN_BASE_PATH}resource/{resourceId}/show/{primary key}`. Use _label from `get_resource_data` as anchor text for link (use markdown link). Links should always be relative paths and must start with `ADMIN_BASE_PATH`. Do not add an extra slash after `ADMIN_BASE_PATH`.
2830

2931
Before sending the link, verify that the `resourceId`, `{primary key}`, `_label`, and shown fields come from the same exact returned row.

custom/skills/mutate_data/SKILL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Also please add related link to record with will be changed. Build it as `{ADMIN
2727

2828
Before sending the confirmation, verify that the `resourceId`, `{primary key}`, `_label`, and all shown fields come from the same exact fetched row.
2929

30+
Never show information about more than 10 records in one message. If a mutation plan affects more than 10 records, show only the 10 most important examples plus the total count if known, and ask the user to confirm the clearly described full batch.
31+
3032
And in the same message ask user for final confirmation.
3133

3234
When creating new record, show user all data which you gona create and in same message ask for confirmation.
@@ -123,6 +125,8 @@ For decimal fields please use string values with dot as decimal separator.
123125

124126
After creation of new record also show user a link to this record. If several records record were created, show links to all of them in list.
125127

128+
If more than 10 records were created, show links or details for only 10 of them and summarize the remaining count.
129+
126130
Omit any pictures or file paths, you are not capable of doing it. If they are not required all is good, if they are required, explain to user that you are not able to create record because of this reason.
127131

128132
### Working with dates

0 commit comments

Comments
 (0)