-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Revamp Docs PR Template
Overview
The PR template for the strands-agents/docs repository is currently too verbose and contains sections that are frequently left empty or unused. After analyzing 12+ recent merged PRs, we need to create streamlined templates that better match actual contributor usage patterns.
Current Template Issues:
- Too many sections (8 total)
- Sections like "Areas Affected", "Screenshots", and "Additional Notes" are often empty
- Placeholder text "" is frequently not removed
- Checklist items are often left unchecked even when PRs are merged
- Template is too rigid for varied PR types (typo fixes vs major features)
Reference Links:
- Current template: https://github.com/strands-agents/docs/blob/main/.github/PULL_REQUEST_TEMPLATE.md
- Recent merged PRs: https://github.com/strands-agents/docs/pulls?q=is%3Apr+is%3Amerged+
Implementation Requirements
Based on PR analysis and clarification discussion:
Deliverables
Create three new PR template files in .github_temp/PULL_REQUEST_TEMPLATE/:
default.md- Main template for general PRsquick-fix.md- Simplified template for typo/formatting fixesfeature.md- Template for major feature additions
Template Design Specifications
1. Default Template (default.md)
Required Sections:
-
Description & Context (merged section)
- Include prompt for what changed and why
- Encourage linking to related issues with
Fixes #123orRelated to #123format
-
Type of Change (checkbox format)
- Use checkboxes (easier to use than text list)
- Remove placeholder text issue
- Options: New content, Content update, Structure/organization, Typo/formatting, Bug fix, Other
-
Checklist (simplified to 3-4 items)
- Essential items only with "if applicable" language
- Example items:
- I have tested the documentation locally using
mkdocs serve(if applicable) - Links in the documentation are valid and working
- My changes follow the project's documentation style
- All new and existing tests pass (if applicable)
- I have tested the documentation locally using
-
Licensing Statement (keep as-is)
Sections to Remove:
Areas Affected(often empty)Screenshots(often N/A, contributors can add if needed)Additional Notes(often empty)
2. Quick Fix Template (quick-fix.md)
Minimal template for typos, formatting, and small corrections:
- Description - Brief description of fix
- Type of Fix - Simple checkbox: Typo, Formatting, Link fix, Other
- Files Changed - List of affected files
- Checklist (2-3 items max)
- I have tested locally using
mkdocs serve - Changes follow documentation style
- I have tested locally using
- Licensing Statement
3. Feature Template (feature.md)
Comprehensive template for new content/major additions:
- Description & Motivation - What and why
- Related Issues - Link to issues/PRs
- Type of Change - Checkboxes for change type
- Content Overview - What pages/sections are being added
- Testing & Validation
- Tested locally with
mkdocs serve - All links are valid and working
- Images/diagrams properly formatted (if applicable)
- Follows documentation style
- All tests pass
- Tested locally with
- Licensing Statement
File Locations
All templates must be created under .github_temp/PULL_REQUEST_TEMPLATE/ directory:
.github_temp/PULL_REQUEST_TEMPLATE/default.md.github_temp/PULL_REQUEST_TEMPLATE/quick-fix.md.github_temp/PULL_REQUEST_TEMPLATE/feature.md
Note: Templates are created in .github_temp instead of .github because we don't have permission to push to .github directory directly. These will need to be moved to .github/PULL_REQUEST_TEMPLATE/ when the PR is reviewed.
Usage Instructions
When users create a PR, they can select a template by appending query parameter:
- Default: Auto-selected when no query parameter
- Quick Fix:
?template=quick-fix.md - Feature:
?template=feature.md
Include a README.md in .github_temp/PULL_REQUEST_TEMPLATE/ explaining:
- What each template is for
- How to select a template
- Instructions for moving templates to
.github/PULL_REQUEST_TEMPLATE/during PR review
Acceptance Criteria
- Three new PR template files created in
.github_temp/PULL_REQUEST_TEMPLATE/ - Default template has merged Description & Context section
- All templates use checkbox format for Type of Change (no placeholder text)
- Checklists are simplified to 3-4 essential items with "if applicable" language
- Quick-fix template is minimal and easy to use
- Feature template is comprehensive for major changes
- All sections that are often empty (Areas Affected, Additional Notes) are removed
- Screenshots section is removed (contributors can add manually if needed)
- README.md created explaining template usage and deployment
- All templates include the licensing statement
- Templates are properly formatted and render correctly in markdown
Testing Approach
- Create the three template files with proper markdown formatting
- Verify markdown renders correctly by viewing files in GitHub
- Document how to test templates work correctly (requires actual PR creation to verify)
- Include instructions in README for final validation after templates are moved to
.github/directory
Technical Notes
- Repository: strands-agents/docs (this work is for that repo, not sdk-python)
- Language: Markdown
- No code changes: Pure documentation/template work
- No automated tests needed: Manual validation via PR creation
- Cross-repo context: Many docs PRs reference sdk-python issues, templates should support this pattern
Documentation Updates
Consider adding to the docs repository's CONTRIBUTING.md:
- Brief mention of multiple PR template options
- Guidance on which template to use for different PR types
- Link to template README for detailed instructions
This will help prevent future confusion and improve contributor experience.