Skip to content

docs: add modular design system adr#8012

Open
joshblack wants to merge 45 commits into
mainfrom
docs/add-modular-ds-adr
Open

docs: add modular design system adr#8012
joshblack wants to merge 45 commits into
mainfrom
docs/add-modular-ds-adr

Conversation

@joshblack

@joshblack joshblack commented Jun 17, 2026

Copy link
Copy Markdown
Member

Introduces an ADR as a follow up to our Modular Design System Workshop. This ADR defines the abstraction model we'll use for component development moving forward. Certain deliverables, like what components we are breaking up or what base components we would like to ship, have been moved to pitches over in github/primer.

This ADR also includes initial agents, skills, and additions to our style document that reflect the spectrum of abstraction being proposed.

@changeset-bot

changeset-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 537641c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added the staff Author is a staff member label Jun 17, 2026
@joshblack joshblack added skip changeset This change does not need a changelog integration-tests: skipped manually Changes in this PR do not require an integration test labels Jun 17, 2026
@github-actions github-actions Bot temporarily deployed to storybook-preview-8012 June 17, 2026 17:27 Inactive
@primer

primer Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

🤖 Lint issues have been automatically fixed and committed to this PR.

@primer

primer Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

🤖 Lint issues have been automatically fixed and committed to this PR.

Added components to the list of breaking components.
@primer

primer Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

🤖 Lint issues have been automatically fixed and committed to this PR.

@primer

primer Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

🤖 Lint issues have been automatically fixed and committed to this PR.

@github-actions github-actions Bot requested a deployment to storybook-preview-8012 July 2, 2026 21:44 Abandoned
Co-authored-by: Leslie Cohn-Wein <lesliecdubs@github.com>
@github-actions github-actions Bot requested a deployment to storybook-preview-8012 July 2, 2026 21:50 Abandoned
@primer

primer Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

🤖 Formatting issues have been automatically fixed and committed to this PR.

@github-actions github-actions Bot requested a deployment to storybook-preview-8012 July 2, 2026 21:55 Abandoned
@joshblack joshblack marked this pull request as ready for review July 2, 2026 21:57
@joshblack joshblack requested a review from a team as a code owner July 2, 2026 21:57
@joshblack joshblack requested review from Copilot and llastflowers July 2, 2026 21:57

Copilot AI left a comment

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.

Pull request overview

Adds documentation and contributor tooling to formalize the “Modular Design System” approach for Primer React, including an ADR and updated style guide guidance that defines a spectrum-of-abstraction model for component APIs.

Changes:

  • Document the spectrum-of-abstraction API model (config, presentational, base, utilities) in contributor-docs/style.md.
  • Add a new ADR (adr-024-modular-ds.md) capturing context, decision, examples, and consequences from the Modular DS workshop.
  • Introduce a style-guide skill and modular DS-focused agent definitions to help guide implementation/review work.
Show a summary per file
File Description
contributor-docs/style.md Adds a new style-guide section defining the spectrum-of-abstraction model and when to use each API type.
contributor-docs/adrs/adr-024-modular-ds.md New ADR documenting the Modular DS decision, with layered examples and consequences.
.github/skills/style-guide/SKILL.md New skill that points contributors/reviewers to contributor-docs/style.md as the API/source-of-truth.
.github/agents/modular-ds-reviewer.agent.md Adds a read-only reviewer agent spec focused on checking alignment with the modular DS style-guide principles.
.github/agents/modular-ds-implementer.agent.md Adds an implementer agent spec focused on building components following the modular DS model.

Review details

  • Files reviewed: 5/5 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment thread contributor-docs/adrs/adr-024-modular-ds.md Outdated
@github-actions github-actions Bot requested a deployment to storybook-preview-8012 July 2, 2026 22:01 Abandoned
joshblack and others added 4 commits July 2, 2026 17:05
@github-actions github-actions Bot temporarily deployed to storybook-preview-8012 July 2, 2026 22:12 Inactive
joshfarrant added a commit that referenced this pull request Jul 3, 2026
…r, port prop-getter shape, note RSC export convention

- Entry-points table in the implementer agent now reads as target-state
  rather than shipped fact (foundations/hooks subpaths don't exist in
  packages/react/package.json yet).
- modular-ds-spectrum-model links to ADR-024, hedged since #8012 (which
  adds the ADR file) hasn't merged yet.
- modular-ds-utilities now shows the prop-getter hook shape in code, not
  just prose, per the pr-7778 reviewer's ask for concrete patterns.
- modular-ds-base-components and modular-ds-presentational-components
  note that their dot-notation examples are illustrative only; the RSC-safe
  flat-export convention is what ships.
- Implementer agent's validation section now points to
  modular-ds-tdd-a11y-test-backfill instead of duplicating the 5-step list.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: skipped manually Changes in this PR do not require an integration test skip changeset This change does not need a changelog staff Author is a staff member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants