How-to
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
spellcommand 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
-
At the repository root, install the
docsprofile and point it at your folder. Use.instead ofdocsif the documents sit at the repository root.spell init --profile docs --subject-root docs✦ Initialized with profile "docs" — 111 files installed -
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 --shortlists only Arcane's files before you stage them.git status --short git add -A git commit -m "Add Arcane" -
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 docsIt ends with:
Approve this mapping? (yes / edit / cancel) -
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.
-
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
Related
- What the
docsprofile installs: Profiles. - Every phase of the adoption and its rollback rules:
spell-adopt-docs. - The
--profileand--subject-rootoptions:spell init.