Repository navigation
feat: Adopt the Toolkit Skill Standard (wt skill) - #39
Conversation
There was a problem hiding this comment.
Pull request overview
Adds first-class conformance to the toolkit “skill” standard by introducing a visible wt skill subcommand that emits a static, embedded, version-locked markdown usage bundle, plus tooling/tests to keep the embedded copy synchronized and within the standard’s line budget.
Changes:
- Adds
wt skillcommand that prints an embedded markdown bundle byte-identically todocs/site/skill.md. - Introduces sync wiring (
scripts/sync-skill.sh,just sync-skill,//go:generate) plus drift-guard and integration tests. - Updates README and toolkit conformance/memory records to reflect adoption and new CLI surface.
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/cmd/wt/skill.md | Committed embed copy of the skill bundle for offline builds. |
| src/cmd/wt/skill.go | Implements the wt skill Cobra subcommand and embeds the bundle. |
| src/cmd/wt/skill_test.go | Unit tests for drift-guard, line budget, and command contract. |
| src/cmd/wt/main.go | Registers skill on the root command. |
| src/cmd/wt/integration_test.go | End-to-end tests asserting wt skill stdout/stderr/exit behavior. |
| src/cmd/wt/help_dump_test.go | Updates help-dump expectations for the new visible subcommand. |
| scripts/sync-skill.sh | Sync script copying canonical bundle into the embed location. |
| README.md | Adds wt skill to the command reference table. |
| justfile | Adds sync-skill recipe. |
| fab/changes/260717-v7xy-adopt-skill-standard/plan.md | Change plan and acceptance checklist for skill adoption. |
| fab/changes/260717-v7xy-adopt-skill-standard/intake.md | Change intake record for skill adoption. |
| fab/changes/260717-v7xy-adopt-skill-standard/.status.yaml | Change status metadata for the fab pipeline. |
| fab/changes/260717-v7xy-adopt-skill-standard/.history.jsonl | Stage/history event log for the change. |
| docs/site/skill.md | Canonical, published skill bundle source. |
| docs/memory/wt-cli/toolkit-standards-conformance.md | Updates standards conformance baseline to mark skill adopted. |
| docs/memory/wt-cli/skill-command-contract.md | Adds behavioral contract memory doc for wt skill. |
| docs/memory/wt-cli/index.md | Adds the new memory doc to the wt-cli index. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - №9 (bounded, high-signal output): PASS — `wt list --status` caps its worker pool; `wt delete`'s unpushed-commit preview is capped; no unbounded surface (no `--quiet` is required — the clause is conditional). | ||
| - №10 (agent-discoverable docs, SHOULD): PASS for the implemented halves (README + docs/site per `readme-extraction`); the `wt skill` half is not-yet-adopted (deferred, see `skill`). №10 is a SHOULD and the skill standard's Adoption note says a tool without `skill` is "not yet in violation." | ||
| - №10 (agent-discoverable docs, SHOULD): PASS — README + docs/site (per `readme-extraction`) and now the `wt skill` agent bundle (adopted in `260717-v7xy`, see `skill` below). The former not-yet-adopted deferral for the `skill` half is closed. | ||
| - **`help-dump`** (binary, mechanical contract): **PASS**, checklist executed verbatim. Exit 0, valid JSON to stdout only, empty stderr; envelope exactly `{root, schema_version, tool, version}` with no `captured_at`; `completion` / `help` / hidden nodes (incl. `help-dump` itself) absent; 8 visible subcommands (`create, delete, go, init, list, open, shell-init, update`); `version` = built binary. Pinned by `TestHelpDump_EmitsValidEnvelope`. No fix required. Re-verified after this change — the command tree is unchanged, so the dump is byte-stable. |
There was a problem hiding this comment.
Fixed — updated the help-dump conformance note to 9 visible subcommands (added skill) and replaced the "command tree unchanged / byte-stable" claim with the accurate one: skill is the sole command-tree addition and TestHelpDump_EmitsValidEnvelope now expects 9. The broader help-dump-contract.md enumeration refresh (it predates this PR — it is already missing go) is out of scope here and left for a dedicated cleanup. (e37b265)
Meta
v7xyexcludes
fab/,docs/· generated by fab-kit v2.15.5Pipeline: intake ✓ → apply ✓ → review ✓ → hydrate ✓ → ship → review-pr
Summary
wthad no offline, version-locked usage briefing an agent could rely on without a network trip or a checked-out repo, leaving it out of conformance with the toolkit'sskillstandard (principle #10, agent-discoverable documentation) and invisible to the plannedshll agent-setupaggregator. This adopts the standard by reusing the mechanismshll standardsalready established: a static bundle, a committed embedded copy, a sync script, and a drift-guard test.Changes
docs/site/skill.mdwt skill(src/cmd/wt/skill.go)src/cmd/wt/skill.mdscripts/sync-skill.sh, justfile recipesrc/cmd/wt/skill_test.go+ integration case