Explicit coding-agent skills for planning, reviewed implementation, verification and delivery. In Herdr, roles run in separate panes with chosen CLIs/models; elsewhere they run sequentially in the foreground. Missing agents leave verification gaps.
npx skills add dwk601/kstack
npx skills add dwk601/kstack -g --skill '*' -a claude-code -a codex -a pi -y
npx skills update -g
npx skills list -gInstall all 12 skills for sibling references. Requires Python 3; kstack-finish uses gh for GitHub. Reinstall local edits with npx skills add ./kstack. Installing never changes user config; reinstalling never overrides targets or user-owned permissions. Existing pr-green targets still stop before merge; choosing complete does not grant permission.
| Agent | Configure | Task | Ship |
|---|---|---|---|
| Claude Code | /kstack-setup |
/kstack <task> |
/kstack-finish |
| Codex | $kstack-setup |
$kstack <task> |
$kstack-finish |
| Pi | /skill:kstack-setup |
/skill:kstack <task> |
/skill:kstack-finish |
Other agents can use exact skill names. Frontmatter and agents/openai.yaml disable implicit invocation where supported.
| Skill | Purpose |
|---|---|
| kstack | Routing and shared rules |
| kstack-setup | Role models, checks and delivery recipes |
| kstack-plan | Code-grounded plan and independent critic |
| kstack-execute | Reviewed implementation, integration and verification; no publishing |
| kstack-finish | PR → fix red → green → merge → deploy → cleanup → local sync/rebase |
| kstack-understand | Explain code |
| kstack-debug | Runtime-backed diagnosis |
| kstack-review | Independent evidence-backed review |
| kstack-verify | Exercise real behavior at known revisions |
| kstack-perf | Measure bottlenecks and gains |
| kstack-improve | Prevent recurring mistakes |
| kstack-no-comments | Delete unjustified comments; fix the workarounds they excuse |
Diagnosis/explanation are read-only. Changes use kstack-plan → kstack-execute; shipping is a separate kstack-finish invocation.
See kstack-setup and its config example. Built-in CLIs: Pi, Codex, Claude Code; custom presets supply argv templates. Model choices and permissions remain user-owned. Map features with the verification harness.
python3 skills/kstack-setup/scripts/kstack-models show
python3 skills/kstack-setup/scripts/kstack-models validate --checkkstack-finish defaults to complete: verified merge, postmerge gates and delivery of every affected app. Permissions, real recipes and evidence are required; missing requirements block. finish.deploy_checks verifies delivery but is not an apply recipe.
Results/inventory stay in chat/stdout, not saved run artifacts. Every settled return cleans safe owned temporary resources. Source cleanup waits for merge and target gates; unmerged/unrelated/uncertain work is preserved. Cleanup safeguards pair ownership judgment with the tested, stateless kstack-git script for Git, scratch and sync mechanics. Partial cleanup is not overall completion.
The CI article by Owen Gretzinger informs these recommendations. Its reported speedups are not measurements of this pack. Verification reuse and scheduling rules live in the shared finish reference.
Report bottlenecks during delivery; do not automatically change CI. With approval, use kstack-perf to measure queue, setup and execution time, cold/warm caches, CPU, memory and cost, then use kstack-plan and kstack-execute for changes. No paid or larger runners or other cost increases without explicit consent. Run independent lint, typecheck, build and test jobs concurrently within the available CPU and memory budget. Match aggregate task and test-worker concurrency to the machine, and isolate stateful jobs.
Consider compatible main-branch cache seeds keyed by lockfile, toolchain and platform; untrusted PRs must not write trusted caches. A cache is never verification evidence. Reuse initialization only after isolation/reset tests, and adopt faster tools only after benchmarking equivalent checks. Use blobless rather than shallow clones when ancestry is needed. Cancel only owned superseded PR runs for stale heads, never main, postmerge or shared runs.
Affected checks need a proven dependency selector covering shared code, config, lockfiles, toolchains and CI, failing closed on unknowns, missing history or errors. Full required gates at head remain mandatory, with full main/nightly safety nets. Enforce a fast pre-push hook without bypass or --no-verify.
Skills use direct steps, explicit scope/completion, real checks and shared rules without repeated instructions. Based on Claude's prompt overview and guides for Fable 5.1, Opus 5.5 and Sonnet 5.5. These are prompt-design references, not model defaults.
python3 -B -m unittest discover -s tests -vTests cover pack structure/links, size budgets, model commands and kstack-git behavior in temporary repositories with a file:// remote and fake gh API. They do not prove live GitHub merging/deployment, model quality, performance or end-to-end Herdr behavior.
Adapted from pstack by Lauren Tan (MIT). See LICENSE.