Skip to content

feat: Adopt the Toolkit Skill Standard (wt skill) - #39

Merged
sahil-noon merged 4 commits into
mainfrom
260717-v7xy-adopt-skill-standard
Jul 18, 2026
Merged

sahil-noon merged 4 commits into
mainfrom
260717-v7xy-adopt-skill-standard

Conversation

@sahil-noon

Copy link
Copy Markdown
Collaborator

Meta

Change ID Type Confidence Plan Review
v7xy feat 4.5/5.0 10/10 tasks, 16/16 acceptance ✓ ✓ 1 cycle
Impact +/− Net
raw +873 / −8 +865
true +314 / −4 +310
└ impl +166 / −0 +166
└ tests +148 / −4 +144

excludes fab/, docs/ · generated by fab-kit v2.15.5

Pipeline: intake ✓ → apply ✓ → review ✓ → hydrate ✓ → ship → review-pr

Summary

wt had 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's skill standard (principle #10, agent-discoverable documentation) and invisible to the planned shll agent-setup aggregator. This adopts the standard by reusing the mechanism shll standards already established: a static bundle, a committed embedded copy, a sync script, and a drift-guard test.

Changes

  • New canonical bundle: docs/site/skill.md
  • New subcommand: wt skill (src/cmd/wt/skill.go)
  • Committed embedded copy: src/cmd/wt/skill.md
  • Sync script + build wiring: scripts/sync-skill.sh, justfile recipe
  • Tests: src/cmd/wt/skill_test.go + integration case
  • README + conformance record

@sahil-noon
sahil-noon marked this pull request as ready for review July 17, 2026 22:11
@sahil-noon
sahil-noon requested a review from Copilot July 17, 2026 22:12

Copilot AI 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.

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 skill command that prints an embedded markdown bundle byte-identically to docs/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.

Comment thread docs/site/skill.md Resolved
Comment thread docs/site/skill.md Resolved
- №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.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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)

@sahil-noon
sahil-noon merged commit 96dd180 into main Jul 18, 2026
2 checks passed
@sahil-noon
sahil-noon deleted the 260717-v7xy-adopt-skill-standard branch July 18, 2026 04:48
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.

3 participants