Skip to content

docs(contributing): refactor contributor guidance into playbooks#2958

Merged
makeavish merged 6 commits intomainfrom
chore/doc-cleanup
Mar 24, 2026
Merged

docs(contributing): refactor contributor guidance into playbooks#2958
makeavish merged 6 commits intomainfrom
chore/doc-cleanup

Conversation

@makeavish
Copy link
Member

@makeavish makeavish commented Mar 24, 2026

Summary

Refactor contributor guidance into a layered, task-based system with a slim root CONTRIBUTING.md and canonical playbooks under contributing/.

Motivation / Problem

CONTRIBUTING.md had become a monolithic source for contributors, reviewers, agents, and workflow prompts, which made it hard to scan and easy to duplicate or drift.

Changes

  • Replaced the monolithic CONTRIBUTING.md with a short task router and added focused playbooks/templates under contributing/
  • Updated AGENTS.md, PR template, review skills, and GitHub workflow prompts to consume the canonical playbooks instead of duplicating policy
  • Kept the published /docs/contributing/ page organization-wide while pointing signoz-web-specific contributors to the repo-local guide

Description

This PR centralizes detailed contributor policy into repo-internal playbooks, keeps the root contributor guide stable and easier to skim, and aligns reviewers/agents/workflows on the same source of truth. It also includes the earlier branch changes for onboarding label guidance and componentItems href validation in the sync test.

Type of Change

  • Docs – Changes to data/docs/**
  • Blog – Changes to data/blog/**
  • Site Code – Changes to app/**, components/**, hooks/**, utils/**, config, etc.
  • Redirects – Renamed/moved docs or updated next.config.js redirects
  • Dependencies / CI / Scripts
  • Other – Repo contributor / review guidance refactor

Impact

  • Documentation only
  • UI changes
  • Developer workflow
  • Performance impact
  • Breaking change

If breaking change, describe migration steps:

Context & Screenshots

No UI changes.

Before / After (if applicable)

Before: one large CONTRIBUTING.md carried most contributor, reviewer, and agent policy.
After: CONTRIBUTING.md is the entrypoint, and detailed policy lives under contributing/.

Checklist

General

  • Branch is up to date with main
  • PR title follows conventional format (type: description)
  • Self-reviewed the code
  • Comments added for complex logic

For all changes

  • Built locally (yarn build) with no errors
  • Ran yarn lint and fixed any issues
  • Pre-commit hooks passed (or ran yarn check:doc-redirects / yarn check:docs-metadata if applicable)

For docs changes (data/docs/**)

For blog changes

  • Followed the blog workflow in contributing/blog-workflow.md
  • Frontmatter includes title, date, author, tags (and canonicalUrl if applicable)
  • Images use WebP format and live under public/img/blog/<YYYY-MM>/

For site code changes

For renamed or moved docs

  • Followed the redirects and discovery playbook in contributing/redirects-and-discovery.md
  • Added permanent redirect in next.config.js under async redirects()
  • Updated internal links and sidebar in constants/docsSideNav.ts
  • Ran yarn check:doc-redirects to verify

Testing

  • Tested locally
  • Edge cases considered
  • Existing functionality verified
  • New tests added (if applicable)

Steps to test:

  1. yarn check:docs-metadata
  2. yarn check:doc-redirects
  3. yarn test:docs-metadata
  4. yarn test:doc-redirects
  5. node --test tests/component-items-sync.test.js
  6. yarn tsc --noEmit

This branch also contains the earlier commits that:

  • clarified onboarding label guidance for docs PR reviews
  • broadened tests/component-items-sync.test.js href validation to allow root-relative links

… organization

Refined contribution guidelines for adding listicle items:
- Treat `constants/componentItems.ts` as barrel/export file only, move source data to `constants/componentItems/*.ts`
- Clarify when to use flat lists vs sectioned objects with `getAll*()` helpers
- Emphasize using named keys instead of `slice()` to prevent silent data shifts
- Add verification command `node --test tests/component-items-sync.test.js`
- Improve markdown formatting with blank lines for better readability
Updated the documentation for PR review processes to clarify the criteria for applying the `add-to-onboarding` label. Key changes include:
- Detailed conditions for labeling based on new documentation files and their relevance to SigNoz data ingestion.
- Added examples of when to apply or skip the onboarding label.
- Specified handling of permission issues when applying labels during reviews.
- Improved instructions for using the GitHub API to inspect PR file statuses.
Enhanced the contribution documentation by:
- Clarifying the use of `CONTRIBUTING.md` as the entry point and introducing specific playbooks under `contributing/**` for detailed guidance.
- Updating the agent skills to reference the new playbooks for PR reviews, ensuring consistency in documentation standards.
- Adding a new `blog-workflow.md` for blog contributions and a `docs-authoring.md` for product documentation authoring standards.
- Streamlining the onboarding label policy and review processes to align with the new structure.
@vercel
Copy link

vercel bot commented Mar 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
signoz-web Ready Ready Preview, Comment Mar 24, 2026 10:06am

Request Review

@makeavish makeavish marked this pull request as ready for review March 24, 2026 09:45
@makeavish makeavish requested review from a team, pranay01 and therealpandey as code owners March 24, 2026 09:45
@github-actions
Copy link
Contributor

github-actions bot commented Mar 24, 2026

Claude finished @makeavish's task in 3m 58s —— View job


PR Review: docs(contributing) — refactor contributor guidance into playbooks

  • Gather context and read changed files
  • Review docs and structural changes
  • Post inline comments for concrete issues
  • Run verification checks (blocked — sandbox does not allow yarn/node execution)
  • Post summary

Findings

P2 — Repo name mismatch in absolute URLs
All four checklist links in .github/PULL_REQUEST_TEMPLATE.md (lines 60, 64, 69, 73) and both links in data/docs/contributing.mdx (lines 19, 23) point to SigNoz/signoz-web, but the GitHub repo is SigNoz/signoz.io. These may work via GitHub rename redirect today, but should use the canonical name to avoid silent breakage. Code suggestions provided inline.

P2 — Verification matrix duplicated in 3 places
The identical verification matrix now appears in CONTRIBUTING.md (lines 25-37), AGENTS.md (lines 46-54), and contributing/repo-workflow.md (lines 44-57). The PR's goal is to reduce duplication by routing to canonical playbooks — consider keeping the matrix only in repo-workflow.md and linking from the other two. Inline comment on CONTRIBUTING.md.

P3 — AGENTS.md lost some high-signal inline guidance
The removed AGENTS.md content included specific componentItems rules (sub-keys over slice(), verification commands) and happy-path-first principles that were immediately actionable for agents without following a link. These now live only in contributing/site-code.md. This is an acceptable tradeoff if agents reliably read playbooks, but consider keeping a one-line pointer like "See contributing/site-code.md for componentItems data rules" in the frontend section.

Personas and fit

This PR targets contributors, reviewers, and coding agents. The new layered structure (slim root CONTRIBUTING.md → task playbooks → templates) is a clear improvement for all three audiences.

JTBD coverage

The refactor achieves its stated job: replace monolithic guidance with a task router. The playbooks are well-structured and internally consistent. The JTBD-first rubric, onboarding-label policy, and doc-type guidance are all properly placed in their respective playbooks.

Checklist coverage

  • Frontmatter on data/docs/contributing.mdx: date, id, title, description, doc_type all present and correct.
  • doc_type: reference fits the page purpose.
  • Content aligns with its reference role — points readers to the right repo, doesn't duplicate setup instructions.
  • No sidebar or redirect changes needed (existing page, same URL).

Open questions

  • The tests/component-items-sync.test.js change broadens href validation from /docs/ to any root-relative path (/). The commit message explains the rationale, but I could not run node --test tests/component-items-sync.test.js in this environment to confirm the tests pass. Verify this passes in CI.
  • yarn check:docs-metadata and yarn check:doc-redirects could not be run here — verify in CI.

Onboarding label: skipped

This PR edits an existing docs page and adds repo-internal contributor guidance — not a new send-data page.

- Consolidated the verification matrix into a single reference in `contributing/repo-workflow.md`.
- Updated links in `AGENTS.md`, `CONTRIBUTING.md`, and `contributing.mdx` to point to the new repository URL `signoz.io`.
- Streamlined the verification process instructions for clarity and consistency across documentation.
@makeavish makeavish enabled auto-merge (squash) March 24, 2026 09:57
@makeavish makeavish merged commit 6445964 into main Mar 24, 2026
9 checks passed
@makeavish makeavish deleted the chore/doc-cleanup branch March 24, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants