Repository navigation
fix(skill): restructure the skill root and let the agent install the CLI on a yes - #112
Conversation
The root file kept the item numbers of the old single file, so it listed items 1, 2, 6, 7, 8, 11 and 12 and pointed three times at the references. The path choice is now the first section, the shared rules have names, and the CLI-only parts of the old items 1 and 12 live in references/cli.md. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The booking rule named Wego as a whole; it now names the CLI and the MCP tools. The two search-cost sentences are CLI facts, so they stay in references/cli.md only. Section references are links. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…om the path rule Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The skill told the agent to link the install instructions and wait for the user to install. It now asks once, opens the install page and runs the command there on a yes. No install command is in a published file. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Follow-up to PET-454 and wego/cli#111, which split the skill into a root file and two references.
Why
The split kept the shape of the old single file. The root listed items 1, 2, 6, 7, 8, 11 and 12, said that items 3, 4, 5, 9 and 10 live elsewhere, and pointed at the references three times. An agent on the MCP path also read CLI-only text in the shared rules. This change makes the root read in the order an agent decides: which path, then the rules for both paths.
What changed
SKILL.mdopens with## Pick the path, the three MCP cases, and one pointer block to the two references.## Rules on both paths. The five CLI rules inreferences/cli.mdare named sections too. No rule is cited by number.references/cli.md.wego version. Before, it linked the instructions and waited for the user to install. The same ask-then-act rule now covers the reinstall case inUpdate the CLI.plugin/README.mdsays the same.references/mcp.md: has a title and no longer repeats the shared rules.Verification
references/cli.mdonly, 6wegocalls, answer with 3 flightsreferences/mcp.mdonly, 4flights_searchcalls, same cheapest flightskills/Operating contract,item N,items Nwegounder~/.local/binand used it, so the missing-CLI case did not occurcli-next-evalson the release that carries thisBefore and After
SKILL.mdSKILL.mdsectionsOperating contractwith items 1, 2, 6, 7, 8, 11, 12Pick the path,Rules on both pathswith 6 named rulesreferences/cli.mdCLI contractreferences/mcp.mdQA plan
edge-clionmainafter mergeedge-clirun onmainSKILL.mdhas## Pick the path?ring=edgein a scratchHOME, thengrep -c "## Pick the path" ~/.claude/skills/wego/SKILL.mdprints1cli-next-evalsis Ready or Skipped with a reasonNotes for reviewers
searchIdare cheaper,hotels roomsmints a search) are CLI facts and live only inreferences/cli.mdunderSpend the search limits well.no published file pipes a download into a shelltest still passes.[Pick the path](../SKILL.md#pick-the-path).fixso that release-please cuts a release with this skill text before a promote publishes the skill.name,description,compatibility) is byte-equal, and the file set is the same three files, so the installer, the owner marker and the publish plan do not change.Details for AI and humans who like to read everything
Files
skills/wego/SKILL.md# Wego travel search.## Pick the pathholds the old item 2 and the path pointers.## Rules on both pathsholds old items 1 (live results part), 6, 7, 8, 11 and 12 (path-neutral part) as###sections.skills/wego/references/cli.mdwego <sub>" from old item 1. Old items 3, 4, 5, 9, 10 are###sections. New### Spend the search limits wellcarries the command names from old item 12 and the link toFinish the answer. New### Check flags with --helpheading. Cross references use section names. The code block under the pricing rule lost its 3-space list indent.skills/wego/references/mcp.md# Wego MCP tools; the "Still applies" bullet is replaced by one sentence that points at the root rules.src/skill-embed.test.tssrc/commands.ts,scripts/plugin-conformance.test.tsEnvironment: base
faff229(v1.5.0). Agent runs used a copy ofskills/wegonamedwego-ain a scratch project,claude -pwith modelclaude-opus-5-5, installedwego1.5.0 from thenextring. CLI run tools:Read,Skill,Bash(wego:*). MCP run tools:Read,Skill, withBashdisallowed.Evidence
Readcalls on skill files =references/cli.md(2 reads). 9 turns. Cheapest: Thai AirAsia FD356, USD 142.Readcalls on skill files =references/mcp.md(1 read). 7 turns. Cheapest: Thai AirAsia FD356, USD 142.bun run check: 1461 pass, 0 fail.bun run test:integration: 535 pass, 0 fail.Not yet verified: answer quality against the previous release. wego-ai runs
cli-next-evalswhen the release tag reachescli/next; the result is a check run on the tag commit.🤖 Generated with Claude Code