agents/skills/sync-statamic-statamic/SKILL.md
Sync recent commits from "statamic/statamic" and config changes from "statamic/cms" into the boilerplate statamic/statamic application.
npx skillsauth add duncanmcclean/dotfiles sync-statamic-statamicInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The statamic/statamic repository contains the base application for new Statamic sites.
It is very similar to laravel/laravel, the base application for new Laravel apps. Our version changes some of the defaults to better suit Statamic's flat-first approach and provides boilerplate content and Statamic configs.
To avoid statamic/statamic becoming stale, we need to regularly review it for necessary changes. This skill details that process.
Before you begin, checkout the 6.x branch and pull down any changes.
laravel/laravellaravel/laravel" PR:gh pr list --state merged --search "Sync with `laravel/laravel`" --limit 1
gh pr view <PR_NUMBER> --json commits --jq '.commits[].messageHeadline'
laravel/laravel. Filter out the last commit we synced (and any older ones). Filter out any Update CHANGELOG or Merge pull request ... commits too.gh api "repos/laravel/laravel/commits" --jq '.[] | "\(.sha[0:7]) \(.commit.message | split("\n")[0])"
When there isn't anything new to sync, move onto Section 2.
Create a new branch called sync-laravel-laravel. If one already exists, delete it and create a new one.
For each laravel/laravel commit:
laravel/laravel commit into this codebase.gh CLI. Please use the provided title and description (DO NOT change it).Pull request title: "Sync with laravel/laravel"
Pull request description:
This pull request syncs recent changes from [`laravel/laravel`](https://github.com/laravel/laravel/commits/13.x) to `statamic/statamic`.
Checkout the 6.x branch.
Find the latest "Sync Statamic configs" PR:
gh pr list --state merged --search "Sync Statamic configs" --limit 1
gh pr view <PR_NUMBER> --json commits --jq '.commits[].messageHeadline'
statamic/cms affecting the config directory. Filter out the last commit we synced (and any older ones).gh api "repos/statamic/cms/commits?path=config" --jq '.[] | "\(.sha[0:7]) \(.commit.message | split("\n")[0])"'
When there isn't anything new to sync, don't continue.
Create a new branch called sync-statamic-configs. If one already exists, delete it and create a new one.
For each statamic/cms commit:
statamic/cms commit affecting the config directory to this repository's config/statamic directory.gh CLI. Please use the provided title and description (DO NOT change it).Pull request title: "Sync Statamic configs" Pull request description:
This pull request syncs the [recent changes](https://github.com/statamic/cms/commits/6.x/config) from the config files in `cms`.
development
Review a GitHub pull request with a code review mindset. Use when the user provides a PR number to review, asks to review a pull request, or wants inline code review of a PR's changes. If no PR number is given, detects it from the current branch.
documentation
Write pull request descriptions that sound like they were written by Duncan.
documentation
Generate a changelog for a release
tools
Makes the same change across multiple repositories.