agentleFS
duthahoduthaho/claudekit/skills/init/SKILL.md

init

Skill97 starsChanged 4 months agoMITView on GitHub

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.

  • Reads credentials
  • Deletes or force-pushes

89 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use migrate, survey and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • genomewalkerSkill

    migrate

    Import soul data from SQLite or shared chitta files

    Also in 8 projects that use this

  • SNL-UCSBSkill

    survey

    Literature survey assistant with four modes: /survey intent (capture student goals, expertise, and success criteria), /survey triage (landscape mapping via NotebookLM), /survey deepen (structured reading with craft and visualization extraction), /survey synthesize (cross-paper analysis for related work, area exams, gap identification). Also: /survey expand (corpus growth proposals). Use when students mention reading papers, literature review, related work, area exam prep, paper corpus, or any systematic reading task.

    Also in 3 projects that use this

  • pvnarpSkill

    bug

    Investigates and resolves bugs using structured diagnosis. Categorizes by system, traces root cause, proposes minimal fix, and suggests prevention. Use when debugging issues or investigating unexpected behavior.

    Also in 3 projects that use this

  • AnthropicSkill

    uninstall

    Uninstall a community skill that was installed via the hub. Confirms before deleting files, refuses to touch first-party plugin skills, and logs every action. Use when the user wants to fully remove a community skill ("uninstall [skill]", "remove this skill") rather than just disable it.

    Also in 3 projects that use this

  • Eipi-TongSkill

    adopt

    Onboard an existing codebase into the starter kit. Use when the user says "adopt this project", "add the kit to my existing repo", or "set up the kit on existing code".

    Also in 3 projects that use this

  • mlz11Skill

    reset

    Completely reset ClaudeNotifier installation, removing all components and permissions

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 80 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

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

    line 29
  2. Distinctive:

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

    line 38
  3. Very specific:

    Read the hook metadata from ${CLAUDE_PLUGIN_ROOT}/skills/init/templates/hooks.json

    line 60
  4. Very specific:

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

    line 83
  5. Very specific:

    Read the server config from ${CLAUDE_PLUGIN_ROOT}/skills/init/templates/mcp-servers.json

    line 98
  6. Very specific:

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

    line 125
  7. Distinctive:

    NEVER overwrite existing files without asking: If a target file already exists, ask: "[filename] already exists.

    line 134
  8. Very specific:

    Create directories as needed: If .claude/rules/ doesn't exist, create it before writing files.

    line 135

“Common” is measured: kept by at least 6 in 10 of the 80 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

CategoryFilesLocation
Rulesapi.md, frontend.md, migrations.md, security.md, testing.md.claude/rules/
Hooksauto-format, block-dangerous-commands, detect-secrets, guard-sensitive-files, notify.claude/hooks/ + settings.local.json
MCP Serverscontext7, 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?"

  • a) All rules (api, frontend, migrations, security, testing)
  • b) Let me pick individually
  • c) Skip rules

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

  • api.md — REST API design conventions (naming, versioning, error responses)
  • frontend.md — React/Next.js component patterns and file organization
  • migrations.md — Database migration safety rules (backward compatibility, rollback)
  • security.md — OWASP-aligned security rules (no hardcoded secrets, parameterized queries)
  • testing.md — Test naming, coverage thresholds, mocking conventions

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?"

  • a) Auto-format (runs linter after Write/Edit)
  • b) Block dangerous commands (prevents rm -rf /, force push main, etc.)
  • c) Detect secrets (blocks writes containing API keys, tokens, private key blocks)
  • d) Guard sensitive files (blocks edits to .env files, key material, credential dotfiles)
  • e) Notifications (desktop notifications on completion)
  • f) All of the above
  • g) Skip hooks

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?"

  • a) Context7 (library documentation lookup)
  • b) Sequential Thinking (multi-step reasoning)
  • c) Playwright (browser automation)
  • d) Memory (persistent knowledge graph)
  • e) Filesystem (secure file operations)
  • f) All of the above
  • g) Skip MCP setup

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:

  • All 5 rules
  • All 5 hooks
  • All 5 MCP servers

Important Rules

  • NEVER overwrite existing files without asking. If a target file already exists, ask: "[filename] already exists. Overwrite? (y/n)"
  • Create directories as needed. If .claude/rules/ doesn't exist, create it before writing files.
  • For hooks, always use settings.local.json (not settings.json) — local is gitignored so hook config stays personal.
  • Use ${CLAUDE_PLUGIN_ROOT} to reference template files within the plugin.
  • Platform detection for MCP: Windows uses cmd /c npx, macOS/Linux uses npx directly.
  • Output styles are NOT scaffolded by init. They ship with the plugin at output-styles/ and are auto-discovered. Users switch them via /config or by setting outputStyle in .claude/settings.local.json.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.