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
Or run without global installation using npx:
bash
What It Creates
When you run gk init, the following structure is created:
markdown
Components Overview
Agents
Four specialized agents are included:
| Agent | Purpose |
|---|---|
| code-executor | Plan-driven, test-driven code implementation |
| planner | Task planning and breakdown |
| researcher | Multi-step technical research with source validation |
| tester | Comprehensive test generation and coverage analysis |
Commands
Three workflow commands are available:
| Command | Description |
|---|---|
/code | Start coding & testing an existing plan |
/cook | Implement a feature step by step |
/test | Run 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
Verify the setup:
bash
List available agents:
bash
After Initialization
Once initialized, you can:
-
Spawn agents for development tasks:
bash -
Use slash commands in your prompts:
bash -
Start the Agent Office for visualization:
bash
Related Commands
gk agent- Manage and spawn agentsgk doctor- Diagnose setup issuesgk office- Visual dashboard- Getting Started Guide - Full tutorial