Repository navigation
skills: convert five rpk skills to thin behavioral guidance - #127
Conversation
micheleRP
left a comment
There was a problem hiding this comment.
Approving, with the merge held for docs as the description says. Checked at head: every "How to work" line maps to a case in its suite, the guardrail exceptions are recorded, and spot checks against v26.2.2 hold: config/set.go:224-227 (empty resets only non-strings), config/import.go:205-211, user/update.go:29,56, and group.go (delete has no prompt). All SKILL.md links resolve. About 18 dropped facts I spot-checked are on the live rpk reference pages. Public surface is clean, and it merges cleanly with #110 and main.
Before merge: published are docs#2413, #2416, and #2417. Still open are SE#1556, #1558, #1559, #1584, and #1585, plus docs#2427 (Windows), and the loggers set page still lacks --node-id required and the defaults.
Non-blocking:
- The rpk help route needs a release and an rpk docs regen to publish. For the gaps users would hit, a
docs-data/rpk-overrides.jsonentry (as in docs#2426) publishes now, and can be removed once the help ships. - With #130, keep #130's deletion of
rpk-redpanda/references/admin-and-decommission.md. #127's change there is only a pointer.
…on case The open-transaction case named its group payments-txn, which gave the baseline the answer. With a neutral name every arm fails it 0/3, so the fact is a docs gap and SOURCES.md lists it.
fe8f6ea to
1938437
Compare
Stacked on #110. Review the last 12 commits; the rest are #110's and drop out once it merges.
Converts five more rpk skills to thin skills with the method from #110:
rpk,rpk-cluster,rpk-group,rpk-securityandrpk-registry. Each gets its own eval suite (fact cases plus behavioral cases with mocked tools, sourced from the publicredpanda-data/redpandarepo at v26.2.2), run in all five arms, 3 runs each. Each skill is now 47 to 76 lines, and every reference file exceptSOURCES.mdis gone.How to work lines kept
Rates are baseline / skill / installed.
rpk.redpanda.com(or Homebrew or the package repository), not GitHub release assets, which stopped getting new versionsconfig set <prop> "", notforce-reset(a string property takes""as its value)unsafe-recover(dry run first) andupgrade finalize--no-confirmor a piped answerProcedures the baseline already follows were dropped and are recorded in each
SOURCES.md: env vars over profiles, shadow link updates, the consumer group reset and failover playbooks, ACL revocation and offboarding, superuser updates, prefixed registry ACLs, and per-subject IMPORT.Docs gaps
These facts are in no arm's answers or missing from the published page. Each
SOURCES.mdlists the page and the source line. This PR waits until the docs cover them.Fixes in review (rpk reference gaps are fixed in rpk's help text, which the reference is generated from):
enable_schema_id_validationtakesnone, notfalse(docs fix, with backports).rpk cluster health:--watchand--exit-when-healthyneed--format text(a docs override hid rpk's own text; removed).rpk cluster loggers set:--node-idis required, and the level and expiry defaults. The reference generator now prints every flag's default and whether it is required.rpk cluster quotas alteranddescribe:--nameand--anyacceptuser, and--defaulttakesclient-idoruser(rpk help).rpk group describe: which print flags can't be combined (rpk help).rpk group delete: a group with a transaction in progress is refused withNON_EMPTY_GROUP(rpk help).rpk security acl delete: drop the wrong "over 10 matches confirm twice" claim (rpk help).rpk --print-tree: documented on therpkpage, and the tree now lists the root's own flags.check-compatibilityexits 0 for an incompatible schema (rpk help).Still open:
rpk security acl delete --dryasks for confirmation even with--no-confirm. Asked the rpk team whether--dryshould skip the prompt.rpk.redpanda.com, so this stays in therpkskill and needs no docs change.Wrong facts removed with the old references
enable_schema_id_validation true;globals.command_timeoutis 30s (it is 10s).config lint -fvalidates a file (it takes no file and rewritesredpanda.yaml).seek --to-groupand--to-filework on a group with members; the--to-fileexample used a format rpk rejects.check-compatibilityexits non-zero on an incompatible schema; contexts needschema_registry_enable_qualified_subjectsset (it defaults to true).Checks
Every skill has a
SOURCES.md,skill-validatorhas no failures (warnings only),node --test evals/run-evals.test.mjspasses, and every suite validates againstevals/schema.json. The mocks'(?-i:...)regexes, as in #110's suites, need Node 26.Re-verification
Every line and case was re-checked against the public source and rerun on 2026-11-10. Two
rpk-clusterlines were corrected: import resets only user-visible properties (tunables need--all), andconfig set <prop> ""resets only non-string properties. Theconfig-setandforce-resetpages repeat the second mistake, which is a new docs gap. Five cases with mocks or grading that didn't match rpk are fixed. No line changed verdict.