xiaohongshu
xiaohongshu
feature-merge
Merge feature branches into main using squash commits with comprehensive commit messages. Use this skill when the user requests to merge, ship, or integrate a feature branch into the main branch. The skill analyzes all commits in the feature branch to understand the full scope of changes, then cr...
Full skill instructions
Merge feature branches into main using a squash merge strategy. Analyze all commits in the feature branch to understand the complete scope of changes, then create a single comprehensive commit message following the project's Conventional Commits format. After merging, clean up the feature branch from both local and remote repositories.
Use this skill when:
mainBefore beginning the merge process, verify the following:
git branch --show-current to identify the feature branchmain branch exists (if not, check for master)git status to confirm no uncommitted changesmain with commits to mergeIf any preconditions fail, inform the user and stop the process.
Gather comprehensive information about all changes in the feature branch:
git log main..HEAD --oneline to see all commits that will be mergedgit diff main...HEAD to understand the complete scope of changesgit log main..HEAD (without --oneline) to see detailed commit messagesThe commits serve as reference material ONLY to understand what was done. Do not incorporate the existing commit messages directly into the squash commit.
Based on the changes analyzed, determine the appropriate Conventional Commit type:
If the branch contains multiple types of changes, use the primary type that best represents the overall purpose of the branch.
Create a comprehensive commit message that:
<type>: <description>For complex features, optionally include a body that provides additional context:
feat: Add automated release workflow
Implement GitHub Actions workflow with GoReleaser for automated
binary builds and release creation. Supports semantic versioning
and changelog generation from conventional commits.
Load the commit conventions from references/commit_conventions.md to ensure proper formatting.
Perform the squash merge with the crafted commit message:
git checkout maingit pull origin main to ensure local main is currentgit merge --squash <feature-branch>git commit -m "<commit-message>"Use a HEREDOC for multi-line commit messages to ensure proper formatting:
git commit -m "$(cat <<'EOF'
<type>: <description>
<optional body>
EOF
)"
After successful merge, remove the feature branch:
git branch -d <feature-branch>git push origin --delete <feature-branch>If the remote branch doesn't exist (already deleted or never pushed), the delete command will fail gracefully - this is expected and acceptable.
Inform the user of the successful merge:
<name> into main"main. Push when ready with git push origin main"If git merge --squash results in conflicts:
git add . then git commit"If the feature branch has no commits ahead of main:
If git status shows uncommitted changes:
references/commit_conventions.md: Detailed commit message format and examplesxiaohongshu
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