Back to Home
CLI Commands

gk init

Initialize GemKit in your project with agents, skills, and configuration

Description

The gk init command sets up the GemKit directory structure and configuration files in your current project. This creates the foundation for AI-assisted development with specialized agents, skills, and hooks.

Usage

bash
gk init

Or run without global installation using npx:

bash
npx gemkit-cli init

What It Creates

When you run gk init, the following structure is created:

markdown
your-project/
├── .gemini/
│   ├── agents/           # Agent definitions
│   │   ├── code-executor.md
│   │   ├── planner.md
│   │   ├── researcher.md
│   │   └── tester.md
│   ├── commands/         # Slash commands
│   │   ├── code.toml
│   │   ├── cook.toml
│   │   ├── test.toml
│   │   └── paste/
│   ├── extensions/       # Skills/knowledge packages
│   │   ├── backend-development/
│   │   ├── frontend-design/
│   │   ├── frontend-development/
│   │   ├── multimodal-io/
│   │   ├── planning/
│   │   ├── research/
│   │   ├── spawn-agent/
│   │   └── testing/
│   ├── hooks/            # Lifecycle hooks
│   │   ├── gk-session-init.cjs
│   │   ├── gk-session-end.cjs
│   │   ├── gk-scout-block.cjs
│   │   └── gk-dev-rules-reminder.cjs
│   ├── .gk.json          # GemKit configuration
│   ├── .gkignore         # Files to ignore
│   └── settings.json     # Settings
└── ... your existing project files

Components Overview

Agents

Four specialized agents are included:

AgentPurpose
code-executorPlan-driven, test-driven code implementation
plannerTask planning and breakdown
researcherMulti-step technical research with source validation
testerComprehensive test generation and coverage analysis

Commands

Three workflow commands are available:

CommandDescription
/codeStart coding & testing an existing plan
/cookImplement a feature step by step
/testRun tests and analyze results

Skills (Extensions)

Eight domain-specific knowledge packages:

  • backend-development - Node.js, APIs, databases, security
  • frontend-development - React, TypeScript, modern patterns
  • frontend-design - UI/UX, CSS, animations
  • testing - Vitest, Jest, Playwright, coverage
  • research - Technical investigation methodology
  • planning - Task breakdown and organization
  • spawn-agent - Agent orchestration with BM25 search
  • multimodal-io - Image and video handling

Hooks

Lifecycle hooks for automation:

  • gk-session-init - Runs when a session starts
  • gk-session-end - Runs when a session completes
  • gk-scout-block - Security guardrails
  • gk-dev-rules-reminder - Development rules enforcement

Examples

Initialize a default project:

bash
cd your-project
gk init

Verify the setup:

bash
gk doctor

List available agents:

bash
gk agent list

After Initialization

Once initialized, you can:

  1. Spawn agents for development tasks:

    bash
    gk agent spawn -a code-executor -p "Add user authentication"
    
  2. Use slash commands in your prompts:

    bash
    gk agent spawn -p "/cook implement a dark mode toggle"
    
  3. Start the Agent Office for visualization:

    bash
    gk office start
    
Caught a mistake? Edit this page on GitHub
Updated: Jan 20, 2026