Skip to content

Commit 71a8425

Browse files
stephanie-andersonclaude
authored andcommitted
docs(sdk): Rewrite Repository and Documentation spec for readability (#17019)
Rewrites the Repository and Documentation standards page to be more human-friendly: - Add intro paragraph framing the purpose - Merge AGENTS.md, CONTRIBUTING.md, and PR template into one "Required repository files" section - Merge AI context maintenance and AI skills into one "AI context files" section - Add links to dotagents repo and documentation - Replace rigid Rule/Enforcement/Per-SDK override template with natural prose - Remove enforcement boilerplate, StatusBadge components, and suggested skills - Promote spec status to stable --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b326945 commit 71a8425

2 files changed

Lines changed: 35 additions & 132 deletions

File tree

‎develop-docs/sdk/getting-started/playbooks/setup/setting-up-new-sdk-repo.mdx‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ You **MUST** set up a `CODEOWNERS` file with team members to automatically reque
4949

5050
You **MUST** create the following files:
5151

52-
- `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.
53-
- `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.
54-
- `.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).
52+
- `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.
53+
- `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.
54+
- `.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).
5555
- `CHANGELOG.md` or equivalent
5656
- `LICENSE` file
5757

@@ -69,7 +69,7 @@ You **MUST** configure:
6969

7070
#### 4. AI context files
7171

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

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

106106
## Referenced Standards
107107

108-
- [AGENTS.md](/sdk/getting-started/standards/repository-docs#agents-md) — AI context file requirements
109-
- [CONTRIBUTING.md](/sdk/getting-started/standards/repository-docs#contributing-md) — contributor guidelines
110-
- [PR template](/sdk/getting-started/standards/repository-docs#pr-template) — pull request template structure
111-
- [AI context file maintenance](/sdk/getting-started/standards/repository-docs#ai-context-maintenance) — maintaining AI-readable documentation
108+
- [AGENTS.md](/sdk/getting-started/standards/repository-docs#repo-files) — AI context file requirements
109+
- [CONTRIBUTING.md](/sdk/getting-started/standards/repository-docs#repo-files) — contributor guidelines
110+
- [PR template](/sdk/getting-started/standards/repository-docs#repo-files) — pull request template structure
111+
- [AI context file maintenance](/sdk/getting-started/standards/repository-docs#ai-context) — maintaining AI-readable documentation
112112
- [Required reviewers](/sdk/getting-started/standards/review-ci#required-reviewers) — review approval requirements
113113
- [Required CI checks baseline](/sdk/getting-started/standards/review-ci#required-ci-checks) — minimum CI pipeline requirements
114114
- [Commit message format](/sdk/getting-started/standards/code-submission#commit-message-format) — conventional commit format

‎develop-docs/sdk/getting-started/standards/repository-docs.mdx‎

Lines changed: 27 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Repository and Documentation
33
spec_id: sdk/getting-started/standards/repository-docs
44
spec_version: 1.1.0
5-
spec_status: candidate
5+
spec_status: stable
66
spec_platforms:
77
- all
88
spec_changelog:
@@ -19,166 +19,69 @@ sidebar_order: 5
1919

2020
<SpecMeta />
2121

22-
<SpecSection id="agents-md" status="candidate" since="1.0.0">
22+
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.
2323

24-
## AGENTS.md
24+
<SpecSection id="repo-files" status="stable" since="1.0.0">
2525

26-
#### Rule
26+
## Required repository files
2727

28-
Every SDK repo **MUST** have `AGENTS.md` covering:
28+
### AGENTS.md
29+
30+
Every SDK repo **MUST** have an `AGENTS.md` covering:
2931

3032
- Architecture overview
3133
- Testing conventions
3234
- Build instructions
3335
- Contribution expectations
34-
- Commit attribution convention ([AI attribution](/sdk/getting-started/standards/code-submission#ai-attribution))
35-
- SDK-specific standard overrides - updated in same PR as architectural changes
36-
37-
#### Enforcement
38-
39-
- CI file existence check
40-
- Human review for staleness
41-
42-
#### Suggested skill(s)
43-
44-
- [`sentry-skills:agents-md`](https://github.com/getsentry/skills#available-skills)
45-
46-
#### Per-SDK override
47-
48-
<StatusBadge type="yes" /> Content is SDK-specific. Requirement is universal.
36+
- [Commit attribution convention](/sdk/getting-started/standards/code-submission#ai-attribution)
37+
- SDK-specific standard overrides — updated in the same PR as architectural changes
4938

50-
</SpecSection>
51-
52-
---
53-
54-
<SpecSection id="contributing-md" status="candidate" since="1.0.0">
39+
### CONTRIBUTING.md
5540

56-
## CONTRIBUTING.md
57-
58-
#### Rule
59-
60-
Every SDK repo **MUST** have `CONTRIBUTING.md` covering:
41+
Every SDK repo **MUST** have a `CONTRIBUTING.md` covering:
6142

6243
- Setup instructions
6344
- Development workflow
6445
- Explicit quality bar
6546
- Discussion-first policy
6647
- AI tools section
6748

68-
#### Enforcement
69-
70-
- CI file existence check
71-
- AGENTS.md for update checking
72-
- Content quality is human-reviewed
49+
### PR template
7350

74-
#### Per-SDK override
75-
76-
<StatusBadge type="yes" /> Setup/workflow are SDK-specific. Quality bar and AI
77-
sections use shared template.
51+
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.
7852

7953
</SpecSection>
8054

8155
---
8256

83-
<SpecSection id="pr-template" status="candidate" since="1.0.0">
84-
85-
## PR Template
86-
87-
#### Rule
88-
89-
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.
57+
<SpecSection id="documentation-with-code" status="stable" since="1.0.0">
9058

91-
#### Enforcement
59+
## Documentation ships with code
9260

93-
- File existence
61+
User-facing changes need corresponding docs:
9462

95-
#### Suggested skill(s)
63+
- **New feature**: docs PR to [sentry-docs](https://github.com/getsentry/sentry-docs/)
64+
- **Behavior change**: docs update
65+
- **Deprecation**: migration guide (see [breaking changes and deprecations](/sdk/getting-started/standards/api-architecture#breaking-and-deprecation))
66+
- **New config option**: docs entry
9667

97-
- [`sentry-skills:create-pr`](https://github.com/getsentry/skills#available-skills)
98-
99-
#### Per-SDK override
100-
101-
<StatusBadge type="yes" /> Wording varies. Linked-issue prompt is universal.
68+
The SDK PR should link to the docs PR. Neither merges without the other being at least approved.
10269

10370
</SpecSection>
10471

10572
---
10673

107-
<SpecSection id="documentation-with-code" status="candidate" since="1.0.0">
108-
109-
## Documentation-with-Code
110-
111-
#### Rule
112-
113-
User-facing changes **REQUIRE** corresponding docs:
114-
115-
- **New feature**: Docs PR to [sentry-docs](https://github.com/getsentry/sentry-docs/)
116-
- **Behavior change**: Docs update,
117-
- **Deprecation** Migration guide ([Deprecation lifecycle](/sdk/getting-started/standards/api-architecture#deprecation-lifecycle))
118-
- **New config option**: Docs entry
119-
120-
SDK PR links to docs PR. Neither merges without the other being at least approved.
121-
122-
#### Enforcement
123-
124-
- AGENTS.md instruction
125-
- Human review
126-
127-
#### Per-SDK override
128-
129-
<StatusBadge type="no" />
130-
131-
</SpecSection>
132-
133-
---
134-
135-
<SpecSection id="ai-context-maintenance" status="candidate" since="1.0.0">
136-
137-
## AI Context File Maintenance
138-
139-
#### Rule
140-
141-
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.
142-
143-
#### Enforcement
144-
145-
- Human review
146-
- Quarterly review reminder
147-
148-
#### Suggested skill(s)
149-
150-
- [`sentry-skills:agents-md`](https://github.com/getsentry/skills#available-skills)
151-
152-
#### Per-SDK override
153-
154-
<StatusBadge type="yes" /> Which files exist varies. AGENTS.md is required ([AGENTS.md required](#agentsmd)); others recommended.
155-
156-
</SpecSection>
157-
158-
---
159-
160-
<SpecSection id="ai-skills" status="candidate" since="1.1.0">
161-
162-
## AI Skills
163-
164-
#### Rule
165-
166-
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.
167-
168-
Rules files (e.g. `.claude/rules/`, `.cursor/rules/`) **SHOULD** be used for fixed workflow conventions that apply to a specific task or directory.
169-
170-
#### Enforcement
74+
<SpecSection id="ai-context" status="stable" since="1.0.0">
17175

172-
- `agents.toml` / `agents.lock` presence in repo
173-
- Human review
76+
## AI context files
17477

175-
#### Suggested skill(s)
78+
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.
17679

177-
- [`sentry-skills:agents-md`](https://github.com/getsentry/skills#available-skills)
80+
`AGENTS.md` is [required](#repo-files). The others are recommended.
17881

179-
#### Per-SDK override
82+
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.
18083

181-
<StatusBadge type="yes" /> Which skills are active and which rules files exist are SDK-specific.
84+
Rules files (e.g., `.claude/rules/`, `.cursor/rules/`) **SHOULD** be used for fixed workflow conventions that apply to a specific task or directory.
18285

18386
</SpecSection>
18487

0 commit comments

Comments
 (0)