- Home
- Skills
- Yoanbernabeu
- Grepai Skills
- Grepai Init
grepai-init_skill
1
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill yoanbernabeu/grepai-skills --skill grepai-init- SKILL.md4.4 KB
Overview
This skill initializes GrepAI in a project by creating the initial configuration and directory structure needed to start indexing and tracing code. It walks you through the default config, how to customize providers and storage, and what to do after initialization. Use it to set up GrepAI quickly and safely in new repositories or monorepos.
How this skill works
Running the init command creates a .grepai directory containing config.yaml and placeholders for the vector and symbol stores. The generated config sets defaults for the embedder (Ollama), local storage (gob), chunking, watch debounce, trace languages, and ignore patterns. After init, you typically start Ollama (if using the default embedder) and run grepai watch to build the index.
When to use it
- When setting up GrepAI for the first time in a codebase
- Before running grepai watch to build your project's index
- When onboarding a new repository or creating a monorepo root index
- When you want a starter config to customize for embeddings or storage
- When you need to reset the GrepAI configuration and start fresh
Best practices
- Run init at the repository root where the main source lives
- Add .grepai/ to your .gitignore because the index is machine-specific
- Review and update embedder and store settings to match your environment
- Customize ignore patterns to exclude vendored or build artifacts
- If using Ollama, ensure ollama serve is running before indexing
Example use cases
- Initialize GrepAI in a new project and then run grepai watch to build a local index
- Set up a monorepo root so a single index covers multiple packages
- Switch embedder to OpenAI by editing .grepai/config.yaml after init
- Change storage backend to Postgres for centralized indices in CI or team environments
- Reset an old configuration by deleting .grepai and re-running grepai init
FAQ
It creates a .grepai directory with config.yaml and placeholders for the index (index.gob) and symbol store (symbols.gob) which are populated when you run grepai watch.
I already have .grepai in the repo. How do I reinitialize?
Remove the existing directory (rm -rf .grepai) and run grepai init again. Warning: this deletes your index and symbols, so you must re-run grepai watch.
How do I change the embedding provider?
Edit .grepai/config.yaml to set embedder.provider and model, adding provider-specific credentials like an API key or endpoint.