AgentSkillsCN

configure-claude

将Claude Code的钩子、脚本、插件和配置安装到项目中。适用于新建项目时的初始化,或在现有项目中同步配置时使用。

SKILL.md
--- frontmatter
name: configure-claude
description: Install Claude Code hooks, scripts, plugins, and config into a project. Use when setting up a new project or syncing config to an existing one.
disable-model-invocation: true
allowed-tools: Bash(node *), Read, Glob

Install all Claude Code configs from this repository into a project's .claude/ directory.

What it does

  1. Copies scripts/hooks/ and scripts/lib/ into the target project's .claude/scripts/
  2. Reads hooks/hooks.json, resolves ${CLAUDE_CONFIG_DIR} paths, and merges the hooks key into the target's .claude/settings.json (preserving existing keys)
  3. Enables all manifest plugins in the project's .claude/settings.json
  4. Checks global settings against config/global-settings.json and warns about missing marketplaces, plugins, MCP servers, or statusLine config

Instructions

When this skill is invoked:

  1. Determine the target project directory. If the current working directory is this config repo (/Users/callumke/Projects/claude), ask the user which project to configure. Otherwise, use the current working directory.

  2. Run the installer script:

    bash
    node /Users/callumke/Projects/claude/scripts/configure-claude.js <target-directory>
    
  3. Review the output and report what was installed to the user, including any global settings warnings.

  4. If ccstatusline config is missing or outdated, offer to install it:

    bash
    node /Users/callumke/Projects/claude/scripts/configure-claude.js --install-ccstatusline