xiaohongshu
xiaohongshu
This skill should be used when the user asks to "commit", "create a commit", "make a commit", "git commit", "commit these changes", or wants to stage and commit changes to git. Handles staging files, drafting commit messages, following commit conventions, and managing git commits safely.
Full skill instructions
This skill provides comprehensive guidance for creating git commits safely and effectively.
CRITICAL - Always follow these rules:
Only create git commits when the user explicitly asks, such as:
Do NOT create commits proactively without user permission.
Run these commands in parallel to understand the current state:
# Check working tree status
git status
# View unstaged changes
git diff
# View staged changes (if any)
git diff --staged
# Check recent commit history for message style
git log --oneline -10
Stage the relevant files for commit. Common patterns:
# Stage all changes
git add .
# Stage specific files
git add path/to/file1 path/to/file2
# Stage by pattern
git add *.js
Important: Only stage files that are part of the intended commit.
Analyze the staged changes and draft a commit message following these guidelines:
Summarize the nature of the changes:
Format:
Good examples:
Bad examples:
Use the HEREDOC format for proper message formatting:
git commit -m "$(cat <<'EOF'
Add user authentication with JWT tokens
Implements secure login using JWT with refresh token rotation.
Includes password validation and session management.
EOF
)"
After commit completes, verify success:
git status
If a commit fails due to pre-commit hooks:
If hooks auto-modify files after a successful commit:
When the user asks to create a pull request:
Run these commands in parallel:
# Check branch status and untracked files
git status
# View unstaged changes
git diff
# View staged changes
git diff --staged
# Check if branch tracks remote and is up to date
git branch -vv
# View commit history since divergence from base branch
git log --oneline $(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')..HEAD
# View full diff from base branch
git diff $(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')...HEAD
Analyze ALL commits in the branch (not just the latest one) to create a comprehensive summary:
# Create branch if needed (use current branch name)
git push -u origin HEAD
# Create PR with proper formatting
gh pr create --title "PR title here" --body "$(cat <<'EOF'
## Summary
- First major change
- Second major change
- Third major change
## Test plan
- [ ] Test 1
- [ ] Test 2
EOF
)"
# View recent commits
git log -5 --oneline
# View commit details
git show <commit-hash>
# Unstage files
git restore --staged <file>
# Discard unstaged changes
git restore <file>
references/conventions.md - Commit message conventions and examples, including Conventional Commits format and writing guidelinesscripts/analyze-changes.sh - Analyze current changes and show commit style referencexiaohongshu
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