Skip to content

docs(claude-md): clarify ask docs is a new single-shot command#88

Merged
amondnet merged 1 commit into
mainfrom
docs/claude-md-ask-docs-gotcha
Apr 15, 2026
Merged

docs(claude-md): clarify ask docs is a new single-shot command#88
amondnet merged 1 commit into
mainfrom
docs/claude-md-ask-docs-gotcha

Conversation

@amondnet

@amondnet amondnet commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Corrects a misleading gotcha in CLAUDE.md (line 58) that implied the entire ask docs surface was removed. Only the legacy ask docs {add,sync,list,remove} sub-namespace is gone; ask docs <spec> is a new single-shot command. The updated entry documents the full top-level command surface, the distinction between the removed and new commands, the current implementation behaviour (ensureCheckout-backed, no runInstall, main default for unqualified github specs, and strict ref validation does not apply).

Test plan

  • Documentation only — no runtime change, no tests required

Summary by cubic

Clarifies the gotcha in CLAUDE.md: only the legacy ask docs {add|sync|list|remove} was removed; ask docs <spec> is a new single-shot command. Updates the entry to list the full top-level commands (ask install | add | remove | list | docs | skills | src | cache) and note current behavior (uses ensureCheckout, skips runInstall, defaults unqualified GitHub specs to main).

Written for commit b1a9981. Summary will update on new commits.

Line 58 previously implied the entire `ask docs` surface was removed,
leaving the impression there is no `ask docs` command at all. In reality
only the legacy `ask docs {add,sync,list,remove}` sub-namespace is gone.

The updated gotcha now documents the full top-level command surface
(install | add | remove | list | docs | skills | src | cache), calls out
the distinction between the removed legacy namespace and the new
single-shot `ask docs <spec>` command, and records the current behaviour:
- walks `node_modules/<pkg>/` for npm specs; then the cached checkout at
  `<askHome>/github/<host>/<owner>/<repo>/<ref>/` for github specs
- shares `ensureCheckout` with `ask src`, bypasses `runInstall` entirely,
  so strict ref validation does NOT apply and unqualified github specs
  default to `ref = 'main'`
- see implementation entry point: packages/cli/src/index.ts:323
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 15, 2026
@codecov

codecov Bot commented Apr 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@dosubot dosubot Bot added the type:docs Documentation improvements label Apr 15, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 1 file

Auto-approved: Documentation-only change to CLAUDE.md to clarify CLI command usage and behavior. No risk to source code or business logic.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying ask-registry with  Cloudflare Pages  Cloudflare Pages

Latest commit: b1a9981
Status: ✅  Deploy successful!
Preview URL: https://ff43103e.ask-registry.pages.dev
Branch Preview URL: https://docs-claude-md-ask-docs-gotc.ask-registry.pages.dev

View logs

@amondnet
amondnet merged commit de26963 into main Apr 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files. type:docs Documentation improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant