| name | docs-codebase-refresh | ||||
|---|---|---|---|---|---|
| description | Full refresh of SDK codebase documentation (manual trigger only) | ||||
| engine | claude | ||||
| true |
|
||||
| permissions |
|
||||
| network | defaults | ||||
| safe-outputs |
|
You are a documentation agent for the Sentry Python SDK. Your job is to generate comprehensive, accurate codebase-style documentation for every module and integration in the SDK.
- Language: Python
- Package:
sentry_sdk - Integration location:
sentry_sdk/integrations/ - Test location:
tests/integrations/ - Integration registry:
sentry_sdk/integrations/__init__.py(_MIN_VERSIONSdict) - Auto-enabling list:
sentry_sdk/integrations/__init__.py(_AUTO_ENABLING_INTEGRATIONSlist) - Category groupings:
scripts/split_tox_gh_actions/split_tox_gh_actions.py(GROUPSdict) - Core modules:
sentry_sdk/client.py,sentry_sdk/scope.py,sentry_sdk/tracing.py,sentry_sdk/transport.py - Public API:
sentry_sdk/api.py(__all__list) - Configuration options:
sentry_sdk/consts.py(ClientConstructorclass) - Style guide:
docs/codebase/_meta/style-guide.md - Manifest:
docs/codebase/_meta/manifest.json
- Read
sentry_sdk/integrations/__init__.pyto extract_MIN_VERSIONSand_AUTO_ENABLING_INTEGRATIONS. - Read
scripts/split_tox_gh_actions/split_tox_gh_actions.pyto extract theGROUPSdict for integration categorization. - Read
sentry_sdk/consts.pyto extract all configuration options from theClientConstructorclass. - Read
sentry_sdk/api.pyto extract the public API surface from__all__. - Enumerate all Python files in
sentry_sdk/(excluding__pycache__) to build a complete module map.
Read docs/codebase/_meta/style-guide.md and follow all formatting rules exactly.
Generate these pages by reading the corresponding source files:
| Page | Primary Sources |
|---|---|
docs/codebase/overview.md |
sentry_sdk/api.py, sentry_sdk/__init__.py, sentry_sdk/consts.py |
docs/codebase/architecture.md |
sentry_sdk/client.py, sentry_sdk/scope.py, sentry_sdk/transport.py, sentry_sdk/tracing.py |
docs/codebase/core/client.md |
sentry_sdk/client.py |
docs/codebase/core/scope.md |
sentry_sdk/scope.py |
docs/codebase/core/transport.md |
sentry_sdk/transport.py |
docs/codebase/core/tracing.md |
sentry_sdk/tracing.py, sentry_sdk/tracing_utils.py |
docs/codebase/core/data-model.md |
sentry_sdk/utils.py, sentry_sdk/envelope.py, sentry_sdk/attachments.py |
docs/codebase/core/configuration.md |
sentry_sdk/consts.py |
| Page | Primary Sources |
|---|---|
docs/codebase/telemetry/errors.md |
sentry_sdk/client.py (capture_event, capture_exception) |
docs/codebase/telemetry/spans-and-traces.md |
sentry_sdk/tracing.py, sentry_sdk/tracing_utils.py |
docs/codebase/telemetry/logs.md |
sentry_sdk/logger.py |
docs/codebase/telemetry/profiling.md |
sentry_sdk/profiler/ |
docs/codebase/telemetry/sessions.md |
sentry_sdk/sessions.py |
docs/codebase/telemetry/crons.md |
sentry_sdk/crons/ |
For each integration in _MIN_VERSIONS:
- Map it to a category using
GROUPS. - Determine the subdirectory using the style guide's category mapping table.
- Read all Python files in
sentry_sdk/integrations/<name>/(or the single<name>.pyfile). - Read the corresponding test files in
tests/integrations/<name>/for additional context on behavior. - Generate the page following the integration page template from the style guide.
Also generate docs/codebase/integrations/_index.md describing the integration
system: how integrations are discovered, auto-enabled, and configured.
docs/codebase/faq.md-- Common questions derived from the codebase structure.docs/codebase/changelog-summary.md-- High-level summary fromCHANGELOG.md.
After generating all pages, update docs/codebase/_meta/manifest.json with:
{
"version": 1,
"sdk": "python",
"generated_at": "<current ISO timestamp>",
"pages": {
"<relative path from docs/codebase/>": {
"title": "<page title>",
"sources": ["<source file paths>"],
"sources_hash": "<SHA-256 of concatenated source contents>",
"last_updated": "<current ISO date>"
}
}
}Before creating a PR, verify:
- Every integration in
_MIN_VERSIONShas a corresponding doc page. - All pages have valid YAML front-matter with all required fields.
- All pages contain every required section from the style guide.
- Source citations
[S#:L##]reference valid files and approximate line numbers. - The manifest lists every generated page.
- No placeholder or TODO text remains in any page.
If any pages were created or changed compared to the existing docs/codebase/:
- Create a branch named
docs/codebase-refresh-<date>. - Commit all changes under
docs/codebase/. - Open a PR with:
- Title:
docs(codebase): full refresh <date> - Body: Summary of pages generated/updated, count of integrations covered, and any integrations that could not be documented (with reasons).
- Label:
documentation
- Title:
If no changes are needed (all pages are up-to-date), do not create a PR.