Skip to content

skills: convert the last four rpk skills to thin behavioral guidance - #130

Merged
JakeSCahill merged 12 commits into
redpanda-data:mainfrom
JakeSCahill:skills/thin-rpk-family-2
Nov 12, 2026
Merged

JakeSCahill merged 12 commits into
redpanda-data:mainfrom
JakeSCahill:skills/thin-rpk-family-2

Conversation

@JakeSCahill

Copy link
Copy Markdown
Contributor

Stacked on #110. Review the last 8 commits; the rest are #110's and drop out once it merges.

Converts the last four rpk skills to thin skills with the method from #110: rpk-cloud, rpk-debug, rpk-redpanda and rpk-transform. Each gets its own eval suite (fact cases plus behavioral cases on mocked tools, sourced from the public redpanda-data/redpanda repo at v26.2), run in all five arms, 3 runs each. Each skill is now 47 to 67 lines, and every reference file except SOURCES.md is gone.

Merging with #127: #127's rpk-cluster commit edits skills/rpk-redpanda/references/admin-and-decommission.md, which this PR deletes. Whichever merges second keeps the deletion.

How to work lines kept

Rates are baseline / skill / installed.

Skill Line Rates Why
rpk-debug Make a remote bundle cover every broker: remote-bundle asks only the configured Admin API addresses, so compare with rpk cluster info and pass every broker 0/3, 3/3, 3/3 Baseline fails
rpk-redpanda Check developer mode before starting a broker that holds real data; dev-container mode skips fsync and --mode dev-container persists 1/3, 2/3, 3/3 Safety guardrail (data loss)
rpk-redpanda Drain with rpk cluster maintenance enable <id> --wait before stopping a broker, and turn it off after 0/3, 3/3, 3/3 Baseline fails
rpk-redpanda Don't apply the autotuner on Azure self-managed 0/3, 3/3, 3/3 Baseline fails
rpk-transform Before redeploying a transform, carry over its deploy settings: a redeploy drops env vars and compression set with flags 0/3, 3/3, 3/3 Baseline fails; the full skill also failed it 0/3
rpk-cloud none Both behavioral cases passed 3/3 in the baseline

rpk-debug also keeps a scope paragraph: rpk debug doesn't work on Redpanda Cloud, where Support collects diagnostics. The docs arm failed that fact, so it stays as an "Other claims" entry, as in rpk-topic.

rpk-cloud keeps no procedure. Its facts are mostly covered by the docs, apart from the gaps below; reviewers may prefer to delete it.

Dropped because the baseline already follows them, recorded in each SOURCES.md: a separate profile for a second Cloud cluster, not enabling MCP deletes yourself, --logs-since for an older incident, checking the license first, decommission pre-checks, pausing instead of deleting a transform, and reprocessing with --from-offset.

Docs gaps

The rpk reference is generated from rpk's help text, so those gaps are fixed in rpk, not in the docs. Each SOURCES.md lists the page and the source.

rpk help text:

  • rpk cluster storage mount/unmount on Cloud accept only the kafka namespace (and the docs override's examples use other namespaces).
  • rpk cloud resource-group is hidden, so it has no reference page.
  • rpk cloud auth delete asks for confirmation when profiles use the auth.
  • rpk cloud login help states credential precedence backwards: flags override env, which overrides rpk.yaml. (A docs override already corrects the published page.)
  • rpk debug bundle: the --partition example spells the flag --partitions and uses a namespace that doesn't exist (the docs override repeats it); also undocumented: the home-directory fallback when the current directory isn't writable, controller log slicing over the size limit, and the Kubernetes namespace fallback.
  • rpk debug remote-bundle download: one ZIP per broker at <root>/<broker addr>/<job-id>.zip.
  • rpk redpanda start: dev-container mode applies whenever developer_mode is true, and start flags are written into redpanda.yaml.
  • rpk redpanda config bootstrap always replaces seed_servers, so leaving out --ips empties it.
  • rpk redpanda config print reads a running broker's Admin API, not the local file; its --host help names the wrong address list.
  • rpk redpanda tune takes several tuners as one comma-separated argument; with spaces, only the first runs.
  • rpk transform init: tinygo-with-goroutines is about 10 times slower.

Docs pages:

  • Data transforms Monitor page and the metrics reference: the lag metric is redpanda_transform_lag, not redpanda_transform_processor_lag.
  • How transforms work, Limitations: env var values are limited to 2 KiB each and empty values are rejected.
  • Deploy page: a redeploy can't change a transform's input or output topics; the broker rejects transforms that form a cycle.
  • Debug bundle guides: Cloud doesn't support debug bundles, and remote-bundle collects only from the configured addresses, not "all brokers".

Checks

Every skill has a SOURCES.md, skill-validator has no failures (warnings only), node --test evals/run-evals.test.mjs passes, and the four suites validate against evals/schema.json. The evals need Node 26, as in #110. Total eval cost about $115.

@micheleRP micheleRP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving, with the merge held for docs. Checked at head: each line maps to a case, and the lines hold against v26.2.2: redpanda/start.go:161-162,986 (developer mode implies dev-container, and --mode dev-container persists), and remotebundle/start.go (only the configured Admin API addresses). The transform and debug-bundle docs gaps are now covered by docs#2420 and #2423. Public surface is clean, and it merges cleanly with #110 and main.

Before merge: the rpk help gaps are all in SE#1567, which is waiting on review and then needs a release and a regen. Consider rpk-overrides for the riskiest ones (config bootstrap emptying seed_servers, and tune with spaces running only the first tuner).

Non-blocking:

  1. Keep rpk-cloud: adp, adp-governance, cloud-serverless, and rpk-topic all route to it.
  2. The developer-mode line scores 2/3 in the skill arm. Worth a look at why one run missed it.

@JakeSCahill
JakeSCahill force-pushed the skills/thin-rpk-family-2 branch from 27ca9dd to a019da8 Compare November 12, 2026 20:26
@JakeSCahill
JakeSCahill force-pushed the skills/thin-rpk-family-2 branch from a019da8 to 5f71124 Compare November 12, 2026 20:29
@JakeSCahill
JakeSCahill merged commit 6928933 into redpanda-data:main Nov 12, 2026
1 check passed
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.

2 participants