webcmd icon indicating copy to clipboard operation
webcmd copied to clipboard

Correct skill and help guidance for format and verbose flags

Open rishabhraj36 opened this issue 4 months ago • 1 comments

Parent: #171

Problem

Skills call -f/--format and -v/--verbose universal even though many built-ins reject them. Some adapter-author references instruct agents to run an unsupported browser option.

Verified documentation gaps:

  • skills/webcmd-usage/SKILL.md labels both flags universal.
  • Several references use webcmd browser network --format json, but browser network rejects --format.
  • Those browser examples also need the required <session> positional.
  • Structured help supports --help -f yaml|json independently from runtime output formatting, which is not clearly distinguished.

Affected references include:

  • skills/webcmd-usage/SKILL.md
  • skills/webcmd-adapter-author/references/site-recon.md
  • skills/webcmd-adapter-author/references/api-discovery.md
  • skills/webcmd-adapter-author/references/field-decode-playbook.md

Scope

  • Replace “Universal Flags” with accurate wording based on implemented support.
  • State that runtime -f/-v availability is command-specific and visible in command help.
  • Document structured-help formatting separately.
  • Fix browser examples to use valid flags and named-session syntax.
  • Update guidance as the functionality sub-issues land.

Acceptance criteria

  • [ ] Every documented command example succeeds against the current CLI.
  • [ ] Skills no longer claim unsupported flags are universal.
  • [ ] Runtime formatting and structured-help formatting are clearly distinguished.
  • [ ] Browser examples include <session> and no unsupported --format flag.

rishabhraj36 avatar Jul 27 '26 15:07 rishabhraj36

Not a maintainer, so treat this as a report rather than a call — but the four gaps listed here look closed by the documentation restructure, and this is the last open sub-issue of #171.

Checked against current main (0493346):

The named files are gone. skills/ now contains only skills/webcmd-browser/, with references browser-run-playwright.md, candidate-schema.md, git-lifecycle.md and sitemap-memory.md. skills/webcmd-usage/SKILL.md and the three webcmd-adapter-author/references/* files no longer exist.

No "universal flags" claim survives. The only remaining "universal" across docs/, skills/, skill-src/, mcp-skills/ and the README is docs/cli-reference.mdx:30, and it is scoped rather than blanket — "session create, session list, and session close accept the universal output formats". All three do:

session create   -f, --format <fmt>
session list     -f, --format <fmt>
session close    -f, --format <fmt>

browser network is no longer a subcommand, so the unsupported examples cannot be run at all:

$ webcmd browser network
error: unknown command 'network'
help: valid subcommands for `webcmd browser`: bind, close, init, run, snapshot, tabs, verify

Every -f json invocation the current skills tell an agent to run does accept the flag. I checked all five site memory commands quoted in SKILL.md and the references — context, classify, candidate search, candidate show, candidate list — and each shows -f, --format <fmt> in its help.

One leftover, cosmetic: two source comments still refer to the removed command — src/browser/network-cache.ts:7 ("every browser network call snapshots its results to disk") and src/browser/shape-filter.ts:2 ("browser network --filter <fields>"). Happy to send a one-line PR for those if it is worth having, though it changes no behaviour.

Denimworld12 avatar Oct 25 '26 08:10 Denimworld12