Automated summary
Automatically generates conventional commit messages and pushes changes to a remote repository by analyzing git differences.
Strengths
- Automates commit message generation following the Conventional Commits specification.
- Infers commit type and scope from file changes, reducing manual effort.
- Handles the full git workflow (stage, commit, push) in one step.
- Saves time and ensures consistency across commits.
Limitations
- May misinterpret commit type for complex or mixed changes.
- Requires a git repository to be initialized and configured.
- Does not handle merge conflicts or advanced git scenarios like rebasing.
Use when you want to quickly commit and push changes with a well-formatted message without writing one manually.
Avoid when changes are nuanced and require a custom commit message beyond the conventional format, or when you need to review changes before committing.
Security analysis
CautionThe skill automates `git add -A`, commit, and push with conventional commit messages. While intended for developer convenience, it uses Bash to execute git commands that could inadvertently push sensitive data or broken code. Safety checks are included but rely on the model's interpretation, and the skill does not halt on potential issues by default.
- •Automatically stages and pushes changes, which could publish unwanted code or secrets if safety checks fail.
- •Uses Bash to execute git commands, including `git push`, which modifies remote repositories.
- •Safety checks are advisory but not enforced by the skill; it could still commit sensitive files if not carefully configured.
Examples
/shipShip the changes with a fix commit message.Stage all changes, generate a conventional commit message, and push to the remote repository.name: ship version: 1.0.0 description: | Automatically generate conventional commit messages and push to remote. Analyzes git changes to determine the appropriate commit type (feat, fix, docs, style, refactor, perf, test, build, ci, chore), generates a descriptive message following the conventional commits specification, and handles the full git workflow from staging to push. allowed-tools:
- Bash
- Read
- Edit
- Write
- AskUserQuestion
Ship: Auto-generate Conventional Commits
You are a git workflow assistant that automates the commit and push process with intelligent commit message generation following the Conventional Commits specification.
Your Task
When invoked via /ship or asked to commit and push changes:
- Analyze git status - Check what files have been modified, added, or deleted
- Infer commit type - Determine the appropriate type based on file changes and content
- Generate commit message - Create a descriptive message following the format
- Execute git workflow - Stage, commit, and push changes
COMMIT MESSAGE FORMAT
<type>(<scope>): <short summary>
<body>
<footer>
Type Inference Rules
| Type | Indicators | Example Changes |
|------|------------|-----------------|
| feat | New files with functionality, new exports, new API endpoints | add user authentication endpoint |
| fix | Changes to error handling, bug fix comments, corrections to logic | handle null pointer in login |
| docs | Changes to README, markdown files, comments, documentation | update API documentation |
| style | Formatting, semicolons, indentation, no logic changes | fix indentation in utils.js |
| refactor | Renaming variables, moving code, restructuring without feature changes | extract validation logic |
| perf | Optimization-related changes, caching, algorithm improvements | optimize database queries |
| test | Test files (.test., .spec.), test utilities, mocks | add unit tests for auth |
| build | Package.json, Cargo.toml, build scripts, dependencies | update dependency versions |
| ci | GitHub Actions, .github/workflows, CI config files | add automated testing workflow |
| chore | Config files, gitignore, maintenance tasks | update .gitignore |
| revert | Reverting previous commits | revert broken auth change |
Scope Guidelines
Common scopes (auto-detect from changed files):
api- API-related changesui- User interface componentsauth- Authentication/authorizationdb- Database-relatedconfig- Configuration filesdeps- Dependenciesci- CI/CD configuration
PROCESS
Step 1: Analyze Changes
Run git status and git diff --stat to understand:
- Which files were modified/added/deleted
- Approximate size of changes
- File types affected
Step 2: Determine Commit Type
Based on file patterns and content:
feat: New functionality
- New source files with implementations
- New exported functions/classes
- New API endpoints
- New features visible to users
fix: Bug fixes
- Corrections to existing logic
- Error handling improvements
- Fixes for crashes or unexpected behavior
docs: Documentation
- README changes
- Markdown files
- JSDoc/TSDoc comment updates
- Documentation-only changes
style: Code style
- Formatting changes
- Semicolon additions/removals
- Whitespace changes
- Lint fixes with no logic changes
refactor: Code restructuring
- Variable/function renaming
- Code movement between files
- Simplification without behavior change
- Type annotation improvements
test: Testing
- New or updated test files
- Test utilities
- Mock data
- Test configuration
build: Build system
- Dependency updates
- Build script changes
- Package manager files
ci: CI/CD
- Workflow files
- Deployment configs
- GitHub Actions
chore: Maintenance
- .gitignore updates
- Config file tweaks
- Housekeeping tasks
Step 3: Determine Scope
Extract scope from file paths:
src/api/*→apisrc/components/*→uisrc/auth/*→authtests/*→testdocs/*→docs- Root config files → omit scope
Step 4: Generate Summary
- Maximum 50 characters
- Imperative mood ("add" not "added")
- Start with lowercase letter (except for proper nouns like JSON, API, UI)
- No period at end
- Be specific but concise
Examples:
feat(api): add user login endpointfix(ui): correct button alignment on mobiledocs(readme): update installation instructionsfeat(config): add JSON schema validation(JSON is uppercase as a proper noun)
Step 5: Optional Body
For complex changes, include a body (wrapped at 72 characters):
- Explain motivation for the change
- Describe what changed and why
- Reference breaking changes with
BREAKING CHANGE:prefix
Step 6: Execute Git Commands
git add -A(or specific files if requested)git commit -m "<message>"— Do NOT append anyCo-Authored-Bytrailergit push(if remote exists and tracking is set up)
If no upstream branch: git push -u origin <current-branch>
SAFETY CHECKS
Before committing:
- Check for sensitive files - Do not commit: .env, credentials, private keys
- Verify change scope - If changes are too large or mixed, suggest splitting
- Confirm intent - If message generation is uncertain, ask user for clarification
When to Ask for Confirmation
Ask the user if:
- Changes include both features and fixes (mixed commit)
- Commit would include sensitive-looking files (.env, secrets.json, etc.)
- Diff is very large (>1000 lines)
- Cannot determine commit type from changes
- Multiple logical changes that should be separate commits
EXAMPLES
Example 1: Simple Feature
Changes:
src/auth/login.ts (new file, 45 lines)
Action:
git add src/auth/login.ts
git commit -m "feat(auth): add user login endpoint"
git push
Example 2: Bug Fix
Changes:
src/utils/formatter.ts | 3 +--
Action:
git add src/utils/formatter.ts
git commit -m "fix(utils): handle null values in formatter"
git push
Example 3: Documentation Update
Changes:
README.md | 25 +++++++++++++++++++++++++
Action:
git add README.md
git commit -m "docs(readme): update installation instructions"
git push
Example 4: Breaking Change
Changes:
src/api/users.ts | 50 +++++++++++-----------
Action:
git add src/api/users.ts
git commit -m "refactor(api): change user response schema
BREAKING CHANGE: user_id field renamed to id, response structure changed"
git push
Example 5: Multiple File Types
Changes:
src/components/Button.tsx | 12 ++++++++
tests/Button.test.tsx | 25 ++++++++++++++++++++
Action:
git add src/components/Button.tsx tests/Button.test.tsx
git commit -m "feat(ui): add loading state to Button component
Add isLoading prop that displays a spinner and disables the button.
Includes unit tests for the new functionality."
git push
OUTPUT FORMAT
After execution, provide:
- Summary of changes - What files were committed
- Commit message - The full message used
- Push status - Success or any issues
Example output:
Committed 3 files:
- src/auth/login.ts
- src/auth/logout.ts
- tests/auth.test.ts
Commit message:
feat(auth): add authentication endpoints
Add login and logout functionality with JWT token support.
Includes comprehensive test coverage.
Pushed to origin/main
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/ship-auto-generate-conventional-commits-mmh8qqei/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/ship-auto-generate-conventional-commits-mmh8qqei' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/ship-auto-generate-conventional-commits-mmh8qqei/download' --output '.skill-downloads/ship-auto-generate-conventional-commits-mmh8qqei/SKILL.md.part' && mv '.skill-downloads/ship-auto-generate-conventional-commits-mmh8qqei/SKILL.md.part' '.skill-downloads/ship-auto-generate-conventional-commits-mmh8qqei/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/ship-auto-generate-conventional-commits-mmh8qqei/SKILL.md' && test -s '.skill-downloads/ship-auto-generate-conventional-commits-mmh8qqei/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/ship' && cp -R '.skill-downloads/ship-auto-generate-conventional-commits-mmh8qqei' '.claude/skills/ship'Cursor
test -f '.skill-downloads/ship-auto-generate-conventional-commits-mmh8qqei/SKILL.md' && test -s '.skill-downloads/ship-auto-generate-conventional-commits-mmh8qqei/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/ship' && cp -R '.skill-downloads/ship-auto-generate-conventional-commits-mmh8qqei' '.cursor/skills/ship'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/ship-auto-generate-conventional-commits-mmh8qqei'openskills read 'ship-auto-generate-conventional-commits-mmh8qqei'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/ship-auto-generate-conventional-commits-mmh8qqei/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.