Agent skill · writing content · aiskillstore

system-prompt

Edit or improve the AI system prompt used in DBX Studio's AI chat. Invoke when the user wants to change how the AI responds, its tone, tool usage order, or response format.

Why this skill is useful

Provides specific guidelines and structure for editing AI system prompts that enhance the AI's response quality and consistency.

What it needs

About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

System Prompt Editor — DBX Studio Prompt Locations There are two system prompts in this project: 1. Streaming Prompt (main, used in production) File: apps/api/src/routes/ai-stream.ts Lines: ~132–172 (with schema) and ~176–202 (without schema) Variable: contextPrompt (built inline, not a constant) 2. oRPC Provider Prompt (used in callAnthropicWithTools, callOpenAIWithTools) File: apps/api/src/orpc/routers/ai/providersWithTools.ts Variable: SYSTEMPROMPTWITHTOOLS (top of file) Current Prompt Structure (Streaming) Prompt Design Rules for DBX Studio 1. Results first — answer the question before showing SQL 2. Use tools always — never guess schema or data 3. Be concise — this is a data tool, not a chatbot 4. Show SQL only when asked — use You are DBX Studio's AI assistant — expert SQL analyst and data explorer. Tools Available (ordered by when to use) 1. readschema / gettableschema — FIRST, when schema is unknown 2. executequery / executesqlquery — run SELECT/WITH queries 3. gettabledata / selectdata — preview or filter rows 4. gettablestats — distributions and row counts 5. generatechart / generatebargraph — visualization 6. describetable / getenums — column details, enum values Response Rules 1. Results first — answer before explaining 2. Always use tools — never guess schema or data 3. Tool order matters (schema → query → chart) 4. Show SQL only when asked — use

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/system-prompt

View the source on GitHub

Browse the @skills marketplace