Repository navigation
docs(sdk): Rewrite Repository and Documentation spec for readability #17019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
242d589
c5fe65d
97e35d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| title: Repository and Documentation | ||
| spec_id: sdk/getting-started/standards/repository-docs | ||
| spec_version: 1.1.0 | ||
| spec_status: candidate | ||
| spec_status: stable | ||
| spec_platforms: | ||
| - all | ||
| spec_changelog: | ||
|
|
@@ -19,166 +19,69 @@ sidebar_order: 5 | |
|
|
||
| <SpecMeta /> | ||
|
|
||
| <SpecSection id="agents-md" status="candidate" since="1.0.0"> | ||
| These standards define what every SDK repository should contain beyond the code itself — the files that help humans and AI tools understand, contribute to, and maintain the project. | ||
|
|
||
| ## AGENTS.md | ||
| <SpecSection id="repo-files" status="stable" since="1.0.0"> | ||
|
|
||
| #### Rule | ||
| ## Required repository files | ||
|
|
||
| Every SDK repo **MUST** have `AGENTS.md` covering: | ||
| ### AGENTS.md | ||
|
|
||
| Every SDK repo **MUST** have an `AGENTS.md` covering: | ||
|
|
||
| - Architecture overview | ||
| - Testing conventions | ||
| - Build instructions | ||
| - Contribution expectations | ||
| - Commit attribution convention ([AI attribution](/sdk/getting-started/standards/code-submission#ai-attribution)) | ||
| - SDK-specific standard overrides - updated in same PR as architectural changes | ||
|
|
||
| #### Enforcement | ||
|
|
||
| - CI file existence check | ||
| - Human review for staleness | ||
|
|
||
| #### Suggested skill(s) | ||
|
|
||
| - [`sentry-skills:agents-md`](https://github.com/getsentry/skills#available-skills) | ||
|
|
||
| #### Per-SDK override | ||
|
|
||
| <StatusBadge type="yes" /> Content is SDK-specific. Requirement is universal. | ||
| - [Commit attribution convention](/sdk/getting-started/standards/code-submission#ai-attribution) | ||
| - SDK-specific standard overrides — updated in the same PR as architectural changes | ||
|
|
||
| </SpecSection> | ||
|
|
||
| --- | ||
|
|
||
| <SpecSection id="contributing-md" status="candidate" since="1.0.0"> | ||
| ### CONTRIBUTING.md | ||
|
|
||
| ## CONTRIBUTING.md | ||
|
|
||
| #### Rule | ||
|
|
||
| Every SDK repo **MUST** have `CONTRIBUTING.md` covering: | ||
| Every SDK repo **MUST** have a `CONTRIBUTING.md` covering: | ||
|
|
||
| - Setup instructions | ||
| - Development workflow | ||
| - Explicit quality bar | ||
| - Discussion-first policy | ||
| - AI tools section | ||
|
|
||
| #### Enforcement | ||
|
|
||
| - CI file existence check | ||
| - AGENTS.md for update checking | ||
| - Content quality is human-reviewed | ||
| ### PR template | ||
|
|
||
| #### Per-SDK override | ||
|
|
||
| <StatusBadge type="yes" /> Setup/workflow are SDK-specific. Quality bar and AI | ||
| sections use shared template. | ||
| Every SDK repo **MUST** have a GitHub PR template with description structure guidance and a linked-issue reminder. Keep it minimal — provide guidance rather than enforcing rigid structure with mandatory sections. | ||
|
|
||
| </SpecSection> | ||
|
|
||
| --- | ||
|
|
||
| <SpecSection id="pr-template" status="candidate" since="1.0.0"> | ||
|
|
||
| ## PR Template | ||
|
|
||
| #### Rule | ||
|
|
||
| Every SDK repo **MUST** have a GitHub PR template with description structure guidance and linked-issue reminder. The template **SHOULD** be minimal, providing guidance rather than enforcing rigid structure with mandatory sections. | ||
| <SpecSection id="documentation-with-code" status="stable" since="1.0.0"> | ||
|
|
||
| #### Enforcement | ||
| ## Documentation ships with code | ||
|
|
||
| - File existence | ||
| User-facing changes need corresponding docs: | ||
|
|
||
| #### Suggested skill(s) | ||
| - **New feature**: docs PR to [sentry-docs](https://github.com/getsentry/sentry-docs/) | ||
| - **Behavior change**: docs update | ||
| - **Deprecation**: migration guide (see [breaking changes and deprecations](/sdk/getting-started/standards/api-architecture#breaking-and-deprecation)) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: A new link in Suggested FixUpdate the link in Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
| - **New config option**: docs entry | ||
|
|
||
| - [`sentry-skills:create-pr`](https://github.com/getsentry/skills#available-skills) | ||
|
|
||
| #### Per-SDK override | ||
|
|
||
| <StatusBadge type="yes" /> Wording varies. Linked-issue prompt is universal. | ||
| The SDK PR should link to the docs PR. Neither merges without the other being at least approved. | ||
|
|
||
| </SpecSection> | ||
|
|
||
| --- | ||
|
|
||
| <SpecSection id="documentation-with-code" status="candidate" since="1.0.0"> | ||
|
|
||
| ## Documentation-with-Code | ||
|
|
||
| #### Rule | ||
|
|
||
| User-facing changes **REQUIRE** corresponding docs: | ||
|
|
||
| - **New feature**: Docs PR to [sentry-docs](https://github.com/getsentry/sentry-docs/) | ||
| - **Behavior change**: Docs update, | ||
| - **Deprecation** Migration guide ([Deprecation lifecycle](/sdk/getting-started/standards/api-architecture#deprecation-lifecycle)) | ||
| - **New config option**: Docs entry | ||
|
|
||
| SDK PR links to docs PR. Neither merges without the other being at least approved. | ||
|
|
||
| #### Enforcement | ||
|
|
||
| - AGENTS.md instruction | ||
| - Human review | ||
|
|
||
| #### Per-SDK override | ||
|
|
||
| <StatusBadge type="no" /> | ||
|
|
||
| </SpecSection> | ||
|
|
||
| --- | ||
|
|
||
| <SpecSection id="ai-context-maintenance" status="candidate" since="1.0.0"> | ||
|
|
||
| ## AI Context File Maintenance | ||
|
|
||
| #### Rule | ||
|
|
||
| AI context files (AGENTS.md, `.cursorrules`, `.github/copilot-instructions.md`, CLAUDE.md) **MUST** be maintained as living documentation: updated with architectural changes, reviewed quarterly, periodically tested by having an AI tool attempt a contribution. | ||
|
|
||
| #### Enforcement | ||
|
|
||
| - Human review | ||
| - Quarterly review reminder | ||
|
|
||
| #### Suggested skill(s) | ||
|
|
||
| - [`sentry-skills:agents-md`](https://github.com/getsentry/skills#available-skills) | ||
|
|
||
| #### Per-SDK override | ||
|
|
||
| <StatusBadge type="yes" /> Which files exist varies. AGENTS.md is required ([AGENTS.md required](#agentsmd)); others recommended. | ||
|
|
||
| </SpecSection> | ||
|
|
||
| --- | ||
|
|
||
| <SpecSection id="ai-skills" status="candidate" since="1.1.0"> | ||
|
|
||
| ## AI Skills | ||
|
|
||
| #### Rule | ||
|
|
||
| SDK repos **SHOULD** have dotagents configured with skills from [`getsentry/skills`](https://github.com/getsentry/skills) and [`getsentry/sdk-skills`](https://github.com/getsentry/sdk-skills). Commit `agents.toml` and `agents.lock` so every engineer on the team gets the same skills automatically. | ||
|
|
||
| Rules files (e.g. `.claude/rules/`, `.cursor/rules/`) **SHOULD** be used for fixed workflow conventions that apply to a specific task or directory. | ||
|
|
||
| #### Enforcement | ||
| <SpecSection id="ai-context" status="stable" since="1.0.0"> | ||
|
|
||
| - `agents.toml` / `agents.lock` presence in repo | ||
| - Human review | ||
| ## AI context files | ||
|
|
||
| #### Suggested skill(s) | ||
| AI context files — `AGENTS.md`, `.cursorrules`, `.github/copilot-instructions.md`, `CLAUDE.md` — are living documentation. Keep them up to date with architectural changes, review them quarterly, and periodically test them by having an AI tool attempt a contribution. | ||
|
|
||
| - [`sentry-skills:agents-md`](https://github.com/getsentry/skills#available-skills) | ||
| `AGENTS.md` is [required](#repo-files). The others are recommended. | ||
|
|
||
| #### Per-SDK override | ||
| SDK repos **SHOULD** also have [dotagents](https://github.com/getsentry/dotagents) configured with skills from [`getsentry/skills`](https://github.com/getsentry/skills) and [`getsentry/sdk-skills`](https://github.com/getsentry/sdk-skills). Commit `agents.toml` and `agents.lock` so every engineer on the team gets the same skills automatically. See the [dotagents documentation](https://docs.sentry.io/ai/dotagents/) for setup instructions. | ||
|
|
||
| <StatusBadge type="yes" /> Which skills are active and which rules files exist are SDK-specific. | ||
| Rules files (e.g., `.claude/rules/`, `.cursor/rules/`) **SHOULD** be used for fixed workflow conventions that apply to a specific task or directory. | ||
|
|
||
| </SpecSection> | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.