docs: comprehensive documentation audit report#1117
Draft
cursor[bot] wants to merge 1 commit into
Draft
Conversation
Cross-reference all documentation (README.md, DEVELOPMENT.md, AGENTS.md, docs site pages, command fragments) against the actual implementation code. Report covers: - Undocumented commands and subcommands - Undocumented flags (50+ non-hidden flags missing from fragments) - Missing usage examples - Installation/distribution gaps - Undocumented environment variables - Auth/self-hosted gaps - Plugin/skills gaps - README/DEVELOPMENT.md/AGENTS.md drift (Bun→pnpm/vitest migration) Includes prioritized top 5 most impactful fixes. Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
Contributor
|
Contributor
Codecov Results 📊✅ Patch coverage is 100.00%. Project has 5052 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
- Coverage 81.24% 81.23% -0.01%
==========================================
Files 388 388 —
Lines 26910 26910 —
Branches 17481 17481 —
==========================================
+ Hits 21861 21858 -3
- Misses 5049 5052 +3
- Partials 1822 1824 +2Generated by Codecov Action |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documentation Audit Report
Full cross-reference of the Sentry CLI implementation code vs. all documentation surfaces (README.md, DEVELOPMENT.md, AGENTS.md, docs site pages, command fragments).
Methodology
docs/src/fragments/commands/A. Undocumented Commands/Subcommands
sentry dashboard deletesentry dashboard editsentry proguard uploadsentry release propose-versionB. Undocumented Flags
50+ non-hidden flags are defined in code but not mentioned in their doc fragments. Highlights:
sentry auth login:--read-only,--scope/-s,--timeout,--force,--url(flag vs env)sentry auth refresh:--force,--read-only,--scope/-ssentry issue list:--compact,--period/-tsentry explore:--environment/-esentry trace view:--full,--spanssentry event send:--no-environ,--logfile,--with-categories,--timestampsentry monitor run:--check-in-margin,--failure-issue-threshold,--recovery-thresholdsentry sourcemap inject/upload:--ignore,--ignore-file,--strip-prefix,--strip-common-prefix,--no-rewritesentry release create:--ref,--url; deploy:--url,--started,--finished,--timesentry release list:--status,--environment,--periodsentry local:--host/-H,--verify,--timeoutFull list in the audit report file.
C. Missing Usage Examples
sentry dashboard delete(top-level, not widget)sentry proguard uploadsentry release finalizewith its flagssentry auth whoami(mentioned but no output example)D. Stale Descriptions
No meaningfully stale
briefstrings found — generated docs are built from code metadata.E. Missing Route Mappings in Skill Generator
No gaps found.
ROUTE_TO_REFERENCEwas replaced by automatic 1:1 mapping ingroupRoutesByReference().F. Installation / Distribution Gaps
SENTRY_INSTALL_DIRandSENTRY_INITenv vars: missing from getting-started--no-modify-path,--no-completions,--no-agent-skills): missing from getting-startedG. Undocumented Environment Variables
SENTRY_ENVIRONMENT: read in bash-hook but not in env registrySENTRY_SCAN_DISABLE_WORKERS: debug flag not in registryH. Auth / Self-Hosted Gaps
--read-onlyand--scopeonauth login: missing from both auth and self-hosted docslibrary-usage.mdlists env vars before stored OAuth, contradicting the actual default priority (stored OAuth wins)I. Plugin/Skills Gaps
J. README / DEVELOPMENT.md / AGENTS.md Drift
Critical: AGENTS.md references Bun extensively but the project has migrated to pnpm/Node.js/vitest:
bun test,bun run dev,bun install— package.json usespnpmbun:test+ fast-check — tests usevitest(zerobun:testimports, 385 vitest imports)Bun.file(),Bun.write(),Bun.spawn(), etc.Top 5 Most Impactful Fixes (Prioritized)
library-usage.mdtoken precedence inconsistency — Misleads library users about which token takes priority--read-onlyand--scopeflags onauth login— Security-conscious users need scoped tokensproguard uploaddocumentation — Android developers can't find upload docs--no-modify-pathetc. for clean installs