agentleFS
WaniWani-AIWaniWani-AI/sdk/.agents/skills/deploy-prod/SKILL.md

deploy-prod

Skill18 starsChanged 5 months agoMITView on GitHub

Create a production deployment PR from main to deploy/prod with date-based auto-versioning (YYYY-MM-DD-rN). Use when the user runs /deploy-prod or asks to deploy to production, ship a release, cut a prod release, or open a production deployment pull request. Assumes a repo with a deploy/prod branch and a tag-on-merge GitHub Action.

  • Commits and pushes

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a production deployment pull request following these steps.

    line 8
  2. Distinctive:

    If not clean, warn the user and stop.

    line 20
  3. Distinctive:

    If they differ, warn the user that local main is not up to date.

    line 35
  4. Distinctive:

    If no commits, inform the user there's nothing new to deploy.

    line 41
  5. Very specific:

    If no tags for today exist, use r1

    line 54
  6. Very specific:

    If YYYY-MM-DD-r1 exists, use r2, etc.

    line 55
  7. Very specific:

    Only include commits that contain a PR reference like (#123) or (https://github.com/.../pull/123)

    line 73
  8. Very specific:

    Use the latest release tag (from step 5 above) in the compare link, e.g., https://github.com/{REPO}/compare/{LATEST_TAG}...main

    line 95
  9. Distinctive:

    Do not modify the version format

    line 123

“Common” is measured: kept by at least 6 in 10 of the 3 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

Production Deployment PR

Create a production deployment pull request following these steps.

This skill assumes the repo deploys via a long-lived deploy/prod branch and a GitHub Action that tags deploy/prod on merge. If the repo doesn't use that flow, stop and tell the user.

Pre-flight Checks

  1. Check working directory is clean

    git status --porcelain

    If not clean, warn the user and stop.

  2. Fetch latest from origin

    git fetch origin
  3. Check if main is up to date with origin/main

    git rev-parse main
    git rev-parse origin/main

    If they differ, warn the user that local main is not up to date.

  4. Check if there are changes to deploy
    git log origin/deploy/prod..origin/main --oneline
    If no commits, inform the user there's nothing new to deploy.

Determine Version

  1. Get today's date in format YYYY-MM-DD
  2. Check existing tags for today

    git tag -l "YYYY-MM-DD-r*"
  3. Calculate next release number
    • If no tags for today exist, use r1
    • If YYYY-MM-DD-r1 exists, use r2, etc.
  4. Format version: YYYY-MM-DD-r{N} (e.g., 2026-01-19-r1)
  5. Get latest release tag for the compare link
    git tag -l "*-r*" --sort=-version:refname | head -1

Gather Changes for PR Description

  1. Get commits between deploy/prod and main

    git log origin/deploy/prod..origin/main --oneline
  2. Filter to only include commits with GitHub PR links

    • Only include commits that contain a PR reference like (#123) or (https://github.com/.../pull/123)
    • Exclude commits without PR links (these are likely bad merges that should have been squashed)
    • Format each included commit as a bullet point with the PR link

    Example of what to include:

    - feat: add user dashboard (#142)
    - fix: resolve authentication bug (#138)

    Example of what to EXCLUDE (no PR link):

    - fix typo
    - refactor: clean up code
    - Merge branch 'feature-x'

Create Pull Request

  1. Create PR from main to deploy/prod

    • Use the latest release tag (from step 5 above) in the compare link, e.g., https://github.com/{REPO}/compare/{LATEST_TAG}...main
    • In the "Changes included" section, only list commits that have a GitHub PR link
    gh pr create \
      --base deploy/prod \
      --head main \
      --title "deploy: {VERSION}" \
      --body "$(cat <<'EOF'
    ## Production Release: {VERSION}
    
    ### Changes included
    {LIST_OF_COMMITS_WITH_PR_LINKS_ONLY}
    
    ### Compare
    https://github.com/{REPO}/compare/{LATEST_TAG}...main
    
    ---
    *After merging, a git tag `{VERSION}` will be automatically created.*
    EOF
    )"
  2. Show the PR URL to the user

Important Notes

  • The PR title MUST follow the format deploy: YYYY-MM-DD-r{N} for the auto-tagging workflow to work
  • Do not modify the version format
  • The tag will be automatically created by a GitHub Action after the PR is merged

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.