pr-description
Guide for creating comprehensive PR descriptions with proper structure, diagrams, and documentation for code reviews.
What this skill does
# PR Description Skill This skill provides a structured approach to creating comprehensive pull request descriptions that help reviewers understand changes quickly. ## When to Use Use this skill when: - Creating a new pull request - User asks to "create a PR description" or "write a PR description" - Documenting significant code changes for review ## File Creation (Optional) If saving the PR description to a file: - **Pattern**: `pr_description_<descriptive_title>_<timestamp>.md` - **Get timestamp**: `date +"%Y%m%d_%H%M%S"` - **Example**: `pr_description_user_auth_refactor_20250612_152832.md` ## Required Structure ```markdown # PR Title: [Descriptive Title] ## ๐ Summary Brief overview of what this PR accomplishes in 2-3 sentences. ## ๐ Data Flow Diagram [Mermaid diagram showing the flow/architecture - use `mermaid` skill for styling] ## ๐๏ธ Entity Relationship Diagram [Include if creating/modifying data relationships - Mermaid ERD] ## ๐ฏ Goals - Primary objective 1 - Primary objective 2 - Any secondary objectives ## ๐ Changes in this PR - Description of key changes - Any config file changes - Schema modifications - Breaking changes (if any) ## ๐งช Testing ### Commands Run ```bash # List exact commands used for testing npm test npm run lint ``` ### Results - โ All tests passed - โ Linting passed - โ Build successful - Include any relevant screenshots or output ### Validation - Key scenarios tested - Edge cases covered - Performance considerations ## ๐ Notes for Reviewers - Pay attention to: [specific areas] - Assumptions made: [list any assumptions] - Dependencies: [any upstream/downstream impacts] ## ๐ Future Work - Any follow-up tasks not included in this PR - Potential optimisations - Additional testing needed ``` ## Mermaid Diagrams **Use the `mermaid` skill** for diagram syntax and styling that works in both light and dark mode. ### Data Flow Diagram Show the complete flow of data or logic: - Input sources - Processing steps - Output destinations - Include a colour-coded legend ### Entity Relationship Diagram (When Applicable) Show object/data relationships: - Primary keys (PK) - Foreign keys (FK) - Relationship cardinality (one-to-many, many-to-many) ## Content Guidelines ### Summary Section - Explain business context briefly - Highlight key benefits - Keep it to 2-3 sentences ### Changes Section - Focus on what matters to reviewers - Group related changes together - Note any breaking changes prominently ### Testing Section - **ALWAYS include exact commands run** - Show evidence of successful tests - Include validation results - Add screenshots when helpful ### Future Work Section - List intentionally deferred items - Suggest optimisations or enhancements - Note any technical debt created ## Key Principles 1. **Be specific**: Include exact commands, concrete examples 2. **Show evidence**: Screenshots, command outputs, test results 3. **Think reviewer-first**: What would a reviewer need to understand the changes? 4. **Business context**: Explain the "why" not just the "what" 5. **Keep it scannable**: Use headers, bullet points, and formatting ## Good Examples ### Good Summary "This PR refactors the user authentication flow to use JWT tokens instead of session cookies. The change improves scalability for our microservices architecture and reduces server-side session storage requirements." ### Good Testing Description ```bash # Commands run npm run test:unit npm run test:integration npm run lint ``` **Results:** - โ 47 unit tests passed - โ 12 integration tests passed - โ No linting errors - โ Manual testing completed on staging environment ## Error Handling - If unable to determine scope of changes, ask user for clarification - If testing hasn't been completed, remind user to run tests first - If no diagrams provided, create placeholder diagrams and ask user to review
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.