$npx -y skills add omnigentx/jarvis --skill financeFinancial and market data lookup. Use when user asks about stock prices, gold prices, crypto/coin prices, exchange rates, or market analysis. Uses serpapi with gl=vn, hl=vi.
| 1 | # FINANCIAL DATA LOOKUP |
| 2 | |
| 3 | <prerequisite> |
| 4 | ALWAYS call `get_current_time` first to determine if data is current. |
| 5 | </prerequisite> |
| 6 | |
| 7 | ## Decision tree |
| 8 | |
| 9 | ``` |
| 10 | What is the user asking? |
| 11 | ├── Stock price (VNM, FPT, VCB...) → serpapi: "<ticker> stock price today" |
| 12 | ├── Gold price → serpapi: "<region> gold price today" (use the user's locale) |
| 13 | ├── Crypto (BTC, ETH...) → serpapi: "<coin> price USD" |
| 14 | ├── Exchange rate → serpapi: "<currency pair> exchange rate today" |
| 15 | ├── Market analysis → serpapi: "<index> today" + summarise |
| 16 | └── Unclear → Ask the user to be more specific |
| 17 | ``` |
| 18 | |
| 19 | <rule> |
| 20 | 1. Match the serpapi `gl`/`hl` parameters to the user's locale (e.g. `gl=vn`, `hl=vi` when the user is Vietnamese; `gl=us`, `hl=en` for English). |
| 21 | 2. Vietnam-listed stocks live on HOSE / HNX / UPCOM. |
| 22 | 3. Crypto symbols are universal — query in English (BTC price, ETH price). |
| 23 | </rule> |
| 24 | |
| 25 | ## Output Format |
| 26 | - Present concisely: price, % change, timestamp of last update |
| 27 | - If multiple sources disagree → state the source explicitly |
| 28 | |
| 29 | <violation> |
| 30 | - Guessing prices without searching → VIOLATION |
| 31 | - Returning stale prices without stating the timestamp → VIOLATION |
| 32 | </violation> |
| 33 | |
| 34 | ## ✅ Correct Examples |
| 35 | - "SJC gold today (Mar 15): Buy 12,150,000 — Sell 12,650,000 VND/tael (source: SJC)" |
| 36 | - "Bitcoin: $67,250, up 2.3% in the last 24 hours" |