/my-plugin:set-up-githubfrom my-plugin
Set up a GitHub repository for trunk-based development. Squash-only merges with the PR title as the commit title, head branches deleted on merge, and a pull request required for the default branch. When the repo has CI, also requires named checks to pass and the branch to be up to date before merge. Use only when the user explicitly asks to set up GitHub.
Ships in my-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Run this skill by hand from the repository you want to configure, once per repository. It changes settings on GitHub, not the local clone, so it does not need to run again in other clones. It needs gh logged in with admin rights on the repository, and jq installed.
The script is scripts/set-up-github.sh in this skill's folder, the folder that holds this SKILL.md. Run it with the repository as the working directory.
trunk-based on the default branch: changes go through a pull request, and squash is the only allowed merge method. No approvals are required, which suits a single maintainer. The ruleset has no bypass actors, so direct pushes to the default branch are blocked for everyone.Find the CI checks. Run scripts/set-up-github.sh --discover-checks. It lists the check names reported on the default branch.
--check NAME. Do not guess names.--check. Tell the user the CI gate and the up-to-date rule are skipped, and that they apply once a CI job exists and this skill is run again.Dry run. Run scripts/set-up-github.sh --dry-run with the same --check flags. It prints the settings and ruleset it would apply and changes nothing. Show the output to the user and wait for them to confirm.
Apply. Run scripts/set-up-github.sh with the same --check flags. It updates the repository settings, then creates the ruleset, or updates it if one named trunk-based already exists. Running it again is safe.
Report. Print the script's verification lines. Say which parts were skipped and why. Remind the user that a required check name must match the check run name exactly. If the name never reports, pull requests wait forever, so it is worth checking the first PR after setup.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub olillevik/dotfiles --plugin my-plugin32 skills in this plugin
/ask-mattAsk which skill or flow fits your situation. A router over the skills in this repo./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./code-reviewReview the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/spec asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".Other plugins' skills for the same job