ship

Stage all changes, commit, and push. Use when user asks to "ship", "commit and push", "add all and push", or requests staging all changes, committing, and pushing. Don't use for selective staging, creating pull requests, or reviewing changes before committing.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ship" with this command: npx skills add helderberto/skills/helderberto-skills-ship

Ship Changes

Pre-loaded context

  • Status: !git status
  • Diff: !git diff HEAD
  • Log: !git log --oneline -10

Workflow

  1. Review all changes from status and diff
  2. Analyze recent commit style from log
  3. Check for quality check commands:
    • If package.json exists, check for lint and test scripts
    • Run available checks in parallel: npm run lint, npm test
    • If no package.json, skip quality checks
  4. If checks fail: report errors, STOP — do not commit or push
  5. Generate commit message based on changed files matching repo style
  6. Stage all files: git add -A
  7. Commit with HEREDOC format
  8. Push: git push (current branch)
  9. Run git status after to verify

Rules

  • Stage ALL changes with git add -A
  • Generate message from changed files, match repo style
  • Only run package manager commands if package.json exists with those scripts
  • NEVER push if lint or tests fail
  • NEVER force push (-f or --force)
  • NEVER skip hooks
  • NEVER commit secrets
  • Push to current branch only

Error Handling

  • If lint or tests fail → report all errors, stop; do not commit or push
  • If git push is rejected (non-fast-forward) → run git pull --rebase then retry push once
  • If pre-commit hook fails → fix reported issues, re-stage, create a NEW commit (never --amend)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

ship

No summary provided by upstream source.

Repository SourceNeeds Review
General

safe-repo

No summary provided by upstream source.

Repository SourceNeeds Review
General

lint

No summary provided by upstream source.

Repository SourceNeeds Review
General

refactor-plan

No summary provided by upstream source.

Repository SourceNeeds Review