Skip to content

docs(skill): add library-workflow reference for the Python facade - #419

Merged
padak merged 1 commit into
mainfrom
docs/library-workflow
Jun 14, 2026
Merged

docs(skill): add library-workflow reference for the Python facade#419
padak merged 1 commit into
mainfrom
docs/library-workflow

Conversation

@padak

@padak padak commented Jun 14, 2026

Copy link
Copy Markdown
Member

Why

The library facade (#416, 0.61.0/0.61.1) had docs scattered across the README, lib.py docstrings, gotchas.md, and the keboola-expert matrix — but no dedicated reference workflow doc like every other kbagent surface (storage-files, workspace, sync, ...). Asked: "where's the guide for using kbagent as a Python library?"

What

New plugins/kbagent/skills/kbagent/references/library-workflow.md — a single guide for from keboola_agent_cli import Client:

  • Quick-reference table (Client, query, files.*, raw, FileEntry).
  • Auth & construction (stateless, 12-factor, branch scoping, fail-fast).
  • query() with the string-typing gotcha front and center (Snowflake returns strings; cast caller-side), plus the UPPERCASE-folding, truncation-warning, and provisioned-workspace facts.
  • Storage Files (upload from path or bytes, read_bytes, list, delete; the FileEntry shape; the deliberate read_bytes-over-signed-url design).
  • Client.raw escape hatch.
  • A "When NOT to use the library" table (MCP for AI exploration, CLI for shell ops, serve for an HTTP API).

Linked from the SKILL.md Workflow references table. The auto-generated command table (between the BEGIN/END AUTO-GENERATED COMMANDS markers) is untouched.

Tests

make skill-check green (SKILL.md is up-to-date), format-check green. Documentation-only — no version bump, no changelog (plugin skill content, not a CLI code release).


Open in Devin Review

New references/library-workflow.md documents `from keboola_agent_cli import
Client` -- in-process query + Storage Files, the string-typing gotcha, auth,
branch scoping, FileEntry shape, and when-not-to-use. Linked from the SKILL.md
Workflow references table (manual section; the auto-generated command table is
untouched).
@padak
padak merged commit 97c0d28 into main Jun 14, 2026
1 check was pending
@padak
padak deleted the docs/library-workflow branch June 14, 2026 16:58

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Open in Devin Review

| **Agent Tasks via REST** (`kbagent http <verb> /agents...` from inside scheduled subprocesses; SSE streaming) | [agent-tasks-rest-workflow](references/agent-tasks-rest-workflow.md) |
| **Data apps** (create / deploy / start / stop / password / delete; the §9 redeploy contract) | [data-app-workflow](references/data-app-workflow.md) |
| Storage Files (upload, download, tags, load/unload) | [storage-files-workflow](references/storage-files-workflow.md) |
| **Python library** (`from keboola_agent_cli import Client` -- in-process query + Storage Files, no CLI/daemon/config-dir) | [library-workflow](references/library-workflow.md) |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Missing SKILL.md description trigger keywords for the new Python library topic area

The CONTRIBUTING.md mandates: "update the description: trigger keywords when introducing a new topic area (so description-matching auto-triggers the skill)". The Python library facade (from keboola_agent_cli import Client) is a new topic area, but the SKILL.md description: block (plugins/kbagent/skills/kbagent/SKILL.md:4-68) was not updated with relevant trigger keywords. Without keywords like python library, keboola_agent_cli, import Client, in-process query, Client facade, library workflow, etc., the skill will not auto-trigger when a user asks about using the Python library programmatically. The workflow row was correctly added to the table (line 412), but the description triggers were missed.

Prompt for agents
The SKILL.md description block (lines 4-68, inside the YAML frontmatter) needs trigger keywords added for the new Python library topic area. Add keywords like: python library, keboola_agent_cli, import Client, from keboola_agent_cli import Client, in-process query, library facade, Client facade, Files facade, FileEntry, stateless library, no CLI subprocess, no daemon to the description field in the YAML frontmatter. These should be added in the Triggers: section (around line 13-68) so that description-matching auto-triggers the skill when users ask about the Python library. This is a mandatory CONTRIBUTING.md requirement under 'Documentation changes (mandatory!)' > SKILL.md non-table portions.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant