xiaohongshu
xiaohongshu
creating-pull-requests
Use when creating a pull request or preparing changes for review. Ensures PR titles and descriptions accurately reflect ALL changes in the branch AND link to related GitHub issues. Prevents accidentally omitting files, changes, or issue references from PR descriptions.
Full skill instructions
This skill ensures pull requests are comprehensive, accurate, and useful for future reference. PRs should document the COMPLETE set of changes in a branch, not just what was remembered from the current conversation. PRs must also link to related GitHub issues - most PRs have an associated issue, and these links are critical for tracking work and understanding context.
When creating a pull request, execute these steps IN ORDER. Do not skip steps.
Run ALL of these commands to understand the full scope of changes:
# See all files that differ from the base branch
git diff --name-status $(git merge-base HEAD master)..HEAD
# See the full diff to understand what changed
git diff $(git merge-base HEAD master)..HEAD
# See all commits on this branch
git log --oneline $(git merge-base HEAD master)..HEAD
# Check for any uncommitted changes that should be included
git status
IMPORTANT: Read the FULL output of these commands. Do not skim or summarize prematurely.
Most PRs should close an issue. Before creating the PR, actively search for related issues.
# Search all issues (open and closed) to find any related context
gh issue list --search "keyword1 keyword2" --state all
# Example: If fixing email notifications, try multiple keyword variations:
gh issue list --search "email notification" --state all
gh issue list --search "notification not sent" --state all
Extract keywords from:
fix/email-notifications → search "email notifications")If you find related issues:
Closes #XXX or Fixes #XXX for eachIf no issues are found after searching:
Common rationalization to avoid:
"The user didn't mention an issue, so there probably isn't one"
This is wrong. Users often forget to mention issue numbers. Your job is to find them.
Group every changed file into categories. Common categories include:
Every file from the diff MUST appear in at least one category.
The PR title should:
Good: fix(router): prevent redirect loop for API routes
Bad: fix redirect issue
The description MUST include:
List ALL changed files grouped by purpose. Example:
### Bug Fixes
- `src/router.ts` - Fixed redirect logic
### New Features
- `src/components/Feature.tsx` - Added new component
### Configuration
- `config/settings.json` - Updated default values
Before creating the PR, verify:
git diff --name-status is mentioned in the descriptionCloses #XXX for found issues, OR (b) You asked the user and confirmed no issue existsWrong: "I changed the router to fix redirects"
Right: Run git diff and document ALL changes, including ones from earlier in the session or previous sessions
Wrong: Leaving out config file changes because they seem unimportant Right: Every changed file is documented - config changes often matter for deployment
Wrong: "Fixed some bugs and updated configs" Right: Specific descriptions of what was fixed and why, with file references
Wrong: Creating PR with unstaged changes still pending
Right: Run git status first and decide if pending changes should be committed
Wrong: "The user didn't mention an issue, so I'll just create the PR without one" Right: Search GitHub for related issues using keywords from the branch name and commit messages. If nothing found, ask the user before proceeding.
Wrong: Fixes #1234 (if there was an issue) or skipping the search entirely
Right: Always search for issues. Most PRs have one. Include Closes #XXX for every related issue found.
Use this template structure:
## Summary
- [Primary change/fix with context]
- [Secondary changes]
- [Any additional notable changes]
Closes #XXX
## Changes
### [Category 1]
- `path/to/file.ext` - Description of change
### [Category 2]
- `path/to/file.ext` - Description of change
## Test Plan
- [ ] Step to verify change 1
- [ ] Step to verify change 2
## Notes
[Any additional context, breaking changes, or follow-up work needed]
If you catch yourself thinking any of these, STOP. You are rationalizing skipping a required step.
| Excuse | Reality |
|---|---|
| "User didn't mention an issue" | Users forget. Search anyway. |
| "This seems like new work, not a fix" | New features often have tracking issues too. Search. |
| "I'll let the user add issue links" | Your job is to create a complete PR. Search. |
| "Searching would slow things down" | It takes 10 seconds. Do it. |
| "The PR description says 'if applicable'" | Issue search is NOT optional. Always search. |
| "I already know what the PR is about" | You might miss related issues. Search. |
All of these mean: Run gh issue list --search before creating the PR.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience