Skip to content

client: improve docs AX — markdown-first help text#69

Merged
sripathikrishnan merged 5 commits into
mainfrom
ax/docs-help-improvements
Apr 13, 2026
Merged

client: improve docs AX — markdown-first help text#69
sripathikrishnan merged 5 commits into
mainfrom
ax/docs-help-improvements

Conversation

@sripathikrishnan
Copy link
Copy Markdown
Contributor

@sripathikrishnan sripathikrishnan commented Apr 13, 2026

Summary

Improves the agent experience (AX) for the docs module by making `extrasuite docs --help` the single reference — no cascading into subcommand help on the happy path.

Top-level `extrasuite --help`

  • `docs` description changed from "XML markup" to "markdown"
  • Simplified core workflow comment (removed incorrect `` subdirectory claim)

`extrasuite docs --help` — now self-contained

  • Fixed command names (`doc` → `docs` throughout)
  • Removed "For XML format: use pull-xml / push-xml instead"
  • Added one paragraph covering the full editing workflow: index.md as the map with line numbers, editing tabs/*.md, creating tabs with frontmatter, supported GFM (headings, bold/italic, tables, lists, code blocks, blockquotes, callouts, heading links), images read-only caveat, re-pull reminder

`extrasuite docs push --help`

  • Names `.extrasuite/pristine.zip` explicitly (was "internal snapshot")
  • Clarifies `--verify` flag purpose

`extrasuite docs pull --help`

  • Trimmed to a minimal flags reference (agents don't need it for the happy path)
  • Fixed default output_dir claim: creates `<document_id>/` in CWD, not "current directory"

Hidden from `extrasuite docs help` listing

  • `troubleshooting` — stale XML-era content
  • `pull-xml` — XML workflow reference
  • `style-reference` — XML-only (styles.xml / document.xml)

Hidden subcommands

  • `pull-xml`, `push-xml`, `pull-md`, `push-md` no longer appear in `docs --help` listing or usage line; commands remain functional
  • Includes workaround for Python 3.13 argparse bug where `SUPPRESS` on subparser choices shows the literal string `==SUPPRESS==` instead of hiding the entry

Test plan

  • `./extrasuite --help` — docs described as "markdown", clean workflow comment
  • `./extrasuite docs --help` — no XML variants in subcommand list, one-paragraph editing guide covers the full workflow
  • `uvx extrasuite docs pull-xml` still works (hidden but functional)
  • `extrasuite docs help` — only `date-time` listed; troubleshooting, pull-xml, style-reference not advertised
  • All 145 client tests pass

🤖 Generated with Claude Code

sripathikrishnan and others added 5 commits April 13, 2026 12:37
- Fix top-level help: label docs as "markdown" (not XML), simplify workflow comment
- Fix docs module help: correct command names (doc→docs), remove XML advertisement,
  add "open index.md first" orientation hint
- Fix docs pull help: document .extrasuite/ as internal (do not edit), fix
  output_dir default claim, add comments.xml edit guidance
- Fix docs push help: name .extrasuite/pristine.zip explicitly instead of
  "internal snapshot", clarify --verify flag purpose
- Rewrite troubleshooting reference: replace XML-focused content with
  markdown-relevant errors and a diagnostic checklist
- Hide pull-xml, push-xml, pull-md, push-md from docs subcommand listing;
  commands remain functional but no longer appear in --help output.
  Works around Python 3.13 argparse not honouring SUPPRESS for subparsers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…de, hide stale refs

- pull.md: fix default output_dir (was "current directory", is actually <document_id>/ in CWD)
- pull.md: rewrite as a working guide — index.md orientation, line numbers,
  new-tab frontmatter snippet, full GFM feature list with callout syntax,
  images caveat, read-only elements
- _common.py: hide troubleshooting, pull-xml, style-reference from
  `docs help` listing (XML-era content, not relevant to markdown workflow)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Move all editing knowledge into docs README.md so agents don't need to
cascade to pull --help on the happy path. One paragraph covers: index.md
as the map with line numbers, editing tabs/*.md, creating tabs with
frontmatter, supported GFM features, callout syntax, heading links,
images read-only caveat, and re-pull reminder.

Trim pull.md to a minimal flags reference (url, output_dir, --no-raw).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Remove the subcommand --help reference. Module --help is the right
starting point; agents don't need to know about the subcommand level.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sripathikrishnan sripathikrishnan merged commit ec2f45a into main Apr 13, 2026
2 checks passed
@sripathikrishnan sripathikrishnan deleted the ax/docs-help-improvements branch April 13, 2026 08:12
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.

1 participant