1. Analyze the User's Request:
* Goal: Design a documentation (doc) Pull Request (PR) strategy.
* Core Concepts: The strategy must categorize docs into three specific buckets:
1. Assets (static resources).
2. Updates (maintenance/fixes).
3. Stories (narratives/new features).
* Implied Context: This is likely for a software development environment (engineering teams, technical writers, DevRel) using a version control system (like Git/GitHub/GitLab). The strategy needs to be actionable for contributors.
-
Deconstruct the Three Categories:
-
Assets:
- What are they? Diagrams, architectural decision records (ADRs), API specs, onboard guides, brand assets, configuration files. Things that don't change often but are foundational.
- PR Strategy: High scrutiny, low frequency. Needs review from architects or leads. "Set and forget" until a major refactor.
-
Updates:
- What are they? Bug fixes in docs (typos, broken links), version bumps, small clarifications, keeping pace with minor code changes. Maintenance.
- PR Strategy: High velocity, low friction. "Drive-by" fixes. Should be easy to approve. Automated checks are key here.
-
Stories:
- What are they? New feature documentation, tutorials, blog posts, migration guides, "Day in the life" usage scenarios. Narrative-driven content.
- PR Strategy: High collaboration, iterative. Involves PMs, Engineers, and Writers. Focuses on "Why" and "How-to," not just "What."
-
Develop the Strategy Framework:
- Introduction: Define the philosophy. Why split it this way? (To manage cognitive load and review bandwidth).
- The Framework (The "How-To"):
- Labeling/Tagging (crucial for filtering).
- Branching strategy (maybe?).
- Review requirements (different for each).
- Detailed Breakdown per Category:
- Type 1: Docs as Assets (The Foundation)
- Focus: Accuracy, Longevity, Structure.
- Reviewers: Subject Matter Experts (SMEs), Tech Leads.
- Template/Format: Strict.
- Type 2: Docs as Updates (The Hygiene)
- Focus: Speed, Freshness, Accuracy.
- Reviewers: Anyone/Docs Team/Automated bots.
- Process: "Triage" mode.
- Type 3: Docs as Stories (The Narrative)
- Focus: User Journey, Empathy, Adoption.
- Reviewers: Product Managers, DevRel, Users (maybe).
- Process: Drafting, Peer Review, Polish.
- The Workflow/Process: How do these interact with code PRs?
- Docs-as-Code principle.
- Coupling vs. Decoupling PRs.
-
Refine and Polish (Self-Correction during drafting):
- Critique: "Assets" might sound too static. Let's frame it as "Infrastructure" or "Reference." Actually, "Assets" is the user's term, so I'll stick to it but explain it well (e.g., high-value, durable).
- Critique: How do we distinguish a "Story" from an "Update"?
- Update: Changing a parameter name.
- Story: Writing a guide on how to use that parameter in a real-world scenario.
- Actionable Advice: I need to provide PR templates or labels.
-
Drafting the Content (Iterative expansion):
- Strategy Name: The AUS Framework (Assets, Updates, Stories).
- Section 1: Philosophy. Move away from "just text files" to "Product components."
- Section 2: Deep Dive.
- Assets: Treat like code architecture. Label:
type/asset.
- Updates: Treat like bug fixes. Label:
type/maintenance.
- Stories: Treat like feature releases. Label:
type/story.
- Section 3: The Review Process. This is where the strategy lives.
- Assets = 2 senior approvals.
- Updates = 1 approval or auto-merge (for typos).
- Stories = Narrative review + Technical review.
- Section 4: Metrics. How do we measure success? (Time to merge, User feedback).
-
Final Review against User Prompt:
- Did I cover Assets? Yes.
- Did I cover Updates? Yes.
- Did I cover Stories? Yes.
- Is it a strategy? Yes, it defines process and rules.
-
Formatting: Use Markdown headers, bullet points, and bold text for readability. (Proceed to generate output based on these structured thoughts).
(Self-Correction during generation): Make sure to emphasize why this distinction helps.
- Updates prevent backlog rot.
- Assets ensure stability.
- Stories drive adoption.
Without this distinction, a typo fix gets the same heavyweight review process as a new API architecture doc, causing bottlenecks.
- Final Output Generation. (This matches the provided good response).
A successful documentation PR (Pull Request) strategy treats documentation not as an afterthought, but as a product within the product. By categorizing doc changes into Assets, Updates, and Stories, you can streamline your review process, set clear expectations for writers and engineers, and ensure high-quality output.
Here is a comprehensive strategy for managing Doc PRs using this framework.
The Core Philosophy: The AUS Framework
- Assets (The Foundation): Durable, high-value content that defines the system.
- Updates (The Hygiene): Maintenance tasks to keep the system accurate.
- Stories (The Journey): Narrative content that guides the user experience.
1. Docs as Assets (The Foundation)
Definition: These are heavy-duty, durable files that rarely change and serve as the "source of truth." They act as infrastructure.
- Examples: Getting Started guides, API References, Architecture diagrams, Security Whitepapers, Contribution guidelines.
- The Mindset: Treat these like production code. They require rigorous vetting.
PR Strategy for Assets
- Labeling:
docs-asset, needs-2-reviewers
- Trigger: New feature launch, major architectural shift, or strategic pivot.
- Review Process:
- Gatekeepers: Requires approval from a Technical Lead (for accuracy) and a Product Manager (for positioning).
- Cycle Time: Longer. Allow 3–5 business days for review. Do not rush these.
- Merge Rules: Squash and merge to keep history clean.
- Automated Checks: Must pass strict linting (Vale or Redwood), link checking, and potentially build-deploy previews.
The Golden Rule: Never mix a simple typo fix PR with an Asset PR. Keep them separate to protect the review integrity of the Asset.
2. Docs as Updates (The Hygiene)
Definition: Small, tactical changes required to keep documentation honest. These are usually non-narrative and reactive.
- Examples: Fixing broken links, updating code snippets for new library versions, correcting typos, bumping version numbers, clarifying a confusing sentence.
- The Mindset: Reduce friction. The goal is speed and accuracy, not storytelling.
PR Strategy for Updates
- Labeling:
docs-maintenance, good-first-issue, size/small
- Trigger: User bug report, sprint chores, automated alert (e.g., Linkinator).
- Review Process:
- Gatekeepers: Requires only 1 Reviewer (any engineer or technical writer).
- Cycle Time: Fast. Same-day or next-day turnaround.
- The "Cookie Lobby" Rule: If an update PR is open for more than 24 hours, the author owes the team cookies (or equivalent). This gamifies speed.
- Merge Rules: Merge commit or squash.
- Automated Checks: Auto-deploy on merge. Use bots (like Dependabot or Renovate) to create these PRs automatically where possible.
The Golden Rule: If the doc change is purely factual (e.g., "The limit is 100, not 50"), the PR description must link to the code commit that proves the change.
3. Docs as Stories (The Journey)
Definition: Narrative-driven content focused on user outcomes rather than system facts. These answer "How do I achieve X?" rather than "What does parameter Y do?"
- Examples: Tutorials, Migration guides, Case Studies, "Day in the Life" walkthroughs, Conceptual explanations.
- The Mindset: Empathy and usability. This is about the user, not the code.
PR Strategy for Stories
- Labeling:
docs-story, user-feedback, needs-review-testing
- Trigger: New user pain point, marketing campaign, major release.
- Review Process:
- The "Dogfooding" Review: The reviewer must attempt to follow the tutorial step-by-step on their local machine. They cannot just read the text.
- Gatekeepers: Requires a Developer Advocate or Technical Writer (for tone/flow) and a Developer (for code accuracy).
- Cycle Time: Medium to Long (2–4 days) because of the manual testing requirement.
- Merge Rules: Merge commit.
- Feedback Loop: Include a "Was this helpful?" widget on the published page to track if the story actually solved the user's problem.
The Golden Rule: A Story PR cannot be merged until the code examples within it have been verified to run successfully by the reviewer.
Implementation: The PR Template
To enforce this strategy, configure your repository with a .github/PULL_REQUEST_TEMPLATE.md that forces the author to choose a category.
Markdown Template Example:
## Doc PR Category
<!-- Please check one: -->
- [ ] **Asset**: New durable content (Guide, API Ref, Arch doc).
- [ ] **Update**: Maintenance (Typos, broken links, version bumps).
- [ ] **Story**: Narrative content (Tutorials, Migration guides).
## Description
<!-- Briefly describe the changes -->
## Reviewer Checklist
<!-- If "Asset", assign 2 reviewers. -->
<!-- If "Update", assign 1 reviewer. -->
<!-- If "Story", verify code snippets locally. -->
## Related Issues
<!-- Link to Jira/GitHub Issue -->
Summary of Success Metrics
| Category | Primary Metric | Reviewer Burden |
|---|
| Assets | Accuracy & Alignment | High (Strict) |
| Updates | Time-to-Merge (TTM) | Low (Fast) |
| Stories | User Success (Helpful?) | Medium (Manual Testing) |