Init

From duthaho/claudekit · View interactive version

Init is an AI agent skill from the GitHub repository duthaho/claudekit. Interactive setup wizard for claudekit. Scaffolds rules, hooks, and MCP server configs into the user's project. Run /claudekit:init to configure. Use when setting up a new project with claudekit or reconfiguring an existing one.

How to use this skill

Skill file

Claudekit Init

Interactive setup wizard that scaffolds project-level configuration files into the user's .claude/ directory.

Output styles ship with the plugin and are auto-discovered by Claude Code (no init step needed for them — see output-styles/ at the plugin root).

What It Generates

| Category | Files | Location |

|----------|-------|----------|

| Rules | api.md, frontend.md, migrations.md, security.md, testing.md | .claude/rules/ |

| Hooks | auto-format, block-dangerous-commands, detect-secrets, guard-sensitive-files, notify | .claude/hooks/ + settings.local.json |

| MCP Servers | context7, sequential, playwright, memory, filesystem | .mcp.json |


Wizard Flow

When invoked, ask the user ONE question at a time:

Step 1: Rules

"Which rules do you want to install?"

If (b), list each rule with a one-line description and let user select:

For each selected rule, read the template from ${CLAUDE_PLUGIN_ROOT}/skills/init/templates/rules/<name>.md and write it to .claude/rules/<name>.md.

Step 2: Hooks

"Which hooks do you want to install?"

For each selected hook:

  1. Read the hook metadata from ${CLAUDE_PLUGIN_ROOT}/skills/init/templates/hooks.json
  2. Copy the hook script from ${CLAUDE_PLUGIN_ROOT}/scripts/<script>.cjs to .claude/hooks/<script>.cjs
  3. Merge the hook entry into .claude/settings.local.json (create if it doesn't exist)

Hook entry format for settings.local.json:

{
  "hooks": {
    "<event>": [
      {
        "matcher": "<matcher>",
        "hooks": [
          {
            "type": "command",
            "command": "node .claude/hooks/<script>.cjs"
          }
        ]
      }
    ]
  }
}

If settings.local.json already has a hooks key, merge new entries into the existing structure — do not overwrite.

Step 3: MCP Servers

"Which MCP servers do you want to configure?"

For each selected server:

  1. Read the server config from ${CLAUDE_PLUGIN_ROOT}/skills/init/templates/mcp-servers.json
  2. Detect platform: check if process.platform === "win32" or use Bash uname to determine OS
  3. Select the correct config (win32 or posix key)
  4. Merge into the project's .mcp.json (create with {"mcpServers": {}} if it doesn't exist)

Step 4: Summary

Print a summary table of everything installed:

Claudekit setup complete!

  Rules:   5 installed → .claude/rules/
  Hooks:   5 installed → .claude/hooks/ + settings.local.json
  MCP:     5 configured → .mcp.json

Next steps:
  - Skills available as /claudekit:<name> (15 total)
  - Agents available as claudekit:<name> (8 specialists)
  - Output styles available via /config (5 shipped: Brainstorm, Deep Research,
    Implementation, Review, Token Efficient)

--all Flag

If $ARGUMENTS contains --all, skip all prompts and install everything:


Important Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.