agentleFS
dlupiakdlupiak/claude-session-dashboard/.claude/skills/ship/SKILL.md

ship

Skill71 starsChanged 9 months agoMITView on GitHub

Commit, push, create PR, then after approval check CI and merge. Use when work is done and ready to ship.

  • Reads credentials
  • Commits and pushes

179 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cso, setup-deploy and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ayudaySkill

    cso

    Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".

    Also in 10 projects that use this

  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 10 projects that use this

  • AICreator-WindSkill

    document-release

    技术作家工具。更新项目文档。

    Also in 10 projects that use this

  • Kit4SomeSkill

    unfreeze

    Also in 11 projects that use this

  • AICreator-WindSkill

    freeze

    文件编辑锁定工具。限制文件编辑范围。

    Also in 14 projects that use this

  • CodeWithBehnamSkill

    setup-browser-cookies

    Import cookies from your real browser (Comet, Chrome, Arc, Brave, Edge) into the headless browse session. Opens an interactive picker UI where you select which cookie domains to import. Use before QA testing authenticated pages.

    Also in 9 projects that use this

  • +2 more from AICreator-Wind
  • +1 more from ayuday

The file

Show its rules and text

We split this skill into the rules it gives an agent

24 rules. 0 are common, 22 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 162 edited versions we read keep these.

  • 22

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Run git branch --show-current and confirm you are NOT on main or master.

    line 13
  2. Distinctive:

    If the branch is main or master, abort with:

    line 19
  3. Distinctive:

    Run git status and git diff --stat to see what needs to be committed.

    line 24
  4. Distinctive:

    If there are no staged or unstaged changes and no untracked files, skip to Step 4 (push).

    line 26
  5. Distinctive:

    If there are changes, proceed to Step 3.

    line 27
  6. Distinctive:

    Run git diff (staged + unstaged) to understand all changes.

    line 36
  7. Distinctive:

    Run git log --oneline -5 to match the repo's commit message style.

    line 37
  8. Distinctive:

    Write a concise commit message summarizing the changes.

    line 39
  9. Distinctive:

    Commit using a HEREDOC:

    line 40
  10. Distinctive:

    Check if a PR already exists for this branch:

    line 61
  11. Distinctive:

    If a PR already exists, skip to Step 6.

    line 67
  12. Distinctive:

    If no PR exists, create one:

    line 68
  13. Distinctive:

    Run git log --oneline main..HEAD to understand all commits on this branch.

    line 70
  14. Distinctive:

    Run git diff main...HEAD --stat for a change summary.

    line 71
  15. Distinctive:

    STOP HERE: Do NOT proceed until the user explicitly says to merge or confirms approval.

    line 94
  16. Distinctive:

    After user confirmation, check the CI status:

    line 98
  17. Distinctive:

    If all checks pass, proceed to Step 8.

    line 104
  18. Very specific:

    If checks are failing, report the failures and offer to investigate with /fix-ci.

    line 105
  19. Distinctive:

    If checks are still running, wait 30 seconds and check again (up to 3 retries).

    line 106
  20. Distinctive:

    After successful merge, clean up any associated worktree:

    line 116
  21. Distinctive:

    NEVER merge without user confirmation

    line 134
  22. Distinctive:

    NEVER merge if CI is failing

    line 135
  23. Very specific:

    NEVER commit .env, credentials, or secrets

    line 136
  24. Distinctive:

    NEVER push to main directly

    line 137

“Common” is measured: kept by at least 6 in 10 of the 162 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ship

Finalize the current feature branch: commit, push, create a PR, wait for approval, check CI, and merge.

Step 1: Verify branch

Run git branch --show-current and confirm you are NOT on main or master. If you are, STOP and tell the user to check out a feature branch first.

git branch --show-current

If the branch is main or master, abort with:

"You are on main. Please check out a feature branch before shipping."

Step 2: Check for changes

Run git status and git diff --stat to see what needs to be committed.

  • If there are no staged or unstaged changes and no untracked files, skip to Step 4 (push).
  • If there are changes, proceed to Step 3.
git status
git diff --stat

Step 3: Commit

  1. Run git diff (staged + unstaged) to understand all changes.
  2. Run git log --oneline -5 to match the repo's commit message style.
  3. Stage relevant files (use specific file names, never git add -A). Do NOT stage files that look like secrets (.env, credentials).
  4. Write a concise commit message summarizing the changes.
  5. Commit using a HEREDOC:
git commit -m "$(cat <<'EOF'
feat: <description>

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
EOF
)"

Step 4: Push

Push the branch to origin. Use -u if this is the first push.

git push -u origin $(git branch --show-current)

Step 5: Create PR

Check if a PR already exists for this branch:

gh pr view --json number,title,url 2>&1
  • If a PR already exists, skip to Step 6.
  • If no PR exists, create one:
  1. Run git log --oneline main..HEAD to understand all commits on this branch.
  2. Run git diff main...HEAD --stat for a change summary.
  3. Create the PR:
gh pr create --title "<short title>" --body "$(cat <<'EOF'
## Summary
<bullet points summarizing changes>

## Test plan
<checklist of testing steps>

Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
  1. Report the PR URL to the user.

Step 6: Wait for approval

Tell the user:

"PR is ready for review: <URL>. Let me know when it's approved and I'll check CI and merge."

STOP HERE. Do NOT proceed until the user explicitly says to merge or confirms approval.

Step 7: Check CI status

After user confirmation, check the CI status:

gh pr checks $(gh pr view --json number -q .number)
  • If all checks pass, proceed to Step 8.
  • If checks are failing, report the failures and offer to investigate with /fix-ci.
  • If checks are still running, wait 30 seconds and check again (up to 3 retries).

Step 8: Merge

Merge the PR using squash merge:

gh pr merge --squash --delete-branch

After successful merge, clean up any associated worktree:

BRANCH=$(gh pr view --json headRefName -q .headRefName 2>/dev/null || echo "")
if [ -n "$BRANCH" ]; then
  git worktree list | grep "$BRANCH" | awk '{print $1}' | while read wt; do
    [ -n "$wt" ] && git worktree remove "$wt" --force 2>/dev/null || true
  done
fi
git worktree prune

Report success:

"PR merged and branch cleaned up."

Safety rules

  • NEVER force push
  • NEVER merge without user confirmation
  • NEVER merge if CI is failing
  • NEVER commit .env, credentials, or secrets
  • NEVER push to main directly

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.