contribute-turbo
This Claude Code skill submits turbo skill improvements from the local turbo repository back to the upstream source. It adapts its workflow based on the repository mode: in fork mode, it creates a pull request, while in source mode it pushes directly to the main branch. Use this skill when users request to contribute turbo changes, submit improvements upstream, create pull requests for their modifications, or push their skill edits back to the original repository.
git clone --depth 1 https://github.com/tobihagemann/turbo /tmp/contribute-turbo && cp -r /tmp/contribute-turbo/claude/skills/contribute-turbo ~/.claude/skills/contribute-turboSKILL.md
# Contribute Turbo Submit staged turbo skill improvements from `~/.turbo/repo/` back to the upstream repo. The workflow adapts based on `repoMode` in `~/.turbo/config.json`. ## Step 1: Verify Contributor Status Read `~/.turbo/config.json` and check `repoMode`: - `"fork"` or `"source"` — proceed - `"clone"` — tell the user that contributions require a fork. Offer to help convert their clone to a fork (add their fork as origin, rename current origin to upstream). Stop. - Missing config or repo — tell the user to run the Turbo setup first. Stop. Verify the repo exists and has the expected remotes: ```bash git -C ~/.turbo/repo remote -v ``` ## Step 2: Mirror Installed Skill Changes Port session corrections from `~/.claude/skills/<name>/` (where edits land first) into `~/.turbo/repo/claude/skills/<name>/` (the basis for the contribution), leaving any persistent local customizations in the installed copy untouched. Detect drifted skills: ```bash for skill in ~/.claude/skills/*/; do name=$(basename "$skill") repo_dir=~/.turbo/repo/claude/skills/"$name" [ -d "$repo_dir" ] || continue diff -rq "$skill" "$repo_dir" >/dev/null 2>&1 && continue echo "$name" done ``` For each drifted skill, first check whether the repo copy already has unstaged changes for it (`git -C ~/.turbo/repo status --porcelain claude/skills/<name>/`). If it does, use `AskUserQuestion` to ask the user how to proceed before mirroring — those changes will conflate with mirrored corrections in Step 3 if not resolved. Then read both versions of every changed file and classify each hunk: - **Correction** — a session edit meant to improve the skill upstream. For modified files, apply each correction hunk with the Edit tool. For new files in the installed copy, create the matching file in the repo copy with the Write tool. For files deleted from the installed copy, remove the repo copy with `rm`. - **Customization** — a persistent local addition that does not belong upstream (extra workflow steps, personal paths, machine-specific notes, internal references). Leave it in the installed copy; do not propagate. - **Ambiguous** — use `AskUserQuestion` to confirm classification before applying. ## Step 3: Check Cross-Edition Sync Before staging, check whether the Claude paths drifted in Step 2 have parallel files in the Codex edition that should be updated alongside them: - `claude/skills/<name>/` ↔ `codex/skills/<name>/` - `claude/SKILL-CONVENTIONS.md` ↔ `codex/SKILL-CONVENTIONS.md` - `claude/ADDITIONS.md` ↔ `codex/ADDITIONS.md` - `claude/SETUP.md` ↔ `codex/SETUP.md` - `claude/UPDATE.md` ↔ `codex/UPDATE.md` - `claude/MIGRATION.md` ↔ `codex/MIGRATION.md` For each Claude path with pending changes, check whether the Codex sibling exists in `~/.turbo/repo/codex/` and whether the local repo already has matching changes for it (`git -C ~/.turbo/repo status --porcelain codex/<path>`). If a Codex sibling exists but has no matching changes, use `AskUserQuestion`: > The change to `claude/<path>` touches the Claude edition, but `codex/<path>` exists and has no matching change. Does the Codex sibling need the same update? Options: - **Yes, I need to update the Codex sibling** — Stop. The user manually edits `~/.turbo/repo/codex/<path>` (vocabulary differs; only behavioral parity is required) and re-runs this skill. - **No, this is Claude-specific** — Continue. If any sibling-update answer is "Yes", stop the workflow. Nothing has been staged yet, so there is no state to clean up before re-running. ## Step 4: Review Pending Changes Check what changes exist in the local repo: ```bash git -C ~/.turbo/repo diff --name-only git -C ~/.turbo/repo diff --cached --name-only ``` If there are unstaged changes to skill files, stage the specific skill directories that changed (both editions, when sibling updates landed in Step 3): ```bash git -C ~/.turbo/repo add claude/skills/<name>/ git -C ~/.turbo/repo add codex/skills/<name>/ # if a sibling was updated ``` If there are no changes at all, tell the user there is nothing to contribute and stop. Present the changes in a summary table: ``` | # | Skill | Change Summary | |---|-------|----------------| | 1 | /evaluate-findings | Added handling for security-default findings | | 2 | /self-improve | Clarified routing for trusted reviewer feedback | ``` Use `AskUserQuestion` to confirm which changes to include. If the user deselects some, unstage those files. ## Step 5: Validate Skill Quality Read `~/.turbo/repo/claude/SKILL-CONVENTIONS.md` for the turbo project's skill conventions. These conventions supplement `/create-skill`'s general best practices with turbo-specific patterns. For each confirmed skill, if `/create-skill` has not been invoked for it in this session, run `/create-skill` to review and refine the skill. Any improvements from the review become part of the contribution. ## Step 6: Craft Contribution Context For each change, construct a "why" explanation. The goal: the turbo maintainer should understand what happened and why the existing instructions were insufficient, without learning anything about the contributor's project. Use this template: > During [general workflow description], the skill's instructions [what was missing or wrong]. This caused [what happened]. The change [what it does] so that [benefit]. **Example:** > During a code review session, the evaluate-findings skill encountered a finding with `security-default` severity. The existing instructions only handled `critical`, `high`, `medium`, and `low` severities, causing the finding to be silently dropped. The change adds `security-default` to the severity handling table so these findings are properly triaged. ### Privacy Filter Before finalizing, verify each "why" description contains none of the following: - Project or repo names - File paths from the user's project - Company or product names - API keys, URLs, or credentials - Business logic or domain-specific terminology that identifies
For each reviewer question on a PR, recall implementation reasoning and compose a raw answer. Use when the user asks to \"answer reviewer questions\", \"draft answers to PR questions\", or \"explain reviewer questions\".
Apply findings by making the suggested code changes. Applies accepted verdicts, escalates ambiguous findings to the user, and offers to note genuine improvements for later. Use when the user asks to \"apply findings\", \"apply fixes\", \"apply suggestions\", \"apply accepted findings\", \"fix the findings\", or \"apply the review results\".
Project-wide health audit pipeline that fans out to all analysis skills in parallel, evaluates findings, and produces a unified report at .turbo/audit.md. Use when the user asks to \"audit the project\", \"run a full audit\", \"project health check\", \"audit my code\", \"codebase audit\", or \"comprehensive review\".
Shared changelog conventions and formatting rules referenced by $create-changelog and $update-changelog. Not typically invoked directly.
Enforce mirror, reuse, and symmetry principles to keep new code consistent with surrounding code. Use when writing new code in an existing codebase, adding new features, refactoring, or making any code changes.
Run autonomous task execution using the codex CLI. Use when the user asks to \"codex exec\", \"run codex exec\", \"execute a task with codex\", or \"delegate to codex\".
Run AI-powered code review using the codex CLI. Use when the user asks to \"codex review\", \"run codex review\", or \"review a commit with codex\".
Shared commit message rules and technical constraints referenced by $stage-commit and $commit-staged. Not typically invoked directly.