---
title: "skillset init"
slug: "skillset/reference/cli/init"
description: The Skillset init command can initialize Skillset in an existing directory.
---
<!-- Generated by `bun run docs:generate`; do not edit directly. -->

<a id="skillset-init"></a>

> Generated from Skillset's CLI presentation contract. See the [documentation system](https://github.com/outfitter-dev/skillset/blob/24800e02ed4e7150ea1bc7130c35603c98ea9da2/docs/development/documentation-system.md).

Initialize Skillset in an existing directory.

## Usage

```text
skillset init [directory] [--adopt <all|candidate-id>] [--yes] [--targets claude,codex,cursor] [--include ci] [--json] [--root <path>]
```

## Options

| Option | Meaning |
| --- | --- |
| `--adopt <value>...` | Select detected adoption candidates by stable id, or all. |
| `--include <value>...` | Include an optional setup scaffold component; `ci` is the only component. |
| `--json` | Emit exactly one versioned finite JSON result document. |
| `--root <value>` | Select the repository root; defaults to cwd or Git root according to the route. |
| `--targets <value>` | Select the initial provider set for the new workspace. |
| `--yes` | Confirm a fully specified plan-first mutation without prompting. |

## Examples

```text
skillset init
skillset init ../existing-repo
```
