Skip to content

docs: documentation audit — fix AGENTS.md drift, expand installation & agentic docs#1078

Draft
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/sentry-cli-documentation-audit-ac19
Draft

docs: documentation audit — fix AGENTS.md drift, expand installation & agentic docs#1078
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/sentry-cli-documentation-audit-ac19

Conversation

@cursor

@cursor cursor Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Documentation Audit

Full audit of the Sentry CLI repository documentation against the actual implementation. The audit covers commands, flags, installation methods, auth flows, configuration, environment variables, the plugin/skills system, and root docs (README, DEVELOPMENT.md, AGENTS.md).

Changes Made

1. Fix AGENTS.md Bun→pnpm/Node/vitest migration (Critical)

AGENTS.md contained extensive Bun-specific guidance that no longer matches the codebase:

  • Replace "Built with Bun" → "Built with Node.js"
  • Replace all bun commands (bun install, bun test, etc.) → pnpm equivalents
  • Remove Bun API reference table (Bun.file, Bun.write, Bun.spawn, etc.)
  • Replace with Node.js API guidance (node:fs, node:child_process)
  • Fix test framework references from bun:testvitest
  • Fix mock API from mock.module()vi.mock()
  • Fix test runner config references from Bun flags → vitest.config.ts
  • Fix BUN_TEST_WORKER_IDVITEST_POOL_ID
  • Remove stale .cursor/rules/bun-cli.mdc reference
  • Replace bun run check:*pnpm run check:*

2. Add installer flags to getting-started.mdx

  • Document --no-modify-path, --no-completions, --no-agent-skills installer flags
  • Document SENTRY_INSTALL_DIR and SENTRY_INIT env vars
  • Add CI/Docker example for non-interactive installs

3. Expand agentic-usage.md with IDE-specific install instructions

  • Add Claude Code marketplace install instructions (claude plugin marketplace add getsentry/cli)
  • Add Cursor plugin installation via .cursor/skills/ symlink
  • Expand Requirements with specific IDE links

4. Add documentation audit report

The full audit report is in docs/DOCUMENTATION_AUDIT.md with findings across 10 categories (A-J). Key findings not yet fixed (for future work):

  • F4: Alpine/musl auto-dependency installation undocumented
  • G: SENTRY_SPOTLIGHT, SENTRY_TRACES_SAMPLE_RATE, SENTRY_MONITOR_SLUG used in code but not in env-registry.ts (intentionally excluded as injected vars)
  • H2: Token host-scoping security model undocumented in self-hosted.md
  • H4: Login trust anchor security model only partially documented
  • I3: npx skills add may reference an external tool that no longer exists

Audit Summary

Category Status
A. Missing commands ✅ No gaps (auto-generated)
B. Undocumented flags ✅ No gaps (auto-generated)
C. Missing examples ⚠️ Thin coverage in schema/repo/team
D. Stale descriptions ✅ No gaps (auto-generated)
E. Skill generator mapping ✅ No gaps (1:1 auto-mapping)
F. Installation gaps ⚠️ Fixed F1-F3; F4-F6 remain
G. Env var gaps ⚠️ 3 injected vars unregistered (by design)
H. Auth/self-hosted ⚠️ H2, H3, H4 remain
I. Plugin/skills ✅ Fixed I1-I2; I3 flagged
J. Root doc drift ✅ Fixed J1-J3 (AGENTS.md)
Open in Web View Automation 

cursoragent and others added 2 commits June 8, 2026 12:15
…test

AGENTS.md contained extensive Bun-specific guidance that no longer matched
the codebase after the migration to pnpm + Node.js + vitest:

- Replace 'Built with Bun' with 'Built with Node.js'
- Replace all bun commands (bun install, bun test, etc.) with pnpm equivalents
- Remove Bun API reference table (Bun.file, Bun.write, Bun.spawn, etc.)
- Replace with Node.js API guidance (node:fs, node:child_process)
- Fix test framework references from bun:test to vitest
- Fix mock API from mock.module() to vi.mock()
- Fix test runner config references from Bun flags to vitest.config.ts
- Fix BUN_TEST_WORKER_ID to VITEST_POOL_ID
- Remove stale .cursor/rules/bun-cli.mdc reference
- Replace bun run check:* with pnpm run check:*
- Replace bun run generate:* with pnpm run generate:*

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
…E docs

- Document --no-modify-path, --no-completions, --no-agent-skills installer flags
- Document SENTRY_INSTALL_DIR and SENTRY_INIT env vars for the installer
- Add CI/Docker example for non-interactive installs
- Add Claude Code marketplace install instructions to agentic-usage.md
- Add Cursor plugin installation instructions to agentic-usage.md
- Expand Requirements section with specific IDE links
- Add documentation audit report as docs/DOCUMENTATION_AUDIT.md

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

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

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

Built to branch gh-pages at 2026-06-08 12:19 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ Patch coverage is 100.00%. Project has 4835 uncovered lines.
✅ Project coverage is 81.53%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    81.53%    81.53%        —%
==========================================
  Files          374       374         —
  Lines        26173     26173         —
  Branches     17080     17080         —
==========================================
+ Hits         21339     21338        -1
- Misses        4834      4835        +1
- Partials      1768      1768         —

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