Command Palette

Search for a command to run...

Назад к скиллам
скилл № 01565

Setup

Inspect (check, read-only default) or configure (apply) commit/PR conventions and babysit-prs settings.

БесплатноБез исполняемых скриптов
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Setup

Arguments. [check|apply] [layer=team|local] [subject_pattern=<pattern>] [branch_issue_pattern=<ERE>]. Full form: [check|apply] [layer=team|local] [subject_pattern=<anchored-regex | 'Conventional Commits'>] [branch_issue_pattern=<ERE>]

Purpose

Inspect and configure the source-control plugin per the uniform setup contract (docs/plugin-philosophy.md "Setup is explicit and repeatable" in the marketplace repository): check reports the effective configuration, apply writes it. Two kinds of configuration:

  1. The commit-subject / PR-title convention config, layered across the tracked team file (docs/conventions/source-control.yaml) and the gitignored personal override (docs/conventions/source-control.local.yaml), merged per key by ../../reference/config-resolution.md. Resolved first by /source-control:commit and /source-control:pull-request before they fall back to inference or the bundled Conventional Commits default. Conventional Commits is genuinely optional, some orgs gate on ticket-prefixed subjects (WEB-123: description), so the plugin ships a sensible default, not a hardcoded requirement.
  2. The /source-control:babysit-prs native userConfig surface (not a tracked repo file).

Idempotent: re-running reads the existing configuration and offers updates rather than overwriting blind. The plugin ships a working zero-config default (Conventional Commits / inference for the convention; the safe babysit tier over your own PRs), so an unconfigured surface is INFO, never FAIL.

Action routing: no argument or check runs the check; apply runs the check first, then remediation. When apply carries a subject_pattern= or branch_issue_pattern= argument (or both) it writes non-interactively; with no arguments in an interactive session it runs the convention interview (spoke below). layer= selects which config layer apply writes, defaulting to the tracked team file.

check (read-only)

Report a PASS/FAIL/INFO table across both surfaces; modify nothing.

Convention config

Anchor at the repo root: resolve REPO_ROOT once, ${CLAUDE_PROJECT_DIR} when set, otherwise git rev-parse --show-toplevel, and use that literal resolved path for every repo-relative read below, never a cwd-relative path (invoked from a nested directory, a cwd-relative path would inspect the wrong file). Re-resolve REPO_ROOT at the top of every self-contained Bash call, a fresh shell does not carry a prior call's variables.

Read both layers, then report one effective-configuration table, a row per key, its resolved value, and which layer supplied it, followed by a per-layer presence line. Never present a single layer's value as the effective convention; a reader who cannot see which layer won cannot tell why /source-control:commit behaves as it does.

When REPO_ROOT is $HOME or an ancestor of it, or is not inside a git working tree, team and personal override are not applicable (../../reference/config-resolution.md): do not read ${REPO_ROOT}/docs/conventions/source-control.yaml or the personal override, report both as N/A with the reason (project root is the home directory (or an ancestor of it) or project root is not inside a git repository), and report defaults. parse-branch-issue.sh prints the same note on stderr. Git tracked/ignored probes do not apply: there is no consumer repository to answer against. apply refuses to write; say to run it from the repository that should hold the config.

key                        value                       won by
subject_pattern            ^[A-Z]+-\d+: .+             team
pr_title_pattern           Same as subject_pattern      team
trailer_policy             none                         personal override
pr_body_attribution        none                         personal override
pr_body_required_sections  briefing                     plugin default
branch_issue_pattern       ^[^/]+/([0-9]+)-             team

branch_issue_pattern resolves the way parse-branch-issue.sh reads it (../../reference/config-resolution.md): the layers first, then the deprecated userConfig value ${user_config.branch_issue_pattern} (a surviving literal token means unset), then the built-in <type>/<N>-<slug> convention. won by names the layer, userConfig (deprecated) with a WARN recommending apply branch_issue_pattern=<ERE>, or plugin default. Confirm the row by running bash "${CLAUDE_PLUGIN_ROOT}/skills/pull-request/scripts/parse-branch-issue.sh" <sample-branch> '${user_config.branch_issue_pattern}' from REPO_ROOT and relaying any stderr note, which names the source and the reason. A note containing resolution stopped means that layer's section exists but yields no usable pattern: the script prints no number, whatever the lower sources say, so report the row as a FAIL naming

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • .claude/.markdownlint-cli2.jsonc
  • .claude/source-control.md
  • evals/docs/conventions/source-control.local.yaml
  • evals/docs/conventions/source-control.yaml
  • evals/evals.json
  • reference/apply-convention.md

FAQ

Что делает скилл Setup?

Inspect (check, read-only default) or configure (apply) commit/PR conventions and babysit-prs settings.

Как установить скилл Setup?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Setup запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Setup с