version-control
БесплатноБез исполняемых скриптовНе проверенALWAYS load before git commit, push, or PR - team-specific commit format differs from standard conventions.
Об этом скилле
Version Control for Skyline/ProteoWizard
Before any Git or GitHub operation, read the relevant documentation:
Required Reading
- ai/docs/version-control-guide.md - Commit message format, PR format, branch naming
- ai/docs/release-cycle-guide.md - Current release phase, cherry-pick policy
- ai/WORKFLOW.md - Git workflows, TODO system, branch lifecycle
Pre-Commit Gate: Build and Test
NEVER commit code that has not been built and tested. This is a hard gate.
Before staging and committing, verify:
- The code compiles without errors
- Relevant tests pass
If the LLM has not built/tested the code itself, ask the developer: "Has this been built and tested since the last change?" Do not skip this step even for small fixes - even a small change can introduce a build error or break a test.
Uncommitted files you did not touch are most likely the same developer's, from another session on this machine - not "someone else's". List them and ask whether to commit them or leave them in progress; never sweep them in, and stage by path rather than git add -A. See "Uncommitted Files You Did Not Touch" in the guide.
Asking for approval of a message
When a commit message, squash-merge subject and body, or PR description needs the
developer's approval, print it in full, in a fenced block in the reply, then end the
reply with the question as plain text: Commit with this message (yes/edit/abandon)?
Do not wrap it in an AskUserQuestion dialog. The dialog renders a long message badly,
its preview variants may not show at all, and the developer cannot scroll back to compare
it with the diff or the TODO. Keep AskUserQuestion for short multiple-choice decisions
that carry no artifact to read. /pw-complete, /pw-pcommit and /pw-pcommitfull follow
this form.
Module Tagging — every pwiz PR
ProteoWizard/pwiz carries three streams of work. Every PR belongs to exactly
one, recorded twice:
| Module | Covers |
|---|---|
skyline |
Skyline app and everything shipped/tested with it (pwiz_tools/Skyline, Test*/, SkylineTester/Nightly) |
pwiz |
ProteoWizard core: msconvert, C++ libraries, vendor readers, BiblioSpec, build system |
osprey |
Osprey / OspreySharp (pwiz_tools/Osprey) |
Same three strings as the GitHub Issue labels — module, label, and prefix are one token, no mapping table.
- Label the PR with the module (
gh pr create --label skyline, orgh pr edit <N> --add-label skylineafter the fact). - Prefix the title AND the squash-merge subject:
<module>: <Title in past tense> (#NNNN)
skyline: Fixed TestDiaToSrmTutorial failing in Japanese (#4483)
osprey: Made the OspreySharp protein razor rollup deterministic (#4442)
pwiz: Warned on unrecognized rows during --import-peak-boundaries (#4440)
Both, because git history has no labels. After squash-merge the label lives
only on the PR — git log --oneline, git blame, and the release-notes pass
see nothing but the subject. Lowercase, exact label token, colon, one space.
The past-tense verb still leads the title; the prefix is not part of the
sentence.
Where required: PR title, squash-merge subject, cherry-pick PR title (which
inherits the original's module). Optional: intermediate branch commits —
squash-merge discards them. Never: pwiz-ai (ai/) commits — that repo is
one module and has no module labels.
Choosing it: from the issue's label when there is an issue; otherwise from the paths touched. Spanning two modules → the primary one (where the intent lives, not where the most lines moved); exactly one prefix on the title.
Carry it in the TODO so it survives compaction — - **Module**: skyline``
in Branch Information. Commands that open a PR or write a squash subject read
that field instead of re-deriving from the diff.
One prefix, not two. The legacy sub-area prefixes (OspreySharp:,
msconvert:, ColorGrid:, Volcano plot:) are retired — put the sub-area in
the prose: osprey: Made the OspreySharp protein razor rollup deterministic,
not osprey: OspreySharp: Made the protein razor rollup deterministic.
Branch naming is unaffected — Skyline/work/... is a repo namespace that
TeamCity keys off, not a module marker. Osprey and pwiz work use it too.
Commit Message Format
<Title in past tense>
* bullet point 1
* bullet point 2
Reported by <First>.
See TODO-YYYYMMDD_feature.md in pwiz-ai/todos
Co-Authored-By: Claude <[email protected]>
Rules:
- Past tense title ("Added feature" not "Add feature")
- The leading verb is what the DEVELOPER did — Added, Fixed, Removed,
Changed, Refactored — NOT the code's behavior conjugated into the past.
A behavior verb in past tense passes the rule above while still describing
the product, so it slips through easily:
- "Judged each pass-2 decoy against its own q system's boundary" → "Fixed pass-2 decoy acceptance to judge each decoy
Установить version-control в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл version-control?
ALWAYS load before git commit, push, or PR - team-specific commit format differs from standard conventions.
Как установить скилл version-control?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл version-control запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic