Skip to content

docs: fix documentation gaps identified by automated audit#946

Draft
cursor[bot] wants to merge 7 commits into
mainfrom
cursor/sentry-cli-docs-gaps-0121
Draft

docs: fix documentation gaps identified by automated audit#946
cursor[bot] wants to merge 7 commits into
mainfrom
cursor/sentry-cli-docs-gaps-0121

Conversation

@cursor
Copy link
Copy Markdown
Contributor

@cursor cursor Bot commented May 11, 2026

Summary

Automated documentation audit comparing the full CLI implementation against all documentation surfaces. This PR fixes the top-priority gaps and includes a comprehensive gap report.

Documentation Gap Report

Full report at docs/DOCUMENTATION_GAPS.md. Key findings:

A. Stale Architecture Tree in AGENTS.md

The manually maintained architecture tree was missing:

  • replay/ command group (list, view)
  • explore.ts standalone command
  • dashboard/revisions and dashboard/restore subcommands
  • issue/archive subcommand
  • 8 API modules (dashboards, discover, releases, replays, repositories, sourcemaps, teams, users)

B. Undocumented Environment Variable

SENTRY_INIT_TUI (disables the TUI for sentry init — useful for CI/Docker) was referenced in code but missing from the env var registry, so it didn't appear in the generated configuration.md.

C. README.md Installation Gaps

  • Missing yarn as a package manager install option
  • Missing pnpm dlx, yarn dlx, and bunx as run-without-installing options

D. Installer Flags Not Documented

The install script accepts --no-modify-path, --no-completions, and --no-agent-skills flags, plus SENTRY_INSTALL_DIR and SENTRY_INIT env vars — none were documented in getting-started.mdx.

E. Missing Command Examples in Fragments

  • dashboard revisions and dashboard restore had no examples
  • sentry cli defaults was missing headers and ca-cert sub-key examples

F. Agent Skills Prerequisite Not Documented

Auto-install requires ~/.claude or ~/.agents to already exist — the installer doesn't create these directories. This wasn't mentioned.

Changes

  1. AGENTS.md — Updated architecture tree: added replay/, explore.ts, dashboard/revisions|restore, issue/archive, and 8 missing API modules
  2. src/lib/env-registry.ts — Added SENTRY_INIT_TUI env var entry
  3. README.md — Added yarn install method + pnpm dlx/yarn dlx/bunx run-without-installing options
  4. docs/src/content/docs/getting-started.mdx — Documented installer flags (--no-modify-path, --no-completions, --no-agent-skills) and env vars (SENTRY_VERSION, SENTRY_INSTALL_DIR, SENTRY_INIT)
  5. docs/src/fragments/commands/dashboard.md — Added examples for dashboard revisions and dashboard restore
  6. docs/src/fragments/configuration.md — Added headers and ca-cert sub-key examples to defaults section
  7. docs/src/content/docs/agentic-usage.md — Added note about pre-existing directory requirement for auto skill install
  8. docs/DOCUMENTATION_GAPS.md — Full structured gap report covering all 10 audit categories

What's Working Well

  • Command docs are fully auto-generated from code metadata — zero drift
  • OAuth scopes, platform support tables, and dev scripts are auto-generated via generate-docs-sections.ts
  • All 21 command fragment files have bash examples
  • The env var registry covers nearly all user-facing variables
  • Auth/self-hosted documentation is comprehensive
Open in Web View Automation 

cursoragent and others added 7 commits May 11, 2026 12:09
…port

- Add missing replay/, explore.ts to commands tree
- Add dashboard/revisions, dashboard/restore, issue/archive subcommands
- Add missing API modules: dashboards, discover, releases, replays,
  repositories, sourcemaps, teams, users
- Add comprehensive documentation gap report at docs/DOCUMENTATION_GAPS.md

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
This env var controls the TUI for 'sentry init' and was missing
from the registry, which means it didn't appear in the generated
configuration.md page.

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
Add yarn to the package managers section and add pnpm dlx, yarn dlx,
and bunx to the run-without-installing section, matching the options
already documented in getting-started.mdx.

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
Add --no-modify-path, --no-completions, --no-agent-skills flags,
plus SENTRY_VERSION, SENTRY_INSTALL_DIR, and SENTRY_INIT env vars
to the install script section. These are useful for CI/CD and
Docker setups.

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
- Add bash examples for 'dashboard revisions' and 'dashboard restore'
  commands to the dashboard fragment
- Add 'headers' and 'ca-cert' sub-key examples to the configuration
  fragment's defaults section

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
Add note that automatic skill installation requires ~/.claude or
~/.agents to already exist — the installer does not create these
directories.

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 11, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://cli.sentry.dev/_preview/pr-946/

Built to branch gh-pages at 2026-05-11 12:13 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions
Copy link
Copy Markdown
Contributor

Codecov Results 📊

6856 passed | Total: 6856 | Pass Rate: 100% | Execution Time: 0ms

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 14140 uncovered lines.
❌ Project coverage is 76.86%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    76.97%    76.86%    -0.11%
==========================================
  Files          319       319         —
  Lines        60994     61094      +100
  Branches         0         0         —
==========================================
+ Hits         46947     46954        +7
- Misses       14047     14140       +93
- Partials         0         0         —

Generated by Codecov Action

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