Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

configure-repo

БесплатноБез исполняемых скриптовНе проверен

Repo onboarding driver: .claude/ directory, SessionStart hook, install_pkgs.sh. Use when onboarding any repo to Claude Code with the claude-plugins marketplace.

laurigatesот laurigates★ 61 звезда на GitHub

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

/configure:repo

End-to-end driver that brings any repo's Claude Code configuration to a healthy baseline in one command. Produces committed-ready files: .claude/settings.json (permissions + marketplace enrollment), a SessionStart hook, and scripts/install_pkgs.sh.

When to Use This Skill

Use this skill when... Use another approach when...
Onboarding a new repo to Claude Code from scratch Changing a single setting — use /configure:claude-plugins or /configure:web-session directly
Updating an existing repo to the latest baseline config Diagnosing a specific hook or plugin issue — use /health:check directly
Checking what would change before committing Running a health-only audit — use /health:check
Setting up a repo for ephemeral web sessions (claude.ai/code) Managing plugins on an already-configured repo

Context

Detect current state and project stack:

  • Existing settings: !find . -path '*/.claude/*' -maxdepth 2 -name 'settings.json' -type f
  • Install script: !find . -name 'install_pkgs.sh' -path '*/scripts/*'
  • Workflows: !find . -path '*/.github/workflows/*' -maxdepth 3 -name 'claude*.yml'
  • Project files: !find . -maxdepth 1 \( -name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' -o -name 'go.mod' -o -name 'justfile' -o -name 'Justfile' \)
  • ESP indicators: !find . -maxdepth 2 \( -name 'idf_component.yml' -o -name 'sdkconfig' \)
  • Pre-commit config: !find . -maxdepth 1 -name '.pre-commit-config.yaml'
  • Git remote: !git remote -v

Parameters

Parameter Description
--check-only Report what would change without modifying any files
--skip-health Skip the final /health:check validation step
--skip-migrations Skip migration detection (don't offer mypy→ty etc.)

Execution

Execute this end-to-end repository configuration workflow:

Step 1: Detect project stack

Identify the stack from the values in Context. Produce a brief summary:

Stack detected:
  Language:   Python (uv + ruff) | Node/TypeScript | Rust | Go | ESP-IDF | ESPHome | ...
  Tools:      pre-commit, just, docker, ...
  Migrations: mypy→ty candidate | black→ruff-format candidate | flake8→ruff candidate | ESLint→Biome candidate

If --check-only, annotate all subsequent steps as "(would do)" rather than doing them.

Step 2: Configure plugins, permissions, and marketplace enrollment

Invoke /configure:claude-plugins --fix using the SlashCommand tool.

This step:

  • Selects recommended plugins based on detected stack
  • Writes permissions.allow (common + stack-aware) to .claude/settings.json
  • Merges the repo baseline policy's settings floor ($schema, extraKnownMarketplaces, enabledMcpjsonServers) and writes enabledPlugins to .claude/settings.json (critical for web sessions)
  • Creates/updates .github/workflows/claude.yml and claude-code-review.yml as callers of the org's reusable Claude workflows
  • Checks that every enabledMcpjsonServers name is defined by a repo .mcp.json

Step 3: Configure SessionStart hook and install script

Invoke /configure:web-session --fix using the SlashCommand tool.

This step generates scripts/install_pkgs.sh with idempotent tool installs gated on CLAUDE_CODE_REMOTE=true, and wires the SessionStart hook in .claude/settings.json.

If the project uses language-level deps (Python, Node, Rust, Go), also invoke /hooks:session-start-hook --remote-only using the SlashCommand tool to add dependency installation to the hook script.

Step 3b: Configure .gitattributes

Invoke /configure:gitattributes --fix using the SlashCommand tool. This applies the zero-risk baseline (LF normalization for shell scripts, linguist-generated for build output) and surfaces any append-only-table merge=union candidates as recommendations. See .claude/rules/gitattributes.md.

Step 3c: Configure .gitignore

Invoke /configure:gitignore --fix using the SlashCommand tool. This appends the managed Claude Code runtime-state block (.claude/worktrees/, /worktrees/, .claude/scheduled_tasks.lock, .claude/settings.local.json) so session-generated files never get committed. Additive only — existing .gitignore lines are left untouched.

Step 3d: Configure .worktreeinclude

Invoke /configure:worktreeinclude using the SlashCommand tool. This inspects the gitignored files actually present in the repo and proposes a .worktreeinclude so Claude Code copies per-environment inputs (.env, local secrets, local config) into new worktrees. It confirms the include set interactively, so run it without --fix on the happy path; skip it silently if the repo has no gitignored inputs worth copying.

Step 4: Offer migrations (unless --skip-migrations)

Detect these migratable patterns and ask whether to run each migration via AskUserQuestion:

| Pattern detected | Migration

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

Установить configure-repo в Claude Code и Claude Desktop

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

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

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

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

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

Glob
Grep
Read
Write
Edit
Bash(git add *)
Bash(git status *)
Bash(git diff *)
Bash(find *)
Bash(mkdir *)
Bash(test *)
AskUserQuestion
TodoWrite
SlashCommand

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

references/stage-and-report.md

FAQ

Что делает скилл configure-repo?

Repo onboarding driver: .claude/ directory, SessionStart hook, install_pkgs.sh. Use when onboarding any repo to Claude Code with the claude-plugins marketplace.

Как установить скилл configure-repo?

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

Скилл configure-repo запускает скрипты?

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

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

Сравнить configure-repo с