---
title: "Adopt an existing docs folder"
type: how-to
kind: how-to
documentedFor: "1.14.0"
updated: "2026-10-30"
canonical: "https://arcaneai.net/docs/how-to/adopt-existing-docs"
---

# Adopt an existing docs folder

Bring a folder of documents you already have under Arcane, without moving or renaming anything until you approve a written mapping.

## Prerequisites

- The `spell` command installed (see the [Quickstart](/docs/tutorials/quickstart)).
- A git repository that holds your documents, with everything committed. This guide uses a folder called `docs`.
- An AI client that runs Arcane spells: Claude Code, GitHub Copilot in VS Code, or Codex.

## Steps

1. At the repository root, install the `docs` profile and point it at your folder. Use `.` instead of `docs` if the documents sit at the repository root.

   ```arcane
   spell init --profile docs --subject-root docs
   ```

   ```text
   ✦ Initialized with profile "docs" — 111 files installed
   ```

2. Commit the files Arcane added. Adoption only runs on a clean working tree, so that every change it makes can be reverted. Check that `git status --short` lists only Arcane's files before you stage them.

   ```bash
   git status --short
   git add -A
   git commit -m "Add Arcane"
   ```

3. In your AI client, run the adoption as a dry run. It inventories the folder, proposes a mapping, and stops at a question; nothing changes yet.

   ```arcane
   /spell-adopt-docs docs
   ```

   It ends with:

   ```text
   Approve this mapping? (yes / edit / cancel)
   ```

4. Read the proposed mapping. It marks each group of files leave in place, move, rename, ignore or flag, and lists what it will not touch.

5. When the mapping is what you want, apply it. Each kind of change it makes becomes its own commit.

   ```arcane
   /spell-adopt-docs docs --apply
   ```

## Verify it worked

Check that the folder is the recorded subject root and that the docs spells are installed.

```bash
grep '"subject_root"' .arcane.json
```

```text
  "subject_root": "docs"
```

```arcane
spell status
```

```text
  spells-docs                          4  1.14.0
```


## Related

- What the `docs` profile installs: [Profiles](/docs/reference/profiles).
- Every phase of the adoption and its rollback rules: [`spell-adopt-docs`](/docs/reference/spell-adopt-docs).
- The `--profile` and `--subject-root` options: [`spell init`](/docs/reference/cli-init).
