name: lists category: productivity description: Manage local lists (shopping, to-do, etc.) stored as files. Add, remove, check and read items. Tools: file_storage.
Lists Skill
Manages simple text lists stored locally on the device – no internet, no cloud.
Tool: file_storage
All list operations use the file_storage tool.
IMPORTANT: All file_storage calls for lists MUST include type: "list" parameter.
Data format: One list = one file. Each item is stored on its own line.
File names: Lowercase list name, e.g. shoppinglist, todo, packlist.
Workflow: Add an item
Examples: "Add milk to the shopping list" / "Put milk on the shopping list"
file_storage→readwithfilename: "shoppinglist",type: "list"→ read existing items- Check whether the item is already present (if yes: tell the user, do nothing)
- Append the new item at the end
file_storage→writewithfilename: "shoppinglist",type: "list", and the updated content (all lines, one item per line)- Confirm: "Milk has been added to the shopping list."
Workflow: Remove an item
Examples: "Remove milk from the shopping list" / "Delete milk from the shopping list"
file_storage→readwithfilename: "shoppinglist",type: "list"- File does not exist → "The shopping list is empty or does not exist."
- Remove matching line(s) (case-insensitive, partial match allowed)
file_storage→writewithfilename: "shoppinglist",type: "list", and the cleaned content- Confirm: "Milk has been removed from the shopping list."
- No match found → "Milk is not on the shopping list."
Workflow: Read / show a list
Examples: "What's on the shopping list?" / "Show me my shopping list"
file_storage→readwithfilename: "shoppinglist",type: "list"- File empty or missing → "The shopping list is empty."
- Enumerate items: "Your shopping list contains: milk, bread, eggs."
Workflow: List all lists
Examples: "Which lists do I have?" / "What lists are there?"
file_storage→list(nofilenameneeded, but note that only files withtype: "list"are shown in the lists screen)- No files → "You have no lists saved yet."
- List the names: "You have the following lists: shoppinglist, todo, packlist."
Workflow: Check whether an item is on a list
Examples: "Is milk already on the shopping list?" / "Is bread on the list?"
file_storage→readwithfilename: "shoppinglist",type: "list"- Search for the item (case-insensitive)
- Found → "Yes, milk is already on the shopping list."
- Not found → "No, milk is not on the shopping list yet."
Workflow: Delete an entire list
Examples: "Delete the shopping list" / "Clear the shopping list"
file_storage→deletewithfilename: "shoppinglist"(type parameter not needed for delete)- Confirm: "The shopping list has been deleted."
Examples
- "Add milk to the shopping list" → add item (use
type: "list"in file_storage calls) - "Add bread and butter to the shopping list" → add multiple items in one go (one
readwithtype: "list", then onewritewithtype: "list"and all new items appended) - "What's on the shopping list?" → read list (use
type: "list") - "Remove milk from the shopping list" → remove item (use
type: "list"in file_storage calls) - "Is milk already on the shopping list?" → check item (use
type: "list") - "Which lists do I have?" → list all lists
- "Create a packing list" → create new empty file (write with
type: "list"and empty content) - "Delete the shopping list" → delete file