/dataapp-developer:dataapp-developmentfrom dataapp-developer
Guides building, modifying, deploying, and debugging Keboola Apps (Streamlit or Python/JS). Covers app type selection, prod-and-drafts model, storage access, DuckDB caching, authentication, deployment from private GitHub repos, and three client paths (MCP, Claude Code, kbagent CLI).
Ships in dataapp-developer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill covers the full lifecycle of Keboola Apps (formerly "Data Apps"): choosing the right app type, building locally, deploying, and debugging. It supports both Streamlit apps and Python/JS apps, and three client paths (MCP-only, Claude Code with filesystem access, and kbagent CLI).
The skill is a router — it does not contain all the guidance itself. The references/ files load on demand based on the task at hand. Read the decision tree below, then load only the references you need.
A client with its own extras skill (Kai in the Builder loads dataapp-building-kai-extras) follows that skill's reading list instead of this tree, and opens a reference here only when that skill points at it.
Answer these questions in order. Each answer routes to the right reference.
| Task | Where to look first |
|---|---|
| Build a new app from scratch | references/choosing-app-type.md → type-specific reference → references/deployment-paths.md. Python/JS: read references/python-js-prod-and-drafts.md first — a prod app usually exists already |
Anything that will call modify_python_js_data_app | references/python-js-prod-and-drafts.md, before the call |
| Modify an existing app (add feature, fix bug) | references/dev-workflow.md for the change loop. Python/JS: continue the app's draft — references/python-js-prod-and-drafts.md |
| See what a draft actually shows | references/dev-workflow.md §Verify a draft — a preview link opened in your own browser |
| Read, describe, or push from a clone you did not just make | references/existing-clone.md |
| Deploy or redeploy | references/deployment-paths.md |
| Deploy from a private GitHub repo, or about to ask the user for a PAT or SSH key | references/github-organization-auth.md — offer the organization connection first |
| Debug a deployment or runtime issue | references/troubleshooting.md |
| Migrate an existing app between types | references/choosing-app-type.md + references/streamlit-apps.md + references/python-js-apps.md |
If unsure → references/choosing-app-type.md. Short version:
references/streamlit-apps.md.templates/react-vite-app/; everything the browser loads is bundled. Read references/python-js-apps.md.references/python-js-apps.md (multi-server section).references/deployment-paths.md covers all three:
modify_streamlit_data_app / deploy_data_app; Python/JS via modify_python_js_data_app + create_python_js_data_app_git_credential + git + deploy_data_app (see references/python-js-prod-and-drafts.md; needs a git-capable runner).references/github-organization-auth.md).kbagent): Full lifecycle via kbagent data-app command group.| Concern | Reference |
|---|---|
| Reading from / writing to Keboola Storage (RO default uses DuckDB cache) | references/storage-access.md + references/duckdb-caching.md |
| Per-user data: the app user token, the Storage token, row-level security, simple queries, per-user caches, background jobs | references/storage-access.md §The app user token, §Row-level security |
| Securing the app (login, SSO, OAuth) | references/authentication.md |
| Cutting DWH costs and speeding up read-only dashboards (default for RO apps) | references/duckdb-caching.md |
| Styling — default Keboola palette and footer | references/styling-guide.md |
| Styling — shadcn/ui, dark mode, ECharts on top of the template | references/styling-react-bundled.md |
| Building a dashboarding-style app | references/dashboard-patterns.md |
| Adding a natural-language assistant to the app | references/kai-integration.md |
| Source repos / canonical docs / UI navigation | references/glossary.md |
| Template | Use when |
|---|---|
templates/streamlit/ | New Streamlit app, code or git deployment. |
templates/python-app/ | New Python-only Python/JS app (Flask or similar). |
templates/react-vite-app/ | New Python/JS app — the default (React + Vite + Tailwind + Express). |
templates/python-node-app/ | Adding a Python backend next to the default template's Node server. |
templates/duckdb-cache/ | Adding the DuckDB caching pattern to an existing Python or Node app. |
The Keboola MCP server exposes a docs_query tool that searches the official Keboola Connection documentation. When this skill's references don't answer a question — UI navigation specifics, edge cases, recent platform changes — call docs_query to get the canonical answer rather than guessing or relying on stale memory.
.streamlit/secrets.toml or any file with real credentials. Add to .gitignore before committing.references/storage-access.md.POST / on the root path. Keboola POSTs to / on startup; the React + Vite template answers it in nginx. Streamlit handles this natively; Flask needs methods=["GET", "POST"]; Express needs app.all('/').pip install in Python apps. The base image blocks PEP 668. Use uv sync driven by pyproject.toml. All Python supervisord commands must use uv run.[program:nginx] in keboola-config/supervisord/. Nginx is managed by the base image.get_table and query_data to confirm schema before writing SQL. If the project has a semantic layer, check it first via search_semantic_context / get_semantic_context and ground the query in those definitions rather than inventing the calculation. See references/dev-workflow.md.which kbagent + scan for mcp__*[Kk]eboola* tools) and ask the user which to use if more than one is present. Don't silently pick. See references/deployment-paths.md §Pick one path per session.modify_streamlit_data_app, the source_code argument is the deployment artifact — don't pre-write a local copy. See references/deployment-paths.md Path A.references/storage-access.md §Getting the env vars for local development.configuration_id switches update into create (modify_python_js_data_app, modify_streamlit_data_app), the id is the decision, not a detail. Never send an empty one without saying in your reply that you are creating a new resource and why no existing one fits. For Python/JS apps a create also provisions a git repo that can never be attached later; a draft comes from create_python_js_data_app_draft, never from this tool. See references/python-js-prod-and-drafts.md.storage_access, and say it again if the app is no-auth, where anyone with the URL reaches data through it. Enabling it is fine and usually what they want; enabling it silently is not. See references/storage-access.md.storage_access, storage writable tables, authentication_type, image) goes on the prod app, before the draft is created; after a change, create the draft again on the same branch. A legacy draft's own config is lost when you convert it: say what changes. See references/python-js-prod-and-drafts.md §2.console.debug(`${rows.length} rows, columns: ${Object.keys(rows[0] ?? {})}`) ✓ — console.debug(rows) or a logged customer email ✗.<script src="https://cdn…">. A CDN outage, a compromised package or a page's content policy would break the app from outside it. New Python/JS apps start from templates/react-vite-app/, which already bundles React, Tailwind and Recharts. An app already on another stack keeps it: edit it in its own idiom, add no new CDN dependency, and move it to the template only on the user's yes — offer that when a change would rewrite most of the frontend anyway.kaiPreview(). It is how Keboola's app preview knows the app rendered, and how the user points you at a part of the page. When you change an existing Vite app whose vite.config lacks it, add it in that same change, without telling the user unless it fails; an older inline kaiPreviewErrorHandler does not count, kaiPreview() replaces it. See references/python-js-apps.md §Keboola's app preview.currentUserKey() (React + Vite template), and keep app.use(kbc.server.expressMiddleware()) in server/index.ts. See references/storage-access.md §Row-level security.X-Kbc-App-User-Token and X-StorageApi-Token; a call with no user sends only the Storage token. Choose the credential per request through a provider, never once for a shared client. The React + Vite template does this. See references/storage-access.md §The app user token.keboola-streamlit 0.4.0 or newer. Streamlit sees the user token once, when its WebSocket opens, and the token lives 5 minutes. get_app_user_token() from keboola-streamlit renews it through the apps proxy before it expires; never read X-Kbc-App-User-Token from st.context.headers yourself. Key every @st.cache_data of query results by get_app_user_key(). The Streamlit template does both. See references/streamlit-apps.md §Row-level security.@keboola/api-client/sdk/dataAppServer. Move an existing Node app over (no initializeApp() in server/kbcQuery.ts) when its prod config has runtime.workspace.rlsPolicies, when it or its log shows Row-level security does not allow this query (that app does not forward the user token: this is the cause, not the policy), when the user wants per-user data or row-level security, or when you change its server or data code. Do it on a draft like any change, compare what its runQuery returned with the SDK's typed, lower-case records and adapt the callers, and tell the user in one line that the app now queries as the signed-in user. The draft has no row-level security, so its preview shows the data but not the filtering. See references/storage-access.md §Row-level security, "An existing Node app".SELECT; preprocess in a transformation. Every read query the app sends to Query Service is one plain SELECT on Storage bucket tables, even where nothing is governed yet; work a plain SELECT cannot do goes into a Keboola transformation whose output table the app reads. A workspace governed by row-level security refuses anything else, and every write. See references/storage-access.md §Row-level security, "Simple queries only".@keboola/* package's API comes from its installed docs. This skill says which package to use and the platform rules around it; how to call it is in node_modules/<package>/README.md (and its docs/ where it has them), which match the installed version. Read them after npm install or npm ci instead of writing the API from memory.TODO.md (opens in a new tab)references/authentication.md (opens in a new tab)references/choosing-app-type.md (opens in a new tab)references/dashboard-patterns.md (opens in a new tab)references/deployment-paths.md (opens in a new tab)references/dev-workflow.md (opens in a new tab)references/duckdb-caching.md (opens in a new tab)references/existing-clone.md (opens in a new tab)references/github-organization-auth.md (opens in a new tab)references/glossary.md (opens in a new tab)references/kai-integration.md (opens in a new tab)references/python-js-apps.md (opens in a new tab)references/python-js-prod-and-drafts.md (opens in a new tab)references/storage-access.md (opens in a new tab)references/streamlit-apps.md (opens in a new tab)references/styling-guide.md (opens in a new tab)references/styling-react-bundled.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)templates/duckdb-cache/README.md (opens in a new tab)templates/duckdb-cache/nodejs/duck.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
keboola, data-apps, streamlit, python-js, deployment, duckdb-caching
npx claudepluginhub keboola/ai-kit --plugin dataapp-developer3 skills in this plugin
/mcp-data-appHost an MCP server as a private, single-tenant Keboola data app — a dedicated remote MCP endpoint on your own Keboola compute (Keboola MCP is the built-in example, but it wraps any streamable-HTTP / FastMCP server) with client auth. Use when a user wants a private or self-hosted MCP endpoint, or would benefit from one but hasn't asked (see "When to use this"). Keywords: host/self-host MCP server as Keboola data app, private/remote MCP endpoint, deploy MCP to Keboola./semantic-layer-usageUse right after a Keboola semantic-context tool returns, when building an app, query, report, or transformation from a semantic model. Ground the SQL in the model's own physical mapping (dataset `tableId`/`fqn`, metric SQL) and confirm the real columns before writing any query — do not build SQL from the business-facing display names.Other plugins' skills for the same job