Setting Up a New SDK Repository

Statuscandidate
Version1.0.0(changelog)

This playbook guides SDK maintainers through setting up a new SDK repository from scratch. It covers repository scaffolding, required documentation files, CI pipeline configuration, and verification steps to ensure AI tools can effectively contribute. By following these steps, the repository will have proper branch protection, documentation, testing infrastructure, and release automation in place.

Related resources:


Create the repository in the getsentry organization. You MUST configure branch protection rules:

You MUST set up a CODEOWNERS file with team members to automatically request reviews.

You MUST create the following files:

Set up CI with at minimum:

You MUST configure:

You MUST create AI context files (AI context file maintenance):

  • AGENTS.md — required

You SHOULD create:

  • CLAUDE.md
  • .cursorrules
  • .github/copilot-instructions.md

You MUST configure release automation:

  • Craft configuration (.craft.yml)
  • Version bump script (e.g., scripts/bump-version.sh)
  • Release workflow (e.g., .github/workflows/release.yml)

You MUST document rollback procedures (Rollback procedures):

  • Who can publish and yank releases (at least two people)
  • How to yank a release from the package registry
  • Backup contact if the primary publisher is unavailable

Clone the repository fresh. Point an AI coding tool at it with no additional context. Ask it to make a sample contribution.

You MUST verify that:

  • AGENTS.md gives the tool enough context to understand the architecture
  • The tool can figure out how to run tests
  • The tool creates a properly formatted commit
  • The tool opens a draft PR with a meaningful description

If the tool cannot do this, the documentation needs work.


VersionDateSummary
1.0.02026-02-21Initial playbook — standardized SDK repository setup with required files, CI pipeline, and AI context
Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").