# Migrating an Existing Knowledge Base
If you already have a knowledge base — an LLM Wiki, a set of Skills, a documentation folder — you do not have to start from nothing. Create a Context knowledge workspace, describe the existing base to the Agent, and let it plan the migration up to the work-start report, where you review the approach and decide the batches.
## The migration prompt
Once the workspace exists, start with:
```text
Research what Context can do, then migrate the current knowledge base:
- Location, content and document scope of the current knowledge base:
- How it is produced today (scripts, prompts, and so on):
- Desired published structure and form: keep it as is, or new requirements
- Historical Q&A or an evaluation question set, to show how the knowledge base is used
Turn this into a research report, continue up to the work-start report and pause.
I will review the approach and plan the batches.
```
The last item matters most: real questions tell the Agent what the knowledge base is *for*, and they become your evaluation set later.
## Bringing the existing material in
Existing material can be connected in different ways, depending on whether it should become a source of new articles or stay where it is:
- **Document directories** — register a folder of existing documents as a source so its contents are captured and cited. See [Document Directories]().
- **Same-repository docs and Skills** — documents and authored Skills already kept in the same repository are registered as an entrance; the originals stay where they are and remain the only place to edit them. See [Same-Repository Docs]().
- **External entrances** — content elsewhere that pages should link to, declared in `imports.yaml` without downloading or capturing it. See [External Entrances]().
## Switch over after you have measured
Keep the old knowledge base running until the new one is proven. Run the same question set against both and compare quality, time and tool calls, as described in [Evaluating Your Knowledge Base]().
---
## Sources
- note:20261012/usage-practices.md · usage-practices.md L47–L60
- [context/packages/context/docs/guides/imports.md L1–L7 · 3b0ce0a]()
- [context/packages/context/docs/guides/repo-content.md L1–L5 · 3b0ce0a]()
- note:20261012/usage-practices.md · usage-practices.md L73–L75