Skip to content
Back to skills

2920 Zerg Init 154b06f2

ASecurity

Initialize ZERG for a project. Detects the project state and operates in one of two modes.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
developmenttypescriptpythonrustgobashreactexpressfastapidjangodocker

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2920-zerg-init_154b06f2 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2920 Zerg Init 154b06f2?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2920 Zerg Init 154b06f2
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2920-zerg-init-154b06f2/badge)](https://www.skillsdirectory.com/skills/tools-only-2920-zerg-init-154b06f2)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# /zerg:init

Initialize ZERG for a project. Detects the project state and operates in one of two modes.

## Synopsis

```
/zerg:init [OPTIONS]
```

## Description

`/zerg:init` prepares a project for ZERG by creating the `.zerg/` directory structure, detecting languages and frameworks, and generating configuration files.

The command operates in two modes depending on whether the current directory contains existing code:

### Inception Mode (Empty Directory)

When run in an empty directory, ZERG launches an interactive wizard that:

1. Gathers project requirements through prompts (name, description, target platform, architecture style).
2. Recommends and confirms a technology stack (language, framework, test framework).
3. Scaffolds the project structure with starter files.
4. Initializes a git repository and creates an initial commit.

Supported languages for scaffolding:

| Language | Package Manager | Default Framework |
|----------|-----------------|-------------------|
| Python | uv | FastAPI / Typer |
| TypeScript | pnpm | Fastify / Commander |
| Go | go mod | Gin / Cobra |
| Rust | cargo | Axum / Clap |

### Discovery Mode (Existing Project)

When run in a directory with existing code, ZERG analyzes the project:

1. Detects languages by checking for `package.json`, `pyproject.toml`, `go.mod`, `Cargo.toml`, and similar markers.
2. Identifies frameworks (React, FastAPI, Express, Django, and others).
3. Detects existing infrastructure (Docker, CI/CD, devcontainers).
4. Generates `.zerg/`, `.devcontainer/`, and `.claude/` configuration directories.

For multi-language projects, ZERG generates a devcontainer configuration with appropriate runtime features for each detected language.

## Options

| Option | Description |
|--------|-------------|
| `--workers N` | Set default worker count for this project |
| `--security strict` | Enable strict security rule enforcement |
| `--no-security-rules` | Skip security rule generation |
| `--with-containers` | Build the devcontainer image after initialization |

## Examples

```bash
# Initialize a new project from scratch (Inception Mode)
mkdir my-api && cd my-api
/zerg:init

# Initialize an existing project (Discovery Mode)
cd my-existing-project
/zerg:init

# Initialize with custom settings
/zerg:init --workers 3 --security strict

# Skip security rules
/zerg:init --no-security-rules

# Build devcontainer image after init
/zerg:init --with-containers
```

## Generated Structure

After running `/zerg:init` on an existing project, the following directories are created:

```
project/
  .zerg/           # ZERG runtime state and configuration
  .devcontainer/   # Container configuration for workers
    mcp-servers/
  .claude/
    commands/      # Slash command files
    agents/
  .gsd/
    specs/         # Feature specifications
    PROJECT.md     # Project metadata
```

For Inception Mode with Python selected:

```
my-api/
  my_api/
    __init__.py
    main.py
  tests/
    __init__.py
    test_main.py
  .gsd/
    PROJECT.md
  pyproject.toml
  README.md
  .gitignore
  .git/
```

## See Also

- [[zerg-plan]] -- Next step after initialization: capture feature requirements
- [[zerg-Reference]] -- Full command index

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.