Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ You **MUST** set up a `CODEOWNERS` file with team members to automatically reque

You **MUST** create the following files:

- `AGENTS.md` ([AGENTS.md](/sdk/getting-started/standards/repository-docs#agents-md)) — Use the [AGENTS.md template](/sdk/getting-started/templates/agents-md-template). You **SHOULD** use the [`sentry-skills:agents-md`](https://github.com/getsentry/skills#available-skills) skill to generate initial content.
- `CONTRIBUTING.md` ([CONTRIBUTING.md](/sdk/getting-started/standards/repository-docs#contributing-md)) — Use the [CONTRIBUTING.md template](/sdk/getting-started/templates/contributing-md-template), customized for this SDK.
- `.github/PULL_REQUEST_TEMPLATE.md` ([PR template](/sdk/getting-started/standards/repository-docs#pr-template)) — Use the [PR template](/sdk/getting-started/templates/pr-template).
- `AGENTS.md` ([AGENTS.md](/sdk/getting-started/standards/repository-docs#repo-files)) — Use the [AGENTS.md template](/sdk/getting-started/templates/agents-md-template). You **SHOULD** use the [`sentry-skills:agents-md`](https://github.com/getsentry/skills#available-skills) skill to generate initial content.
- `CONTRIBUTING.md` ([CONTRIBUTING.md](/sdk/getting-started/standards/repository-docs#repo-files)) — Use the [CONTRIBUTING.md template](/sdk/getting-started/templates/contributing-md-template), customized for this SDK.
- `.github/PULL_REQUEST_TEMPLATE.md` ([PR template](/sdk/getting-started/standards/repository-docs#repo-files)) — Use the [PR template](/sdk/getting-started/templates/pr-template).
- `CHANGELOG.md` or equivalent
- `LICENSE` file

Expand All @@ -69,7 +69,7 @@ You **MUST** configure:

#### 4. AI context files

You **MUST** create AI context files ([AI context file maintenance](/sdk/getting-started/standards/repository-docs#ai-context-maintenance)):
You **MUST** create AI context files ([AI context file maintenance](/sdk/getting-started/standards/repository-docs#ai-context)):
- `AGENTS.md` — required

You **SHOULD** create:
Expand Down Expand Up @@ -105,10 +105,10 @@ If the tool cannot do this, the documentation needs work.

## Referenced Standards

- [AGENTS.md](/sdk/getting-started/standards/repository-docs#agents-md) — AI context file requirements
- [CONTRIBUTING.md](/sdk/getting-started/standards/repository-docs#contributing-md) — contributor guidelines
- [PR template](/sdk/getting-started/standards/repository-docs#pr-template) — pull request template structure
- [AI context file maintenance](/sdk/getting-started/standards/repository-docs#ai-context-maintenance) — maintaining AI-readable documentation
- [AGENTS.md](/sdk/getting-started/standards/repository-docs#repo-files) — AI context file requirements
- [CONTRIBUTING.md](/sdk/getting-started/standards/repository-docs#repo-files) — contributor guidelines
- [PR template](/sdk/getting-started/standards/repository-docs#repo-files) — pull request template structure
- [AI context file maintenance](/sdk/getting-started/standards/repository-docs#ai-context) — maintaining AI-readable documentation
- [Required reviewers](/sdk/getting-started/standards/review-ci#required-reviewers) — review approval requirements
- [Required CI checks baseline](/sdk/getting-started/standards/review-ci#required-ci-checks) — minimum CI pipeline requirements
- [Commit message format](/sdk/getting-started/standards/code-submission#commit-message-format) — conventional commit format
Expand Down
151 changes: 27 additions & 124 deletions develop-docs/sdk/getting-started/standards/repository-docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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">
Comment thread
sentry[bot] marked this conversation as resolved.
Resolved

#### 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))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: A new link in repository-docs.mdx points to a non-existent anchor #breaking-and-deprecation in the api-architecture.mdx file.
Severity: MEDIUM

Suggested Fix

Update the link in repository-docs.mdx to point to a valid anchor in api-architecture.mdx. Based on the context, the correct anchor is likely #deprecation-lifecycle.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: develop-docs/sdk/getting-started/standards/repository-docs.mdx#L65

Potential issue: A new link to `.../api-architecture#breaking-and-deprecation` was added
in `repository-docs.mdx`. However, the target file `api-architecture.mdx` does not
contain an element with the ID `breaking-and-deprecation`. The intended anchor was
likely `#deprecation-lifecycle` or `#breaking-change-process`, both of which exist. This
new link introduced by the pull request is broken and will not navigate users to the
correct section of the documentation.

Did 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>

Expand Down
Loading