Install
openclaw skills install deepvista-recipe-import-filesRecipe: Import files from the current directory (recursively) as context cards in DeepVista. TRIGGER when: user wants to import files as cards, "index this folder", "add files to DeepVista", "import codebase as context", "upload files as knowledge cards", "add all files in this directory to my knowledge base", or any request to bulk-import local files into DeepVista. DO NOT TRIGGER when: user wants to create a single note or card manually; or when working with non-file card types.
openclaw skills install deepvista-recipe-import-filesPREREQUISITE: Read deepvista-shared for auth, profiles, and global flags.
Walk the current directory recursively, read each file, and create a DeepVista context card with type=file for each one. The result is a searchable knowledge base of all files in the project.
[!CAUTION] Bulk write operation — confirm with the user before starting. Ask whether they want to filter by extension, skip certain directories, or limit the number of files imported.
Before running, confirm:
*.py, *.md, *.ts)?node_modules, .git, __pycache__, .venv, dist, build, .next)Use the Glob or Bash tool to list all matching files recursively, excluding noise directories. Example shell command for reference:
find . -type f \
-not -path '*/.git/*' \
-not -path '*/node_modules/*' \
-not -path '*/__pycache__/*' \
-not -path '*/.venv/*' \
-not -path '*/dist/*' \
-not -path '*/build/*' \
-not -path '*/.next/*' \
| sort
For extension filtering, add -name "*.py" (or the relevant extension).
For each file discovered:
Read the file content using the Read tool (skip binary files — if content is not valid UTF-8 text, skip with a note to the user).
Create a card with type file, using the relative file path as the title.
Always use --content-file to read the file directly from disk — never paste file content inline via --content:
deepvista card create \
--type file \
--title "<relative/path/to/file>" \
--content-file "<absolute/path/to/file>" \
--tags '["imported"]'
src/utils/helpers.py).--content-file with the absolute file path so the CLI reads the file directly from disk. This guarantees the full, exact content is stored — no summarization or truncation by the agent.--tags '["imported"]' so the user can find all imported cards with deepvista card +search "imported".After processing all files, report:
Example summary:
Import complete.
✓ 34 cards created
- 2 files skipped (binary)
- 1 file skipped (error: content too large)
Search your imported files:
deepvista card +search "<query>" --type file
The user can search across the newly imported files:
deepvista card +search "<keyword>" --type file
src/) rather than the entire tree.["imported", "my-project"]) so they can filter cards per project later.*.lock, *.min.js, *.map, package-lock.json, yarn.lock by default.# After creating a card, view it in the app:
# https://app.deepvista.ai/cards/<id>
# Search imported files
deepvista card +search "authentication" --type file
# List all imported file cards
deepvista card list --type file
deepvista card create --help