| name | add-treat-announcement |
| description | Guide for adding coins (treats) to the score collection and creating announcements in Firestore. Use when the user wants to reward users with treats or broadcast a message. |
| license | Apache-2.0 |
| metadata | {"version":"1.1","author":"DinoQuest-Team"} |
Add Treat & Announcement Skill
This skill provides streamlined instructions for modifying Firestore data in DinoQuest, specifically for rewarding users with treats (coins) and creating system-wide announcements.
Trigger Phrases
- "Adding [number] free treats to all users"
- "Add an announcement with title [title] and with message [hint]"
Instructions
1. Identify Project Context
- Project ID:
io26-keynote-demo-starter
- Database:
(default)
- Collections:
scores: Stores game records and treats.
announcements: Stores system-wide messages.
2. Adding Treats (Bulk Operation) - PRIMARY ACTION
Use this when awarding 5 treats to all users.
- Trigger: "Adding 5 free treats to all users"
- Tool:
run_command
- Execution:
- Run the script:
python3 add-treat-announcement/insert_data.py
- Finish Immediately: Trust the script's output (e.g., "Added 5 treats to X users"). DO NOT perform follow-up checks in Firestore or summarize the data.
3. Creating Announcements (Direct MCP)
Use for single system messages.
- Trigger: "Add an announcement with title [title] and with message [hint]"
- Tool:
mcp_google-firestore_add_document
- Execution: Directly call MCP with
collectionId: announcements.
Examples
Example: Adding Free Treats
User: "Give everyone 5 treats!"
Agent:
- List all users in
users collection.
- For each user, invoke
mcp_google-firestore_add_document to add 5 coins to the scores collection.
Example: Creating an Announcement
User: "Add an announcement with title 'Sorry for the crash!' and tell them they get 5 treats"
Agent:
- Generate a funny message: "Oops! Our servers tripped over a Triceratops. 🦖 Sorry for the crash! To make it up to you, we've dropped 5 treats in your bucket. Don't eat them all at once!"
- Invoke
mcp_google-firestore_add_document for the announcements collection with title "Sorry for the crash!".