Adopt an existing docs folder

Bring a folder of documents you already have under Arcane with the docs profile and spell-adopt-docs, without moving anything until you approve a mapping.

Documented for v1.24.1 · Checked

Written against v1.14.0; current release is v1.24.1.

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).
  • 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.

    spell init --profile docs --subject-root docs
    
    ✦ 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.

    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.

    /spell-adopt-docs docs
    

    It ends with:

    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.

    /spell-adopt-docs docs --apply
    

Verify it worked

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

grep '"subject_root"' .arcane.json
  "subject_root": "docs"
spell status
  spells-docs                          4  1.14.0

Was this page helpful?

Your answer

Please don't include personal information.