/keboola-git:keboola-gitfrom keboola-git
Manages Keboola-managed Git (Forgejo) repos for python-js data apps via kbagent CLI: provisioning, cloning, credential creation, pushing source, working around the 15MB push cap, and deploying.
Ships in keboola-git. 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.
Keboola python-js data apps can host their source in a Keboola-managed Git repo (Forgejo) instead of GitHub. This skill gives you the context to access those repos through the kbagent CLI: provision a repo, mint a push credential, push source in with raw git, and deploy. kbagent has no repo-copy helper — you drive git clone / git remote add / git push yourself.
Use this for: reading or writing a managed Forgejo repo for a python-js data app; moving an app's source between GitHub and Keboola git; pushing source and deploying from the managed repo.
Not for: authoring the contents of keboola-config/ (nginx, supervisord, setup.sh) — that's the dataapp-developer:dataapp-development skill, which also covers Streamlit app development. This skill assumes the app source already exists somewhere; it handles the git plumbing to get it into Keboola and deployed.
If the app's source is in a GitHub repo (github.com, or a GHE host the stack is configured for; the MCP takes only *.ghe.com ones), the app can deploy straight from that repo with organization auth. The platform reads it through the Keboola organization's GitHub App connection, so there is no copy into Keboola git, no PAT and no 15MB push cap. Offer it before copying, and before asking for a PAT or SSH key:
# a new app on the GitHub repo -- create deploys it, no separate deploy
kbagent data-app create --project <alias> --name "<Display Name>" --slug <slug> \
--git-repo https://github.com/<org>/<repo> --git-auth organization --git-branch main --type python-js --wait
# an existing app already on an EXTERNAL repo (PAT / SSH key) -- git-auth-set never deploys
kbagent data-app git-auth-set --project <alias> --app-id <id> --git-auth organization
kbagent data-app deploy --project <alias> --app-id <id> --wait
An app on a Keboola-managed repo can't switch. The managed repo is fixed when the app is created, and both git-auth-set and the MCP rebind refuse it. Every app created from the Keboola Apps page is one. For such an app, either copy the code into its managed repo (the rest of this skill), or create a new app on the GitHub repo, but only once the user agrees to a second app next to the managed one.
Confirm the prerequisites before creating: a missing connection only shows up at deploy time. create --wait then deletes the new app again (unless --keep-on-failure), so the user ends up with nothing deployed.
Through MCP it's modify_python_js_data_app(git_repository="https://github.com/<org>/<repo>", git_auth="organization", branch="main"). Prerequisites: the Keboola GitHub App installed on the GitHub organization and that organization connected to the Keboola organization, both done by someone who is a Keboola organization admin and an owner of the GitHub organization (https://help.keboola.com/management/organization/#connect-github). Limits: https URLs only, github.com or a GHE host the stack is configured for. Drafts and previews run through the MCP draft flow with a push token that expires in about an hour (dataapp-developer skill, python-js-prod-and-drafts.md). The app has no managed repo, so the rest of this skill doesn't apply to it. Copy into Keboola git instead when the repo isn't on GitHub or the organization can't be connected. Details and errors: plugins/dataapp-developer/skills/dataapp-development/references/github-organization-auth.md.
All git and kbagent operations run from the user's project root or a scratch clone created under the user's CWD — never from this skill/plugin directory.
./.keboola-git-work/<app>/ under the user's CWD. Add .keboola-git-work/ to the project .gitignore so the scratch clone is never committed.git rev-parse --is-inside-work-tree.PATH (kbagent --version). Install the kbagent plugin from this marketplace with /plugin install kbagent@keboola-claude-kit, then run /kbagent:setup to install the CLI. Usage: the kbagent:kbagent skill.kbagent --json project add --alias <alias> --url <stack-url> --token-env KBC_TOKEN
export KBAGENT_CONVERSATION_ID=$(uuidgen)
--json so you can parse app_id, https_url and the credential secret reliably. The output is under .data.git-credentials-create refuses any other token (403).Existing app — find it:
kbagent --json data-app list --project <alias>
The list also shows drafts and apps on external repos. Check each python-js app with
kbagent --json data-app git-repo --project <alias> --app-id <app_id>: the prod app on a managed
repo has is_managed_git_repo: true. A draft has false and the URL of its prod app's repo.
Note the prod app's app_id (<id> below).
Create an app + repo — only when the project has no python-js app on a managed repo:
kbagent --json data-app create --project <alias> --name "<Display Name>" --slug <slug> \
--description "<desc>" --type python-js --use-managed-git-repo
Returns app_id. It does not deploy: the repo has no app code yet.
Creating an app creates a managed repo, every time. The repo can never be attached to an existing app afterwards, so a stray app is a stray repo. Look before you create, and when your context already names the app (the page you were opened on, an id in the request) just use that id.
This skill's flow below targets the prod app's main. kbagent has no draft command. To stage
changes on a branch behind a preview instead, the MCP draft flow
(create_python_js_data_app_draft on a pushed branch) is in
plugins/dataapp-developer/skills/dataapp-development/references/python-js-prod-and-drafts.md.
Run this as one shell command, from inside the clone you push from (for a copy: clone the
source first, §3). Each command you run starts a new shell, so $TOKEN is gone after this one.
The keboola remote is what carries the credential to the later steps.
CRED=$(kbagent --json data-app git-credentials-create --project <alias> --app-id <id> \
--type http_token --permissions readWrite --name push --yes)
TOKEN=$(jq -er '.data.credential.secret' <<<"$CRED") || { jq -c '.error' <<<"$CRED" >&2; exit 1; }
REPO=$(kbagent --json data-app git-repo --project <alias> --app-id <id>)
HTTPS_URL=$(jq -er '.data.https_url' <<<"$REPO") || { jq -c '.error' <<<"$REPO" >&2; exit 1; }
git remote add keboola "https://kai:${TOKEN}@${HTTPS_URL#https://}"
HTTPS_URL is https://git.<stack>/keboola/app-<id>.git. The token works as the password with any username.
Always mint against the prod app. A draft runs a branch of the prod app's repo and owns none.
data-app git-credentials lists the existing ones (never their secrets).echo it into a file, never paste it into a log or message. Read it with jq from a variable, as above, so the secret never reaches your context..git/config holds the secret. Don't print it (git remote -v, git config --get remote.keboola.url), and run git remote remove keboola when you are done.git clone --single-branch --branch main "https://kai:${TOKEN}@${HTTPS_URL#https://}" app.--git-repo <url> gets 409.mkdir -p ./.keboola-git-work && cd ./.keboola-git-work
git clone --single-branch --branch <branch> <source-repo> app
Add the keboola remote (§2) from inside ./.keboola-git-work/app, then join and push:
cd ./.keboola-git-work/app
# A new app's repo starts with one commit on `main` (Forgejo's README.md). Join it so the
# push is a fast-forward; on a conflict your files win. An older app's repo may be empty:
# then there is nothing to join. More than one commit means `main` already has app code:
# stop and ask the user instead of pushing over it.
if git ls-remote --exit-code --heads keboola main >/dev/null; then
git fetch keboola main
if [ "$(git rev-list --count FETCH_HEAD)" = 1 ]; then
git merge --allow-unrelated-histories -X ours --no-edit FETCH_HEAD
else
echo "STOP: main already has app code"
fi
fi
git push keboola HEAD:main # skip when the step above printed STOP
main, so join it (above) before the first push, or the push is rejected. Never force-push past it.main. On an older, empty repo the first branch pushed becomes the default, so push main first.dataapp-developer:dataapp-development skill.Forgejo rejects pushes over ~15MB with HTTP 413. A single file over the limit cannot be split — you must not track it.
Push source only. Repos that commit their build (e.g. frontend/.next ~55MB, often including a 15.3MB macOS sharp binary that's also the wrong binary for the Linux runtime) must move the build into deploy time:
Size guard before pushing:
find . -size +15M -not -path '*/.git/*'
If a build dir is tracked, stop tracking it and gitignore it:
git rm -r --cached frontend/.next
printf '%s\n' 'frontend/.next/' 'node_modules/' >> .gitignore
Move the build into keboola-config/setup.sh so it runs in the Linux container at deploy:
# in keboola-config/setup.sh, run from the app's frontend dir:
cd frontend && npm ci && npm run build
# Next.js output:'standalone' does NOT copy static assets — copy them so the
# standalone server.js can serve them. The destination MIRRORS the path from the
# Next.js workspace root, so it differs by layout — detect where server.js landed:
# find .next/standalone -maxdepth 3 -name server.js
# Single-package repo (workspace root == frontend/, server.js at .next/standalone/server.js):
cp -r .next/static .next/standalone/.next/static
cp -r public .next/standalone/public
# Monorepo (workspace root above frontend/, server.js at .next/standalone/frontend/server.js):
# cp -r .next/static .next/standalone/frontend/.next/static
# cp -r public .next/standalone/frontend/public
For the exact setup.sh / nginx / supervisord wiring, cross-reference the dataapp-developer:dataapp-development skill.
Commit the source-only tree, then re-run the size guard (no tracked file >15MB).
Check git history, not just the working tree (CRITICAL). git push sends every
object reachable from the pushed ref — so a build committed in an earlier commit still
gets pushed and still 413s, even after step 2 removes it from HEAD. The find guard only
sees the working tree. Check reachable blobs:
git rev-list --objects HEAD \
| git cat-file --batch-check='%(objecttype) %(objectsize) %(rest)' \
| awk '$1=="blob" && $2>15000000 {print $2, $3}'
If anything prints, the over-cap blob is in history. Two remedies:
git checkout --orphan clean-main && git add -A && git commit -m "Source-only (build at deploy)"
# join the repo's initial commit first (§3), then:
git push keboola clean-main:main
git filter-repo (or BFG), then push.If a push still 413s, re-run both guards (working tree and history) and report the offending file — the user must decide how to externalize it (it can't be split).
kbagent data-app deploy --project <alias> --app-id <id> --git-branch main --wait
--git-branch main is used only while the app has no git block in its configuration (its first deploy). Then it names the branch that holds the code; otherwise it has no effect.
Verify from the logs — they are the authoritative signal (build is ~90s+ for npm ci + next build; setup_sh can take ~2min total):
kbagent data-app logs --project <alias> --app-id <id> --lines 300
Look for, in order: ✓ Compiled successfully and Generating static pages (the next build
finished), Completed: setup_sh (the static-asset cp succeeded — under set -e a wrong
copy path would abort here), then success: node-frontend entered RUNNING state and
✓ Ready in …ms (the standalone server is up on :3000). The python service shows
success: python-api entered RUNNING state. If a deeper window is dominated by one service's
restart loop, raise --lines to see the other service's earlier startup.
Do NOT rely on an HTTP probe to confirm the frontend. An unauthenticated GET / returns
the Keboola platform login gate (HTTP 200, <title>Login</title>, no _next/static
references) — that's the platform auth proxy in front of the container, not your app. And
POST / returns 200 from the nginx location = / health rule regardless of app state. Real
proof that the built frontend serves is node-frontend entered RUNNING + Ready in in the
logs (optionally: authenticate with the app password, then check the HTML references
/_next/static/…).
Get the app password / set secrets + redeploy as needed:
kbagent data-app password --project <alias> --app-id <id> --copy # copies it; never prints it
kbagent data-app secrets-set --project <alias> --app-id <id> --secret '#KEY=VAL'
Success = repo in Keboola git + app deploys + container builds + node-frontend RUNNING + backend process starts. Backend data errors — e.g. python-api crash-looping on a Storage 404 Not Found from its startup data load — mean the app is running and looking for tables that don't exist in an empty project. That's a data condition, not a git/deploy failure.
Full command catalog, the 413/build-at-deploy recipe, and the gotchas table live in
references/managed-git.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub keboola/ai-kit --plugin keboola-gitOther plugins' skills for the same job