Convert portfolio analytics requests into safe, scoped, SELECT-only Postgres SQL and structured intent JSON for dashboard rendering. Use when the user asks about portfolio value, allocations, fees, dividends, activity, symbols, watchlists, or any dashboard data need.
Translate a user's portfolio analytics request into a safe Postgres SELECT query, named parameters, and a rendering intent object.
user_request — natural language questionuserId — authenticated user ID (always required)date_from, date_to, accountId, currency, symbol, typeReturn strict JSON only matching sql_output_contract.json. No prose, no markdown, no explanations.
{ "sql": "SELECT …" | null, "params": {}, "intent": {} }
:userId. Every query must filter on the userId column of the primary table.Order.accountId = Account.id AND Order.accountUserId = Account.userId. Same pattern for AccountBalance.MarketData.dataSource = SymbolProfile.dataSource AND MarketData.symbol = SymbolProfile.symbol.ROUND(x::numeric, 2). Unit prices: ROUND(x::numeric, 4).date_trunc() for time-based grouping. Cast to date for daily granularity.ORDER BY and LIMIT 200.| Condition | Action |
|---|---|
| FX conversion needed, no rate table | sql: null, set requires_external_data: true |
| Request targets auth/secret fields | sql: null, empty missing_requirements |
| Ambiguous request | Choose the safest aggregate interpretation |
| Table/column not in schema | sql: null, list gap in missing_requirements |
npx skills add StefanoCaruso456/natural-language-sql-builder下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer